Re: [PATCH v4 5/7] OMAP3630: PM: Disable L2 cache while invalidating L2 cache
From: Nishanth Menon <nm@ti.com>
Date: 2010-12-20 13:08:14
Also in:
linux-arm-kernel
Santosh Shilimkar had written, on 12/20/2010 06:14 AM, the following:
quoted
-----Original Message----- From: Nishanth Menon [mailto:nm@ti.com] Sent: Monday, December 20, 2010 5:15 PM To: Santosh Shilimkar Cc: linux-omap; linux-arm; Jean Pihet; Kevin; Tony Subject: Re: [PATCH v4 5/7] OMAP3630: PM: Disable L2 cache while invalidating L2 cache Santosh Shilimkar wrote, on 12/20/2010 01:13 AM: [..]quoted
quoted
This is be done according to ARM documentation. Currently this is identified as being needed on OMAP3630 as the disable/enable is done from"publicquoted
quoted
quoted
side" while, on OMAP3430, this is done in the "secure side".Can you point me to ARM doc which says " for L2 invalidation, the controller needs to be disabled" ?please see section 8.3 of the Cortex-A8 TRMYes. Have seen it and it doesn't say at least what your patch description is saying.
See [1]
To disable the L2 cache, but leave the L1 data cache enabled, use the
following sequence:
1. Disable the C bit.
for details on C bit: see [2]
2. Clean and invalidate the L1 and L2 caches.
[...]
Does this help or do you have a suggestion on how the commit message
could be improved?
Ref:
[1] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344k/Babigfeh.html
[2]
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344k/Bgbciiaf.html
--
Regards,
Nishanth Menon