Skip to contentSkip to conversation

sparc32, leon: Require separate snoop tags set to regard snooping to be enabled

PATCH Applied Andreas Larsson 2 participants 2 messages Jul 1, 2013 – Jul 10, 2013 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

Andreas Larsson

author maintainer
#0 lore raw

PATCH 1/1 sparc32, leon: Require separate snoop tags set to regard snooping to be enabled

Even if data snooping is enabled, without separate snoop tags snooping will not work when the MMU is enabled.

---
 arch/sparc/include/asm/leon.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/include/asm/leon.h +1 -1
index b836e92..c2f6ff6 100644
@@ -108,7 +108,7 @@ static inline int sparc_leon3_snooping_enabled(void)
 {
 	u32 cctrl;
 	__asm__ __volatile__("lda [%%g0] 2, %0\n\t" : "=r"(cctrl));
-        return (cctrl >> 23) & 1;
+	return ((cctrl >> 23) & 1) && ((cctrl >> 17) & 1);
 };
 
 static inline void sparc_leon3_disable_cache(void)
Signature · 1 line
1.7.10.4