Skip to contentSkip to conversation

davinci: changed SRAM allocator to shared ram.

PATCH In review Subhasish Ghosh 3 participants 8 messages Feb 11, 2011 – May 17, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 davinci: changed SRAM allocator to shared ram.

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

---
 arch/arm/mach-davinci/da850.c              |    6 +++---
 arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da850.c +3 -3
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 	},
 	{
 		.virtual	= SRAM_VIRT,
-		.pfn		= __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+		.pfn		= __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 		.length		= SZ_8K,
 		.type		= MT_DEVICE
 	},
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
 	.gpio_irq		= IRQ_DA8XX_GPIO0,
 	.serial_dev		= &da8xx_serial_device,
 	.emac_pdata		= &da8xx_emac_pdata,
-	.sram_dma		= DA8XX_ARM_RAM_BASE,
-	.sram_len		= SZ_8K,
+	.sram_dma		= DA8XX_SHARED_RAM_BASE,
+	.sram_len		= SZ_128K,
 	.reset_device		= &da8xx_wdt_device,
 };
 
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
index cfcb223..c3c3339 100644
@@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
 #define DA8XX_AEMIF_CTL_BASE	0x68000000
 #define DA8XX_DDR2_CTL_BASE	0xb0000000
 #define DA8XX_ARM_RAM_BASE	0xffff0000
+#define DA8XX_SHARED_RAM_BASE	0x80000000
 
 void __init da830_init(void);
 void __init da850_init(void);
Signature · 1 line
1.7.2.3
#1 lore raw

Hi Subhasish,

Quoted 2 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

It will be nice to know if you tried suspend-to-RAM after this change and found it to be working.

Thanks,
Sekhar

Quoted 47 lines
---
 arch/arm/mach-davinci/da850.c              |    6 +++---
 arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da850.c +3 -3
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 	},
 	{
 		.virtual	= SRAM_VIRT,
-		.pfn		= __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+		.pfn		= __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 		.length		= SZ_8K,
 		.type		= MT_DEVICE
 	},
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
 	.gpio_irq		= IRQ_DA8XX_GPIO0,
 	.serial_dev		= &da8xx_serial_device,
 	.emac_pdata		= &da8xx_emac_pdata,
-	.sram_dma		= DA8XX_ARM_RAM_BASE,
-	.sram_len		= SZ_8K,
+	.sram_dma		= DA8XX_SHARED_RAM_BASE,
+	.sram_len		= SZ_128K,
 	.reset_device		= &da8xx_wdt_device,
 };
 
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
index cfcb223..c3c3339 100644
@@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
 #define DA8XX_AEMIF_CTL_BASE	0x68000000
 #define DA8XX_DDR2_CTL_BASE	0xb0000000
 #define DA8XX_ARM_RAM_BASE	0xffff0000
+#define DA8XX_SHARED_RAM_BASE	0x80000000
 
 void __init da830_init(void);
 void __init da850_init(void);
Signature · 1 line
1.7.2.3
#2 lore raw

--------------------------------------------------
From: "Nori, Sekhar" <[email protected]>
Sent: Wednesday, February 23, 2011 9:00 PM
To: "Subhasish Ghosh" <[email protected]>; <[email protected]>
Cc: <[email protected]>; "Watkins, Melissa" <[email protected]>; <[email protected]>; "Kevin Hilman" <[email protected]>; "Russell King" <[email protected]>; "Michael Williamson" <[email protected]>; "Chemparathy, Cyril" <[email protected]>; "Sergei Shtylyov" <[email protected]>; "open list" <[email protected]>
Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

Quoted 9 lines

Hi Subhasish,

Quoted 2 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

It will be nice to know if you tried suspend-to-RAM after this change and found it to be working.

