[PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP

2010-05-19 Thread Santosh Shilimkar
This patch fixes the flush_cache_all for ARMv7 SMP. It was
missing from commit b8349b569aae661dea9d59d7d2ee587ccea3336c

Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
Cc: Catalin Marinas catalin.mari...@arm.com
---
Updated version after removing the not necessary second hunk
 
arch/arm/mm/cache-v7.S |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
index 06a90dc..5009635 100644
--- a/arch/arm/mm/cache-v7.S
+++ b/arch/arm/mm/cache-v7.S
@@ -91,7 +91,11 @@ ENTRY(v7_flush_kern_cache_all)
  THUMB(stmfd   sp!, {r4-r7, r9-r11, lr})
bl  v7_flush_dcache_all
mov r0, #0
+#ifdef CONFIG_SMP
+   mcr p15, 0, r0, c7, c1, 0   @ invalidate I-cache inner 
shareable
+#elese
mcr p15, 0, r0, c7, c5, 0   @ I+BTB cache invalidate
+#endif
  ARM(  ldmfd   sp!, {r4-r5, r7, r9-r11, lr})
  THUMB(ldmfd   sp!, {r4-r7, r9-r11, lr})
mov pc, lr
-- 
1.6.0.4

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP

2010-05-19 Thread Venkatraman S
Santosh Shilimkar santosh.shilim...@ti.com wrote:
 This patch fixes the flush_cache_all for ARMv7 SMP. It was
 missing from commit b8349b569aae661dea9d59d7d2ee587ccea3336c

 Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
 Cc: Catalin Marinas catalin.mari...@arm.com
 ---
 Updated version after removing the not necessary second hunk

 arch/arm/mm/cache-v7.S |    4 
  1 files changed, 4 insertions(+), 0 deletions(-)

 diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
 index 06a90dc..5009635 100644
 --- a/arch/arm/mm/cache-v7.S
 +++ b/arch/arm/mm/cache-v7.S
 @@ -91,7 +91,11 @@ ENTRY(v7_flush_kern_cache_all)
  THUMB(        stmfd   sp!, {r4-r7, r9-r11, lr}        )
        bl      v7_flush_dcache_all
        mov     r0, #0
 +#ifdef CONFIG_SMP
 +       mcr     p15, 0, r0, c7, c1, 0           @ invalidate I-cache inner 
 shareable
 +#elese

s/elese/else

        mcr     p15, 0, r0, c7, c5, 0           @ I+BTB cache invalidate
 +#endif
  ARM(  ldmfd   sp!, {r4-r5, r7, r9-r11, lr}    )
  THUMB(        ldmfd   sp!, {r4-r7, r9-r11, lr}        )
        mov     pc, lr
 --
 1.6.0.4

 --
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP

2010-05-19 Thread Shilimkar, Santosh
 -Original Message-
 From: svenk...@gmail.com [mailto:svenk...@gmail.com] On Behalf Of S, 
 Venkatraman
 Sent: Wednesday, May 19, 2010 6:06 PM
 To: Shilimkar, Santosh
 Cc: linux-arm-ker...@lists.infradead.org; linux-omap@vger.kernel.org; Catalin 
 Marinas
 Subject: Re: [PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP
 
 Santosh Shilimkar santosh.shilim...@ti.com wrote:
  This patch fixes the flush_cache_all for ARMv7 SMP. It was
  missing from commit b8349b569aae661dea9d59d7d2ee587ccea3336c
 
  Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
  Cc: Catalin Marinas catalin.mari...@arm.com
  ---
  Updated version after removing the not necessary second hunk
 
  arch/arm/mm/cache-v7.S |    4 
   1 files changed, 4 insertions(+), 0 deletions(-)
 
  diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
  index 06a90dc..5009635 100644
  --- a/arch/arm/mm/cache-v7.S
  +++ b/arch/arm/mm/cache-v7.S
  @@ -91,7 +91,11 @@ ENTRY(v7_flush_kern_cache_all)
   THUMB(        stmfd   sp!, {r4-r7, r9-r11, lr}        )
         bl      v7_flush_dcache_all
         mov     r0, #0
  +#ifdef CONFIG_SMP
  +       mcr     p15, 0, r0, c7, c1, 0           @ invalidate I-cache inner 
  shareable
  +#elese
 
 s/elese/else
 
oops ... Will correct this while submitting to the patch
system

Regards,
Santosh 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP

2010-05-19 Thread Catalin Marinas
On Wed, 2010-05-19 at 13:39 +0100, Shilimkar, Santosh wrote:
  -Original Message-
  From: svenk...@gmail.com [mailto:svenk...@gmail.com] On Behalf Of S, 
  Venkatraman
  Sent: Wednesday, May 19, 2010 6:06 PM
  To: Shilimkar, Santosh
  Cc: linux-arm-ker...@lists.infradead.org; linux-omap@vger.kernel.org; 
  Catalin Marinas
  Subject: Re: [PATCH v2] ARMv7: Use the Inner Shareable I-cache on MP
 
  Santosh Shilimkar santosh.shilim...@ti.com wrote:
   This patch fixes the flush_cache_all for ARMv7 SMP. It was
   missing from commit b8349b569aae661dea9d59d7d2ee587ccea3336c
  
   Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com
   Cc: Catalin Marinas catalin.mari...@arm.com
   ---
   Updated version after removing the not necessary second hunk
  
   arch/arm/mm/cache-v7.S |4 
1 files changed, 4 insertions(+), 0 deletions(-)
  
   diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
   index 06a90dc..5009635 100644
   --- a/arch/arm/mm/cache-v7.S
   +++ b/arch/arm/mm/cache-v7.S
   @@ -91,7 +91,11 @@ ENTRY(v7_flush_kern_cache_all)
THUMB(stmfd   sp!, {r4-r7, r9-r11, lr})
  bl  v7_flush_dcache_all
  mov r0, #0
   +#ifdef CONFIG_SMP
   +   mcr p15, 0, r0, c7, c1, 0   @ invalidate I-cache 
   inner shareable
   +#elese
 
  s/elese/else
 
 oops ... Will correct this while submitting to the patch
 system

With the typo fixed:

Acked-by: Catalin Marinas catalin.mari...@arm.com

-- 
Catalin

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html