Thread (3 messages) flat view 3 messages, 2 authors, 2016-11-16

Re: [PATCH] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2016-11-16 04:36:06

On Wed, 2016-11-16 at 15:18 +1100, Michael Neuling wrote:
+               asm volatile("isync \n"
+                            PPC_SLBIA(0x7)
+                            : : :"memory");
        return;
 }
We probably don't need the isync's
quoted hunk ↗ jump to hunk
@@ -83,6 +87,10 @@ static inline void _tlbiel_va(unsigned long va,
unsigned long pid,
        asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1)
                     : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(rs)
: "memory");
        asm volatile("ptesync": : :"memory");
+       if (cpu_has_feature(CPU_FTR_POWER9_DD1))
+               asm volatile("isync \n"
+                            PPC_SLBIA(0x7)
+                            : : :"memory");
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help