SG -- My file system is currently mounted from MMC.
Suspend to RAM seems to have bug with MMC.
(http://processors.wiki.ti.com/index.php/OMAP-L1_Linux_Drivers_Usage#Suspend-to-RAM)
I had tried NFS earlier, but I think there is some problem with
NFS boot and udev with this kernel.
So, currently I will not be able to do it, but will try if I get
a chance.

Quoted 52 lines

Thanks,
Sekhar

Quoted 48 lines
---
 arch/arm/mach-davinci/da850.c              |    6 +++---
 arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da850.c +3 -3
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 },
 {
 .virtual = SRAM_VIRT,
- .pfn = __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+ .pfn = __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 .length = SZ_8K,
 .type = MT_DEVICE
 },
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info 
 davinci_soc_info_da850 = {
 .gpio_irq = IRQ_DA8XX_GPIO0,
 .serial_dev = &da8xx_serial_device,
 .emac_pdata = &da8xx_emac_pdata,
- .sram_dma = DA8XX_ARM_RAM_BASE,
- .sram_len = SZ_8K,
+ .sram_dma = DA8XX_SHARED_RAM_BASE,
+ .sram_len = SZ_128K,
 .reset_device = &da8xx_wdt_device,
 };
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
index cfcb223..c3c3339 100644
@@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
 #define DA8XX_AEMIF_CTL_BASE 0x68000000
 #define DA8XX_DDR2_CTL_BASE 0xb0000000
 #define DA8XX_ARM_RAM_BASE 0xffff0000
+#define DA8XX_SHARED_RAM_BASE 0x80000000
 
 void __init da830_init(void);
 void __init da850_init(void);
Signature · 1 line
1.7.2.3
#3 lore raw

Hi Subhasish,

Quoted 19 lines · Subhasish Ghosh

--------------------------------------------------
From: "Nori, Sekhar" <[email protected]>
Sent: Wednesday, February 23, 2011 9:00 PM
To: "Subhasish Ghosh" <[email protected]>; <[email protected]>
Cc: <[email protected]>; "Watkins, Melissa" <[email protected]>; <[email protected]>; "Kevin Hilman" <[email protected]>; "Russell King" <[email protected]>; "Michael Williamson" <[email protected]>; "Chemparathy, Cyril" <[email protected]>; "Sergei Shtylyov" <[email protected]>; "open list" <[email protected]>
Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

Quoted 6 lines

Hi Subhasish,

Quoted 2 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

Quoted 7 lines
Quoted 3 lines

It will be nice to know if you tried suspend-to-RAM after this change and found it to be working.

SG -- My file system is currently mounted from MMC.
Suspend to RAM seems to have bug with MMC.
(http://processors.wiki.ti.com/index.php/OMAP-L1_Linux_Drivers_Usage#Suspend-to-RAM)

You can try Kevin's suggestion here:

http://linux.davincidsp.com/pipermail/davinci-linux-open-source/2011-January/021807.html

Quoted 2 lines

I had tried NFS earlier, but I think there is some problem with
NFS boot and udev with this kernel.

Anyway there are some problems reported with Ethernet driver and suspend on the latest kernel. Folks inside TI are working on it.

Quoted 2 lines

So, currently I will not be able to do it, but will try if I get
a chance.

How about using ramdisk?

Thanks,
Sekhar

Quoted 55 lines
Quoted 54 lines

Thanks,
Sekhar

Quoted 50 lines
---
 arch/arm/mach-davinci/da850.c              |    6 +++---
 arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da850.c +3 -3
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 },
 {
 .virtual = SRAM_VIRT,
- .pfn = __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+ .pfn = __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 .length = SZ_8K,
 .type = MT_DEVICE
 },
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info 
 davinci_soc_info_da850 = {
 .gpio_irq = IRQ_DA8XX_GPIO0,
 .serial_dev = &da8xx_serial_device,
 .emac_pdata = &da8xx_emac_pdata,
- .sram_dma = DA8XX_ARM_RAM_BASE,
- .sram_len = SZ_8K,
+ .sram_dma = DA8XX_SHARED_RAM_BASE,
+ .sram_len = SZ_128K,
 .reset_device = &da8xx_wdt_device,
 };
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
index cfcb223..c3c3339 100644
@@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
 #define DA8XX_AEMIF_CTL_BASE 0x68000000
 #define DA8XX_DDR2_CTL_BASE 0xb0000000
 #define DA8XX_ARM_RAM_BASE 0xffff0000
+#define DA8XX_SHARED_RAM_BASE 0x80000000
 
 void __init da830_init(void);
 void __init da850_init(void);
Signature · 1 line
1.7.2.3
#4 lore raw

Hi Sekhar,

I tried this using MMC and Kelvin's suggestions, but it never came back. Here is a log:

