From patchwork Wed Aug 29 00:23:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 1383381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 05F6A3FDF5 for ; Wed, 29 Aug 2012 00:30:26 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6W4R-0000bR-Mp; Wed, 29 Aug 2012 00:23:47 +0000 Received: from bombadil.infradead.org ([2001:4830:2446:ff00:4687:fcff:fea6:5117]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T6W4P-0000bM-72 for linux-arm-kernel@merlin.infradead.org; Wed, 29 Aug 2012 00:23:45 +0000 Received: from filtteri6.pp.htv.fi ([213.243.153.189]) by bombadil.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6W4M-0006u7-SX for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2012 00:23:44 +0000 Received: from localhost (localhost [127.0.0.1]) by filtteri6.pp.htv.fi (Postfix) with ESMTP id 28DBE56E63D; Wed, 29 Aug 2012 03:23:30 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp6.welho.com ([213.243.153.40]) by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new, port 10024) with ESMTP id w+NrJlQSrFWE; Wed, 29 Aug 2012 03:23:29 +0300 (EEST) Received: from harshnoise (212-149-209-232.bb.dnainternet.fi [212.149.209.232]) by smtp6.welho.com (Postfix) with SMTP id 065385BC003; Wed, 29 Aug 2012 03:23:28 +0300 (EEST) Received: by harshnoise (sSMTP sendmail emulation); Wed, 29 Aug 2012 03:23:03 +0300 Date: Wed, 29 Aug 2012 03:23:03 +0300 From: Aaro Koskinen To: "Shilimkar, Santosh" Subject: Re: [PATCH] arm: omap: ratelimit omap_l3_smx error log spam Message-ID: <20120829002256.GE783@harshnoise.musicnaut.iki.fi> References: <1346101403-5882-1-git-send-email-aaro.koskinen@iki.fi> <20120827220254.GA783@harshnoise.musicnaut.iki.fi> <20120827232613.GB783@harshnoise.musicnaut.iki.fi> <20120828122042.GC783@harshnoise.musicnaut.iki.fi> <20120828230917.GD783@harshnoise.musicnaut.iki.fi> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20120828_202343_141726_94E6439E X-CRM114-Status: GOOD ( 12.71 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: tony@atomide.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org On Tue, Aug 28, 2012 at 04:38:24PM -0700, Shilimkar, Santosh wrote: > On Tue, Aug 28, 2012 at 4:09 PM, Aaro Koskinen wrote: > > On Tue, Aug 28, 2012 at 07:19:38AM -0700, Shilimkar, Santosh wrote: > >> Or the PPA has resized the secure area of 16K. As you have seen the issue > >> on one OMAP3 device, it makes sense to takeout that 16K from the public > >> SRAM map. > >> > >> Can you send the patch with fixed base address fir PUB SRAM ? > > > > Maybe I'm missing something, but I tried the following and now something > > else got broken: > > > > save_secure_sram() returns 0000ff02 > > > Damn. Looks like, you are running short of memory now for sram_push stuff. No, it's not that, because the below version works and that leaves as little memory for the sram_push code: A. diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c index 766181c..a91e7ad 100644 --- a/arch/arm/plat-omap/sram.c +++ b/arch/arm/plat-omap/sram.c @@ -47,7 +47,7 @@ #define OMAP5_SRAM_PA 0x40300000 #if defined(CONFIG_ARCH_OMAP2PLUS) -#define SRAM_BOOTLOADER_SZ 0x00 +#define SRAM_BOOTLOADER_SZ (cpu_is_omap34xx() ? SZ_16K : 0) #else #define SRAM_BOOTLOADER_SZ 0x80 #endif