From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nishanth Menon Subject: Re: [PATCH v4 5/7] OMAP3630: PM: Disable L2 cache while invalidating L2 cache Date: Mon, 20 Dec 2010 07:08:14 -0600 Message-ID: <4D0F553E.1060301@ti.com> References: <1292712817-24999-1-git-send-email-nm@ti.com> <1292712817-24999-6-git-send-email-nm@ti.com> <9b48aafcc94e9b69236ed4d934ebd91e@mail.gmail.com> <4D0F41BB.2070606@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]:60799 "EHLO na3sys009aog108.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757635Ab0LTNId (ORCPT ); Mon, 20 Dec 2010 08:08:33 -0500 Received: by mail-gy0-f172.google.com with SMTP id 12so1177411gyd.3 for ; Mon, 20 Dec 2010 05:08:32 -0800 (PST) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Santosh Shilimkar Cc: linux-omap , linux-arm , Jean Pihet , Kevin , Tony Santosh Shilimkar had written, on 12/20/2010 06:14 AM, the following: >> -----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: >> [..] >>>> This is be done according to ARM documentation. Currently this is >>>> identified >>>> as being needed on OMAP3630 as the disable/enable is done from > "public >>>> 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 TRM >> > Yes. 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