From: Andreas Larsson Date: Mon, 1 Jul 2013 14:16:07 +0000 (+0200) Subject: sparc32, leon: Require separate snoop tags set to regard snooping to be enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8e2bfd1033aadfee334419b7d11eeba1bc9cbed;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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. Signed-off-by: Andreas Larsson Signed-off-by: David S. Miller --- diff --git a/arch/sparc/include/asm/leon.h b/arch/sparc/include/asm/leon.h index b836e9297f2a..c2f6ff6d7a35 100644 --- a/arch/sparc/include/asm/leon.h +++ b/arch/sparc/include/asm/leon.h @@ -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)