root@arago:~# rtcwake -d /dev/rtc0 -s 20 -m mem
wakeup from "mem" at Tue Apr 21 14:31:13 2009
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
Quoted 1 line

From the Kconfig I had enabled RTC_DRV_OMAP, CONFIG_PM, CONFIG_SUSPEND.

--------------------------------------------------
From: "Nori, Sekhar" <[email protected]>
Sent: Thursday, February 24, 2011 4:57 PM
To: "Subhasish Ghosh" <[email protected]>; <[email protected]>
Cc: <[email protected]>; "Watkins, Melissa" <[email protected]>; <[email protected]>; "Kevin Hilman" <[email protected]>; "Russell King" <[email protected]>; "Michael Williamson" <[email protected]>; "Chemparathy, Cyril" <[email protected]>; "Sergei Shtylyov" <[email protected]>; "open list" <[email protected]>
Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

Quoted 107 lines

Hi Subhasish,

Quoted 19 lines · Subhasish Ghosh

--------------------------------------------------
From: "Nori, Sekhar" <[email protected]>
Sent: Wednesday, February 23, 2011 9:00 PM
To: "Subhasish Ghosh" <[email protected]>; <[email protected]>
Cc: <[email protected]>; "Watkins, Melissa" <[email protected]>; <[email protected]>; "Kevin Hilman" <[email protected]>; "Russell King" <[email protected]>; "Michael Williamson" <[email protected]>; "Chemparathy, Cyril" <[email protected]>; "Sergei Shtylyov" <[email protected]>; "open list" <[email protected]>
Subject: RE: [PATCH 1/1] davinci: changed SRAM allocator to shared ram.

Quoted 6 lines

Hi Subhasish,

Quoted 2 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

Quoted 8 lines
Quoted 3 lines

It will be nice to know if you tried suspend-to-RAM after this change and found it to be working.

SG -- My file system is currently mounted from MMC.
Suspend to RAM seems to have bug with MMC.

(http://processors.wiki.ti.com/index.php/OMAP-L1_Linux_Drivers_Usage#Suspend-to-RAM)

You can try Kevin's suggestion here:

http://linux.davincidsp.com/pipermail/davinci-linux-open-source/2011-January/021807.html

Quoted 2 lines

I had tried NFS earlier, but I think there is some problem with
NFS boot and udev with this kernel.

Anyway there are some problems reported with Ethernet driver and suspend on the latest kernel. Folks inside TI are working on it.

Quoted 3 lines

So, currently I will not be able to do it, but will try if I
get
a chance.

How about using ramdisk?

Thanks,
Sekhar

Quoted 55 lines
Quoted 54 lines

Thanks,
Sekhar

Quoted 50 lines
---
 arch/arm/mach-davinci/da850.c              |    6 +++---
 arch/arm/mach-davinci/include/mach/da8xx.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da850.c +3 -3
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 },
 {
 .virtual = SRAM_VIRT,
- .pfn = __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+ .pfn = __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 .length = SZ_8K,
 .type = MT_DEVICE
 },
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info
 davinci_soc_info_da850 = {
 .gpio_irq = IRQ_DA8XX_GPIO0,
 .serial_dev = &da8xx_serial_device,
 .emac_pdata = &da8xx_emac_pdata,
- .sram_dma = DA8XX_ARM_RAM_BASE,
- .sram_len = SZ_8K,
+ .sram_dma = DA8XX_SHARED_RAM_BASE,
+ .sram_len = SZ_128K,
 .reset_device = &da8xx_wdt_device,
 };
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
index cfcb223..c3c3339 100644
@@ -70,6 +70,7 @@ extern unsigned int da850_max_speed;
 #define DA8XX_AEMIF_CTL_BASE 0x68000000
 #define DA8XX_DDR2_CTL_BASE 0xb0000000
 #define DA8XX_ARM_RAM_BASE 0xffff0000
+#define DA8XX_SHARED_RAM_BASE 0x80000000
 
 void __init da830_init(void);
 void __init da850_init(void);
Signature · 1 line
1.7.2.3
#5 lore raw

Hi Subhasish,

Quoted 4 lines · Subhasish Ghosh

Hi Sekhar,

I tried this using MMC and Kelvin's suggestions, but it never came back. Here is a log:

Was this result with or without this patch applied?

Quoted 9 lines

