Enable TLB read inhibit on OCTEON Plus and newer SoCs.
authorvisa <visa@openbsd.org>
Wed, 11 Jan 2023 03:20:52 +0000 (03:20 +0000)
committervisa <visa@openbsd.org>
Wed, 11 Jan 2023 03:20:52 +0000 (03:20 +0000)
OK deraadt@

sys/arch/octeon/octeon/machdep.c

index 188d66e..a490eff 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: machdep.c,v 1.134 2021/07/24 08:21:13 visa Exp $ */
+/*     $OpenBSD: machdep.c,v 1.135 2023/01/11 03:20:52 visa Exp $ */
 
 /*
  * Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -793,7 +793,7 @@ octeon_tlb_init(void)
        pgrain |= PGRAIN_ELPA;
 #endif
        if (cp0_get_config_3() & CONFIG3_RXI)
-               pgrain |= PGRAIN_XIE;
+               pgrain |= (PGRAIN_RIE | PGRAIN_XIE);
        cp0_set_pagegrain(pgrain);
 
        tlb_init(bootcpu_hwinfo.tlbsize);