ARM: shmobile: lager: correct memory map
Subsystems (2)
PATCH 1/1 ARM: shmobile: lager: correct memory map
The base address of the second memory region on the lager board is 0x140000000. Update the tag used in the dts file accordingly.
This is a documentation fix and should have no run-time affect.
This problem was introduced when the second memory region was added to the lager dts file by 62bc32a2573c4219 ("ARM: shmobile: Include all 4 GiB of memory on Lager)" in v3.14.
--- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/r8a7790-lager.dts +1 -1
@@ -32,7 +32,7 @@ reg = <0 0x40000000 0 0x40000000>; }; - memory at 180000000 { + memory at 140000000 { device_type = "memory"; reg = <1 0x40000000 0 0xc0000000>; };
Signature · 1 line
2.0.1
PATCH 1/1 ARM: shmobile: lager: correct memory map
Hi,
Quoted 21 lines · Simon Horman
The base address of the second memory region on the lager board is
0x140000000. Update the tag used in the dts file accordingly.This is a documentation fix and should have no run-time affect.
This problem was introduced when the second memory region was added to the lager dts file by
62bc32a2573c4219("ARM: shmobile: Include all 4 GiB of memory on Lager)" in v3.14.Reported-by NAOYA SHIIBA <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/r8a7790-lager.dts +0
-0
arch/arm/boot/dts/r8a7790-lager.dts line 35
Quoted 5 lines
arch/arm/boot/dts/r8a7790-lager.dts +1
-1@@ -32,7 +32,7 @@ reg = <0 0x40000000 0 0x40000000>; }; - memory at 180000000 { + memory at 140000000 {
That should even be "memory at 1,40000000".
-Olof
PATCH 1/1 ARM: shmobile: lager: correct memory map
Quoted 28 lines · Olof Johansson
Hi,
Quoted 24 lines · Simon Horman
The base address of the second memory region on the lager board is
0x140000000. Update the tag used in the dts file accordingly.This is a documentation fix and should have no run-time affect.
This problem was introduced when the second memory region was added to the lager dts file by
62bc32a2573c4219("ARM: shmobile: Include all 4 GiB of memory on Lager)" in v3.14.Reported-by NAOYA SHIIBA <[email protected]>Signed-off-by Simon Horman <[email protected]>--- arch/arm/boot/dts/r8a7790-lager.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/r8a7790-lager.dts +0
-0@@ -32,7 +32,7 @@ reg = <0 0x40000000 0 0x40000000>; };
Quoted 4 lines
arch/arm/boot/dts/r8a7790-lager.dts line 35
Quoted 2 lines
arch/arm/boot/dts/r8a7790-lager.dts +1
-1- memory at 180000000 { + memory at 140000000 {That should even be "memory at 1,40000000".
Two comma-separated 32bit values in the case
where a memory range starts above 4Gb?
If so it looks like this will be the first user of that syntax (I don't see any in linux-next today).
I do however see several users of memrory at 64bit_value. Mostly other renesas fds files; ecx-2000.dts being the exception. Should they be fixed too?
$ find -name "*.dts" | xargs grep memory@[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
./arch/arm/boot/dts/r8a7791-henninger.dts: memory at 200000000 {
./arch/arm/boot/dts/r8a7791-koelsch.dts: memory at 200000000 {
./arch/arm/boot/dts/ecx-2000.dts: memory at 200000000 {
./arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts: memory at 200000000 {
./arch/arm/boot/dts/r8a7790-lager.dts: memory at 180000000 {
./arch/arm/boot/dts/r8a73a4-ape6evm.dts: memory at 200000000 {PATCH 1/1 ARM: shmobile: lager: correct memory map
Quoted 8 lines · Simon Horman
Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/r8a7790-lager.dts +0
-0@@ -32,7 +32,7 @@ reg = <0 0x40000000 0 0x40000000>; };
Quoted 7 lines
Quoted 4 lines
arch/arm/boot/dts/r8a7790-lager.dts line 35
Quoted 2 lines
arch/arm/boot/dts/r8a7790-lager.dts +1
-1- memory at 180000000 { + memory at 140000000 {That should even be "memory at 1,40000000".
Two comma-separated 32bit values in the case
where a memory range starts above 4Gb?
Yes. As #address-cells is 2, there should be two values after the "@" (the first one may be optional if it's zero, I don't know for sure?)
Quoted 2 lines
If so it looks like this will be the first user of that syntax (I don't see any in linux-next today).
No, "git grep '@.*,' -- arch/arm/boot/dts" shows several users. Not all of them are 64-bit memory addresses, but some are.
Quoted 11 lines
I do however see several users of memrory at 64bit_value. Mostly other renesas fds files;
ecx-2000.dtsbeing the exception. Should they be fixed too?$ find -name "*.dts" | xargs grep memory@[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ./arch/arm/boot/dts/r8a7791-henninger.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a7791-koelsch.dts: memory at 200000000 { ./arch/arm/boot/dts/ecx-2000.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a7790-lager.dts: memory at 180000000 { ./arch/arm/boot/dts/r8a73a4-ape6evm.dts: memory at 200000000 {
Yes, these should be fixed, too.
It's a pity dtc doesn't complain about this.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 1/1 ARM: shmobile: lager: correct memory map
Quoted 17 lines · Geert Uytterhoeven
Quoted 8 lines · Simon Horman
Quoted 8 lines
Quoted 8 lines
arch/arm/boot/dts/r8a7790-lager.dts +0
-0@@ -32,7 +32,7 @@ reg = <0 0x40000000 0 0x40000000>; };Quoted 7 lines
Quoted 4 lines
arch/arm/boot/dts/r8a7790-lager.dts line 35
Quoted 2 lines
arch/arm/boot/dts/r8a7790-lager.dts +1
-1- memory at 180000000 { + memory at 140000000 {That should even be "memory at 1,40000000".
Two comma-separated 32bit values in the case
where a memory range starts above 4Gb?
Quoted 8 lines
Yes. As #address-cells is 2, there should be two values after the "@" (the first one may be optional if it's zero, I don't know for sure?)
Quoted 2 lines
If so it looks like this will be the first user of that syntax (I don't see any in linux-next today).
No, "git grep '@.*,' --
arch/arm/boot/dts" shows several users. Not all of them are 64-bit memory addresses, but some are.
Thanks, I like your grep better than mine.
Quoted 12 lines
Quoted 11 lines
I do however see several users of memrory at 64bit_value. Mostly other renesas fds files;
ecx-2000.dtsbeing the exception. Should they be fixed too?$ find -name "*.dts" | xargs grep memory@[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ./arch/arm/boot/dts/r8a7791-henninger.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a7791-koelsch.dts: memory at 200000000 { ./arch/arm/boot/dts/ecx-2000.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts: memory at 200000000 { ./arch/arm/boot/dts/r8a7790-lager.dts: memory at 180000000 { ./arch/arm/boot/dts/r8a73a4-ape6evm.dts: memory at 200000000 {
Quoted 3 lines
Yes, these should be fixed, too.
It's a pity dtc doesn't complain about this.
Indeed.