mm: The first 1MB mem is wasted for CPU series coming after TXLX [1/1]
authorchangqing.gao <changqing.gao@amlogic.com>
Thu, 21 Feb 2019 09:19:06 +0000 (17:19 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Mon, 25 Feb 2019 03:01:36 +0000 (19:01 -0800)
PD#SWPL-3744

Problem:
For the previous Amlogic CPU series(before TXLX), the CPU booting vector
locates at physical address starting from 0x00. To avoid influencing cpu
booting procedure, we have to reserve the first 1MB physical memory. But
it has changed since TXLX, the normal text section can safely use 0~1M
physical address. So it's no need to reserve the first 1MB in DTS.

Solution:
Change the starting address of usable memory from 0x100000 to 0x0 for CPU
series coming after TXLX.

Verify:
Locally on W400

Change-Id: I2df7859a38feca48abd58459e8b231ee15ada9e2
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
52 files changed:
arch/arm/boot/dts/amlogic/atom.dts
arch/arm/boot/dts/amlogic/axg_a113d_skt.dts
arch/arm/boot/dts/amlogic/axg_pxp.dts
arch/arm/boot/dts/amlogic/g12a_pxp.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_skt.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_skt_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_buildroot_vccktest.dts
arch/arm/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u211.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u211_1g.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u211_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905x2_u212_buildroot.dts
arch/arm/boot/dts/amlogic/g12a_s905y2_u220.dts
arch/arm/boot/dts/amlogic/g12b_a311d_skt.dts
arch/arm/boot/dts/amlogic/g12b_a311d_w400_buildroot.dts
arch/arm/boot/dts/amlogic/g12b_a311d_w400_buildroot_vccktest.dts
arch/arm/boot/dts/amlogic/g12b_pxp.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_skt.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm/boot/dts/amlogic/tl1_t962x2_x301.dts
arch/arm/boot/dts/amlogic/txlx_t962e_r321_buildroot.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r311_720p.dts
arch/arm/boot/dts/amlogic/txlx_t962x_r314.dts
arch/arm64/boot/dts/amlogic/atom.dts
arch/arm64/boot/dts/amlogic/axg_a113d_skt.dts
arch/arm64/boot/dts/amlogic/axg_pxp.dts
arch/arm64/boot/dts/amlogic/g12a_pxp.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_skt.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_skt_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot_vccktest.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211_1g.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u211_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905y2_u220.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_buildroot.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_buildroot_vccktest.dts
arch/arm64/boot/dts/amlogic/g12b_a311x_w411_buildroot.dts
arch/arm64/boot/dts/amlogic/g12b_pxp.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
arch/arm64/boot/dts/amlogic/txlx_t962e_r321.dts
arch/arm64/boot/dts/amlogic/txlx_t962e_r321_buildroot.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_720p.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r314.dts

index 0b45330..b2a9b47 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 96e74c9..a431933 100644 (file)
@@ -36,7 +36,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index 702352d..297963d 100644 (file)
@@ -32,7 +32,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index 28c98cb..4973402 100644 (file)
@@ -37,7 +37,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index c511bb4..352ea71 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 6955c45..88c7dfb 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 0b38e1b..c5ee01e 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 831d296..bc7730e 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 05fd700..84f951f 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 7d821fa..3624452 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 9952476..fcd2ebb 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
 
        };
 
index 69d17f5..e999e2c 100644 (file)
@@ -43,7 +43,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 89b9b14..a3281e8 100644 (file)
@@ -43,7 +43,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index a734db6..48895fc 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 7e048d3..2a11dfa 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 249db34..63dbb9c 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index f24ef24..fcdffd3 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 610d41a..b6571df 100644 (file)
@@ -38,7 +38,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index 5422337..2ab589f 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index e57b34a..59b094f 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 014a7c7..13f0047 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index 8240af2..5ad32c8 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x7ff00000>;
+               linux,usable-memory = <0x0 0x80000000>;
        };
 
        reserved-memory {
index c3d094f..e4ab34e 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index e8d4868..e472e83 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x3ff00000>;
+               linux,usable-memory = <0x0 0x40000000>;
        };
 
        reserved-memory {
index ab3ab7f..104abb7 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x100000 0x5ff00000>;
+               linux,usable-memory = <0x0 0x60000000>;
        };
 
        reserved-memory {
index 2fa541e..647052c 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 0a92bca..e9f8680 100644 (file)
@@ -36,7 +36,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index 3795549..b120496 100644 (file)
@@ -32,7 +32,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index dc0e5ac..7613b14 100644 (file)
@@ -37,7 +37,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index 5700547..ae4f090 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 5c48f26..51b1043 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 3c79d04..190540c 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index c7118a4..5b288e8 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index a87ba00..7caa5ec 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index d84451f..c9342b1 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 31390b8..24074be 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
 
        };
 
index b05d3e8..36241d6 100644 (file)
@@ -43,7 +43,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 09a878d..dd8d37e 100644 (file)
@@ -43,7 +43,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 1af01b2..d2a56ed 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index ecef641..31dce53 100644 (file)
@@ -46,7 +46,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index dcae6f1..99bbc33 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 00047a2..8f00163 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index a06643e..37dc842 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index 0707e9b..f965da6 100644 (file)
@@ -38,7 +38,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index e73c427..8790ad9 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 78cbdd2..b618c9d 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 1af5e2d..1a867b2 100644 (file)
@@ -45,7 +45,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index f18c895..d3eb0ef 100644 (file)
@@ -44,7 +44,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index a7a196e..3db9658 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index ad07f80..5c9e78d 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x7ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x80000000>;
        };
 
        reserved-memory {
index 0e7b1f5..edbf084 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
        };
 
        reserved-memory {
index 706cd74..2f7675e 100644 (file)
@@ -48,7 +48,7 @@
 
        memory@00000000 {
                device_type = "memory";
-               linux,usable-memory = <0x0 0x100000 0x0 0x5ff00000>;
+               linux,usable-memory = <0x0 0x0 0x0 0x60000000>;
        };
 
        reserved-memory {