diff mbox

arm: omap: ratelimit omap_l3_smx error log spam

Message ID 20120828230917.GD783@harshnoise.musicnaut.iki.fi (mailing list archive)
State New, archived
Headers show

Commit Message

Aaro Koskinen Aug. 28, 2012, 11:09 p.m. UTC
Hi,

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

(and it hangs there).

Comments

Santosh Shilimkar Aug. 28, 2012, 11:38 p.m. UTC | #1
On Tue, Aug 28, 2012 at 4:09 PM, Aaro Koskinen <aaro.koskinen@iki.fi> wrote:
> Hi,
>
> 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.

Regards
Santosh
diff mbox

Patch

diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
index 766181c..242ea5b 100644
--- a/arch/arm/plat-omap/sram.c
+++ b/arch/arm/plat-omap/sram.c
@@ -38,7 +38,7 @@ 
 
 #define OMAP1_SRAM_PA		0x20000000
 #define OMAP2_SRAM_PUB_PA	(OMAP2_SRAM_PA + 0xf800)
-#define OMAP3_SRAM_PUB_PA       (OMAP3_SRAM_PA + 0x8000)
+#define OMAP3_SRAM_PUB_PA       (OMAP3_SRAM_PA + 0xc000)
 #ifdef CONFIG_OMAP4_ERRATA_I688
 #define OMAP4_SRAM_PUB_PA	OMAP4_SRAM_PA
 #else
@@ -112,9 +112,9 @@  static void __init omap_detect_sram(void)
 				omap_sram_start = OMAP3_SRAM_PUB_PA;
 				if ((omap_type() == OMAP2_DEVICE_TYPE_EMU) ||
 				    (omap_type() == OMAP2_DEVICE_TYPE_SEC)) {
-					omap_sram_size = 0x7000; /* 28K */
+					omap_sram_size = 0x3000; /* 12K */
 				} else {
-					omap_sram_size = 0x8000; /* 32K */
+					omap_sram_size = SZ_16K; /* 16K */
 				}
 			} else if (cpu_is_omap44xx()) {
 				omap_sram_start = OMAP4_SRAM_PUB_PA;