From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH 10/17] omap4: pm: Add L2 cache lowpower support Date: Wed, 02 Mar 2011 14:36:18 -0800 Message-ID: <878vwx40bh.fsf@ti.com> References: <1298112158-28469-1-git-send-email-santosh.shilimkar@ti.com> <1298112158-28469-11-git-send-email-santosh.shilimkar@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from na3sys009aog102.obsmtp.com ([74.125.149.69]:35339 "EHLO na3sys009aog102.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754516Ab1CBWgW (ORCPT ); Wed, 2 Mar 2011 17:36:22 -0500 Received: by mail-yi0-f45.google.com with SMTP id 19so167723yib.4 for ; Wed, 02 Mar 2011 14:36:21 -0800 (PST) In-Reply-To: <1298112158-28469-11-git-send-email-santosh.shilimkar@ti.com> (Santosh Shilimkar's message of "Sat, 19 Feb 2011 16:12:31 +0530") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Santosh Shilimkar Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Santosh Shilimkar writes: > When MPUSS hits off-mode e, L2 cache is lost. This patch adds L2X0 > necessary maintenance operations and context restoration in the > low power code. > > Signed-off-by: Santosh Shilimkar > Reviewed-by: Kevin Hilman > --- > arch/arm/mach-omap2/omap4-mpuss-lowpower.c | 11 +++++ > arch/arm/mach-omap2/omap4-sar-layout.h | 2 + > arch/arm/mach-omap2/sleep44xx.S | 64 ++++++++++++++++++++++++++++ > 3 files changed, 77 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > index a30f19b..bff768f 100644 > --- a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > +++ b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > @@ -49,6 +49,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -341,6 +342,7 @@ int __init omap4_mpuss_init(void) > { > struct omap4_cpu_pm_info *pm_info; > u8 i; > + u32 val; This will cause an 'unused variable' compiler warning when !CONFIG_CACHE_L2X0 [...] Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@ti.com (Kevin Hilman) Date: Wed, 02 Mar 2011 14:36:18 -0800 Subject: [PATCH 10/17] omap4: pm: Add L2 cache lowpower support In-Reply-To: <1298112158-28469-11-git-send-email-santosh.shilimkar@ti.com> (Santosh Shilimkar's message of "Sat, 19 Feb 2011 16:12:31 +0530") References: <1298112158-28469-1-git-send-email-santosh.shilimkar@ti.com> <1298112158-28469-11-git-send-email-santosh.shilimkar@ti.com> Message-ID: <878vwx40bh.fsf@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Santosh Shilimkar writes: > When MPUSS hits off-mode e, L2 cache is lost. This patch adds L2X0 > necessary maintenance operations and context restoration in the > low power code. > > Signed-off-by: Santosh Shilimkar > Reviewed-by: Kevin Hilman > --- > arch/arm/mach-omap2/omap4-mpuss-lowpower.c | 11 +++++ > arch/arm/mach-omap2/omap4-sar-layout.h | 2 + > arch/arm/mach-omap2/sleep44xx.S | 64 ++++++++++++++++++++++++++++ > 3 files changed, 77 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > index a30f19b..bff768f 100644 > --- a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > +++ b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c > @@ -49,6 +49,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -341,6 +342,7 @@ int __init omap4_mpuss_init(void) > { > struct omap4_cpu_pm_info *pm_info; > u8 i; > + u32 val; This will cause an 'unused variable' compiler warning when !CONFIG_CACHE_L2X0 [...] Kevin