root at arago:~# rtcwake -d /dev/rtc0 -s 20 -m mem wakeup from "mem" at Tue Apr 21 14:31:13 2009
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. Suspending console(s) (use no_console_suspend to debug)

From the Kconfig I had enabled RTC_DRV_OMAP, CONFIG_PM, CONFIG_SUSPEND.

Nothing stands out from these logs. One thing to verify is if the RTC Alarm interrupt is really working by using the test program present in the Documentation/ folder.

Anyway, the easiest way for you to move quickly is to use ramdisk so you can bypass all driver specific issues.

Thanks,
Sekhar

#6 lore raw

Hi Subhasish and Sekhar,

Subhashish, I was testing your patch here while investigating davinci-pcm ping-pong buffers on da850.

Quoted 7 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

---
?arch/arm/mach-davinci/da850.c ? ? ? ? ? ? ?| ? ?6 +++--- ?arch/arm/mach-davinci/include/mach/da8xx.h | ? ?1 +

Since this changes only the da850 behaviour, a subject prefix of da850 might be more appropriate than 'davinci'.

arch/arm/mach-davinci/da850.c static struct map_desc da850_io_desc[] = { · line 715

Quoted 13 lines

?2 files changed, 4 insertions(+), 3 deletions(-)

arch/arm/mach-davinci/da850.c +1 -1
index 3443d97..8a4de97 100644
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 ? ? ? ?},
 ? ? ? ?{
 ? ? ? ? ? ? ? ?.virtual ? ? ? ?= SRAM_VIRT,
- ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+ ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 ? ? ? ? ? ? ? ?.length ? ? ? ? = SZ_8K,

Assigning only 8K to this iomap will result in a fault for the first victim to access SRAM_VIRT+0x2000. This will happen for example with mcasp ping-pong buffers totalling more than 8K on the da850.

Unfortunately SZ_128K cannot be used here since it will cause a panic on boot. SZ_64K works though.

arch/arm/mach-davinci/da850.c static struct davinci_soc_info davinci_soc_info_da850 = { · line 1087

Quoted 10 lines

? ? ? ? ? ? ? ?.type ? ? ? ? ? = MT_DEVICE
? ? ? ?},

arch/arm/mach-davinci/da850.c +2 -2
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
 ? ? ? ?.gpio_irq ? ? ? ? ? ? ? = IRQ_DA8XX_GPIO0,
 ? ? ? ?.serial_dev ? ? ? ? ? ? = &da8xx_serial_device,
 ? ? ? ?.emac_pdata ? ? ? ? ? ? = &da8xx_emac_pdata,
- ? ? ? .sram_dma ? ? ? ? ? ? ? = DA8XX_ARM_RAM_BASE,
- ? ? ? .sram_len ? ? ? ? ? ? ? = SZ_8K,
+ ? ? ? .sram_dma ? ? ? ? ? ? ? = DA8XX_SHARED_RAM_BASE,
+ ? ? ? .sram_len ? ? ? ? ? ? ? = SZ_128K,

This should probably be set to match whatever is reported in the map entry above -- or an ioremap could be issued later but before the sram init?

Quoted 10 lines · Sekhar

[...]

Quoted 8 lines

root at arago:~# rtcwake -d /dev/rtc0 -s 20 -m mem wakeup from "mem" at Tue Apr 21 14:31:13 2009
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.01 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. Suspending console(s) (use no_console_suspend to debug)

From the Kconfig I had enabled RTC_DRV_OMAP, CONFIG_PM, CONFIG_SUSPEND.

Quoted 8 lines

Nothing stands out from these logs. One thing to verify is if the RTC Alarm interrupt is really working by using the test program present in the Documentation/ folder.

Anyway, the easiest way for you to move quickly is to use ramdisk so you can bypass all driver specific issues.

I tested suspend here with the patch applied on top of 2.6.39-rc7 using "rtcwake -d /dev/rtc0 -s 20 -m mem" and it works.

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca

#7 lore raw
Quoted 10 lines · Ben Gardiner

Hi Subhasish and Sekhar,

Subhashish, I was testing your patch here while investigating davinci-pcm ping-pong buffers on da850.

Quoted 3 lines · Subhasish Ghosh

This patch modifies the sram allocator to allocate memory from the DA8XX shared RAM.

Quoted 7 lines
Quoted 4 lines

---
?arch/arm/mach-davinci/da850.c ? ? ? ? ? ? ?| ? ?6 +++--- ?arch/arm/mach-davinci/include/mach/da8xx.h | ? ?1 +

Since this changes only the da850 behaviour, a subject prefix of da850 might be more appropriate than 'davinci'.

Please use "davinci: da850: ..."

Quoted 19 lines
Quoted 8 lines

?2 files changed, 4 insertions(+), 3 deletions(-)

arch/arm/mach-davinci/da850.c +0 -0
index 3443d97..8a4de97 100644

arch/arm/mach-davinci/da850.c static struct map_desc da850_io_desc[] = { · line 715

Quoted 6 lines
arch/arm/mach-davinci/da850.c +1 -1
@@ -711,7 +711,7 @@ static struct map_desc da850_io_desc[] = {
 ? ? ? ?},
 ? ? ? ?{
 ? ? ? ? ? ? ? ?.virtual ? ? ? ?= SRAM_VIRT,
- ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(DA8XX_ARM_RAM_BASE),
+ ? ? ? ? ? ? ? .pfn ? ? ? ? ? ?= __phys_to_pfn(DA8XX_SHARED_RAM_BASE),
 ? ? ? ? ? ? ? ?.length ? ? ? ? = SZ_8K,

Assigning only 8K to this iomap will result in a fault for the first victim to access SRAM_VIRT+0x2000. This will happen for example with mcasp ping-pong buffers totalling more than 8K on the da850.

Quoted 1 line

Unfortunately SZ_128K cannot be used here since it will cause a panic

Okay, I am seeing this too. Kernel panics after freeing init memory. No idea on this one, needs to be debugged.

Freeing init memory: 136K

Kernel panic - not syncing: Attempted to kill init!
[<c002f094>] (unwind_backtrace+0x0/0xec) from [<c024bf7c>] (panic+0x5c/0x184)
[<c024bf7c>] (panic+0x5c/0x184) from [<c00427dc>] (do_exit+0xb4/0x6c4)
[<c00427dc>] (do_exit+0xb4/0x6c4) from [<c0042ea4>] (do_group_exit+0xb8/0xe8)
[<c0042ea4>] (do_group_exit+0xb8/0xe8) from [<c004eaa4>] (get_signal_to_deliver+0x398/0x3f4)
[<c004eaa4>] (get_signal_to_deliver+0x398/0x3f4) from [<c002ca7c>] (do_notify_resume+0x60/0x610)
[<c002ca7c>] (do_notify_resume+0x60/0x610) from [<c002afd4>] (work_pending+0x24/0x28)
Quoted 1 line

on boot. SZ_64K works though.

Right.

Quoted 13 lines

arch/arm/mach-davinci/da850.c static struct davinci_soc_info davinci_soc_info_da850 = { · line 1087

Quoted 11 lines

? ? ? ? ? ? ? ?.type ? ? ? ? ? = MT_DEVICE
? ? ? ?},

arch/arm/mach-davinci/da850.c +2 -2
@@ -1083,8 +1083,8 @@ static struct davinci_soc_info davinci_soc_info_da850 = {
 ? ? ? ?.gpio_irq ? ? ? ? ? ? ? = IRQ_DA8XX_GPIO0,
 ? ? ? ?.serial_dev ? ? ? ? ? ? = &da8xx_serial_device,
 ? ? ? ?.emac_pdata ? ? ? ? ? ? = &da8xx_emac_pdata,
- ? ? ? .sram_dma ? ? ? ? ? ? ? = DA8XX_ARM_RAM_BASE,
- ? ? ? .sram_len ? ? ? ? ? ? ? = SZ_8K,
+ ? ? ? .sram_dma ? ? ? ? ? ? ? = DA8XX_SHARED_RAM_BASE,
+ ? ? ? .sram_len ? ? ? ? ? ? ? = SZ_128K,

This should probably be set to match whatever is reported in the map

You are right, the two sizes should match.

Quoted 2 lines

entry above -- or an ioremap could be issued later but before the sram init?

Yes, ioremap would be better. I am not sure why a fixed mapping for SRAM is required.

Please base these patches on Russell's SRAM consolidation patch.

Thanks,
Sekhar