ARM: meson: Extend mem_map to support 3GiB of RAM
Subsystems (3)
PATCH v2 1/1 ARM: meson: Extend mem_map to support 3GiB of RAM
The current mem_map definition for Meson SoCs has support for up to 2GiB of RAM. According to S905, S905X, S912 and S805X datasheets the DDR region is set from 0x00000000 to 0xBFFFFFFF, so mem_map's definition should be changed accordingly.
It is also needed to be able to boot Khadas VIM2 board with S912 SoC.
---
v2: set the correct size for devices memory map
arch/arm/mach-meson/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-meson/board.c +4 -4
@@ -111,13 +111,13 @@ static struct mm_region gx_mem_map[] = { { .virt = 0x0UL, .phys = 0x0UL, - .size = 0x80000000UL, + .size = 0xc0000000UL, .attrs =PTE_BLOCK_MEMTYPE (MT_NORMAL ) |PTE_BLOCK_INNER_SHARE }, { - .virt = 0x80000000UL, - .phys = 0x80000000UL, - .size =0x80000000UL , + .virt = 0xc0000000UL, + .phys = 0xc0000000UL, + .size =0x30000000UL , .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |PTE_BLOCK_NON_SHARE |PTE_BLOCK_PXN |PTE_BLOCK_UXN
Signature · 1 line
2.16.4
PATCH v2 1/1 ARM: meson: Extend mem_map to support 3GiB of RAM
Hi Loic,
Quoted 28 lines · Loic Devulder
The current
mem_mapdefinition for Meson SoCs has support for up to 2GiB of RAM. According to S905, S905X, S912 and S805X datasheets the DDR region is set from0x00000000to0xBFFFFFFF, so mem_map's definition should be changed accordingly.It is also needed to be able to boot Khadas VIM2 board with S912 SoC.
Signed-off-by Loic Devulder <[email protected]>---
v2: set the correct size for devices memory maparch/arm/mach-meson/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)arch/arm/mach-meson/board.c +1
-1@@ -111,13 +111,13 @@ static struct mm_region gx_mem_map[] = { { .virt = 0x0UL, .phys = 0x0UL, - .size =0x80000000UL , + .size =0xc0000000UL , .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) |PTE_BLOCK_INNER_SHARE
arch/arm/mach-meson/board.c static struct mm_region gx_mem_map[] = { · line 123
Quoted 10 lines
arch/arm/mach-meson/board.c +3
-3}, { - .virt = 0x80000000UL, - .phys = 0x80000000UL, - .size =0x80000000UL , + .virt = 0xc0000000UL, + .phys = 0xc0000000UL, + .size =0x30000000UL , .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |PTE_BLOCK_NON_SHARE |PTE_BLOCK_PXN |PTE_BLOCK_UXN
You were faster than me, and already reviewed physically by Marek and Alexander !!
This will fix support for upcoming 3GiB capable boards !
Neil
PATCH v2 1/1 ARM: meson: Extend mem_map to support 3GiB of RAM
In reply to Loic DevulderQuoted 9 lines · Loic Devulder
The current
mem_mapdefinition for Meson SoCs has support for up to 2GiB of RAM. According to S905, S905X, S912 and S805X datasheets the DDR region is set from0x00000000to0xBFFFFFFF, so mem_map's definition should be changed accordingly.It is also needed to be able to boot Khadas VIM2 board with S912 SoC.
Signed-off-by Loic Devulder <[email protected]>
Thanks
Quoted 29 lines
---
v2: set the correct size for devices memory maparch/arm/mach-meson/board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)arch/arm/mach-meson/board.c +4
-4@@ -111,13 +111,13 @@ static struct mm_region gx_mem_map[] = { { .virt = 0x0UL, .phys = 0x0UL, - .size = 0x80000000UL, + .size = 0xc0000000UL, .attrs =PTE_BLOCK_MEMTYPE (MT_NORMAL ) |PTE_BLOCK_INNER_SHARE }, { - .virt = 0x80000000UL, - .phys = 0x80000000UL, - .size =0x80000000UL , + .virt = 0xc0000000UL, + .phys = 0xc0000000UL, + .size =0x30000000UL , .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |PTE_BLOCK_NON_SHARE |PTE_BLOCK_PXN |PTE_BLOCK_UXN
Signature · 2 lines
Best regards, Marek Vasut
PATCH v2 1/1 ARM: meson: Extend mem_map to support 3GiB of RAM
In reply to Loic DevulderQuoted 11 lines · Loic Devulder
The current
mem_mapdefinition for Meson SoCs has support for up to 2GiB of RAM. According to S905, S905X, S912 and S805X datasheets the DDR region is set from0x00000000to0xBFFFFFFF, so mem_map's definition should be changed accordingly.It is also needed to be able to boot Khadas VIM2 board with S912 SoC.
Signed-off-by Loic Devulder <[email protected]>Acked-by Neil Armstrong <[email protected]>Acked-by Marek Vasut <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181011/dd6ea1df/attachment.sig>