* Re: [PATCH - 2/2] arm: disable caches based on config option [not found] ` <1346337826-27232-2-git-send-email-m-karicheri2@ti.com> @ 2012-08-30 15:59 ` Nicolas Pitre 2012-08-30 20:18 ` Karicheri, Muralidharan 2012-08-30 16:49 ` Shilimkar, Santosh 1 sibling, 1 reply; 3+ messages in thread From: Nicolas Pitre @ 2012-08-30 15:59 UTC (permalink / raw) To: Murali Karicheri Cc: Russell King - ARM Linux, tony, santosh.shilimkar, wim, linux-arm-kernel, linux-kernel On Thu, 30 Aug 2012, Murali Karicheri wrote: > CONFIG_CPU_ICACHE_DISABLE and CONFIG_CPU_DCACHE_DISABLE are available > to allow disabling of D-Cache and I-Cache. However the compressed version > of head.S currently doesn't check these variables. This patch will fix > this issue and is written similar to the uncompressed version of head.S > > Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Acked-by: nicolas Pitre <nico@linaro.org> You may submit your patch to http://www.arm.linux.org.uk/developer/patches/. > --- > arch/arm/boot/compressed/head.S | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S > index b8c64b8..e1d2124 100644 > --- a/arch/arm/boot/compressed/head.S > +++ b/arch/arm/boot/compressed/head.S > @@ -659,6 +659,12 @@ __armv7_mmu_cache_on: > #ifdef CONFIG_CPU_ENDIAN_BE8 > orr r0, r0, #1 << 25 @ big-endian page tables > #endif > +#ifdef CONFIG_CPU_DCACHE_DISABLE > + bic r0, r0, #1 << 2 > +#endif > +#ifdef CONFIG_CPU_ICACHE_DISABLE > + bic r0, r0, #1 << 12 > +#endif > orrne r0, r0, #1 @ MMU enabled > movne r1, #0xfffffffd @ domain 0 = client > mcrne p15, 0, r3, c2, c0, 0 @ load page table pointer > -- > 1.7.9.5 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH - 2/2] arm: disable caches based on config option 2012-08-30 15:59 ` [PATCH - 2/2] arm: disable caches based on config option Nicolas Pitre @ 2012-08-30 20:18 ` Karicheri, Muralidharan 0 siblings, 0 replies; 3+ messages in thread From: Karicheri, Muralidharan @ 2012-08-30 20:18 UTC (permalink / raw) To: Nicolas Pitre Cc: Russell King - ARM Linux, tony, Shilimkar, Santosh, wim, linux-arm-kernel, linux-kernel Submitted. Thanks. Murali Karicheri Software Design Engineer >> -----Original Message----- >> From: Nicolas Pitre [mailto:nicolas.pitre@linaro.org] >> Sent: Thursday, August 30, 2012 11:59 AM >> To: Karicheri, Muralidharan >> Cc: Russell King - ARM Linux; tony@atomide.com; Shilimkar, Santosh; wim@iguana.be; >> linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org >> Subject: Re: [PATCH - 2/2] arm: disable caches based on config option >> >> On Thu, 30 Aug 2012, Murali Karicheri wrote: >> >> > CONFIG_CPU_ICACHE_DISABLE and CONFIG_CPU_DCACHE_DISABLE are available >> > to allow disabling of D-Cache and I-Cache. However the compressed version >> > of head.S currently doesn't check these variables. This patch will fix >> > this issue and is written similar to the uncompressed version of head.S >> > >> > Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> >> >> Acked-by: nicolas Pitre <nico@linaro.org> >> >> You may submit your patch to http://www.arm.linux.org.uk/developer/patches/. >> >> >> > --- >> > arch/arm/boot/compressed/head.S | 6 ++++++ >> > 1 file changed, 6 insertions(+) >> > >> > diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S >> > index b8c64b8..e1d2124 100644 >> > --- a/arch/arm/boot/compressed/head.S >> > +++ b/arch/arm/boot/compressed/head.S >> > @@ -659,6 +659,12 @@ __armv7_mmu_cache_on: >> > #ifdef CONFIG_CPU_ENDIAN_BE8 >> > orr r0, r0, #1 << 25 @ big-endian page tables >> > #endif >> > +#ifdef CONFIG_CPU_DCACHE_DISABLE >> > + bic r0, r0, #1 << 2 >> > +#endif >> > +#ifdef CONFIG_CPU_ICACHE_DISABLE >> > + bic r0, r0, #1 << 12 >> > +#endif >> > orrne r0, r0, #1 @ MMU enabled >> > movne r1, #0xfffffffd @ domain 0 = client >> > mcrne p15, 0, r3, c2, c0, 0 @ load page table pointer >> > -- >> > 1.7.9.5 >> > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH - 2/2] arm: disable caches based on config option [not found] ` <1346337826-27232-2-git-send-email-m-karicheri2@ti.com> 2012-08-30 15:59 ` [PATCH - 2/2] arm: disable caches based on config option Nicolas Pitre @ 2012-08-30 16:49 ` Shilimkar, Santosh 1 sibling, 0 replies; 3+ messages in thread From: Shilimkar, Santosh @ 2012-08-30 16:49 UTC (permalink / raw) To: Murali Karicheri Cc: linux, nicolas.pitre, tony, wim, linux-arm-kernel, linux-kernel On Thu, Aug 30, 2012 at 7:43 AM, Murali Karicheri <m-karicheri2@ti.com> wrote: > CONFIG_CPU_ICACHE_DISABLE and CONFIG_CPU_DCACHE_DISABLE are available > to allow disabling of D-Cache and I-Cache. However the compressed version > of head.S currently doesn't check these variables. This patch will fix > this issue and is written similar to the uncompressed version of head.S > > Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> > --- Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-30 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1346337826-27232-1-git-send-email-m-karicheri2@ti.com>
[not found] ` <1346337826-27232-2-git-send-email-m-karicheri2@ti.com>
2012-08-30 15:59 ` [PATCH - 2/2] arm: disable caches based on config option Nicolas Pitre
2012-08-30 20:18 ` Karicheri, Muralidharan
2012-08-30 16:49 ` Shilimkar, Santosh
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®