mm: The first 1MB mem is wasted for CPU series coming after TXLX [1/1]

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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/txlx_t962x_r311_1g.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_t309.dts
	arch/arm64/boot/dts/amlogic/tl1_t962x2_x301.dts
This commit is contained in:
changqing.gao
2019-02-21 17:19:06 +08:00
committed by Luan Yuan
parent 4b8eadf12a
commit 36b6828077
50 changed files with 49 additions and 1700 deletions

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -36,7 +36,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};
reserved-memory {

View File

@@ -32,7 +32,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};
reserved-memory {

View File

@@ -37,7 +37,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -46,7 +46,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -44,7 +44,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -44,7 +44,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};

View File

@@ -43,7 +43,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -43,7 +43,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -44,7 +44,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -46,7 +46,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -38,7 +38,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};
reserved-memory {

View File

@@ -43,7 +43,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -44,7 +44,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -43,7 +43,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

View File

@@ -44,7 +44,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x7ff00000>;
linux,usable-memory = <0x0 0x80000000>;
};
reserved-memory {

File diff suppressed because it is too large Load Diff

View File

@@ -46,7 +46,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x3ff00000>;
linux,usable-memory = <0x0 0x40000000>;
};
reserved-memory {

View File

@@ -48,7 +48,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x100000 0x5ff00000>;
linux,usable-memory = <0x0 0x60000000>;
};
reserved-memory {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View File

@@ -45,7 +45,7 @@
memory@00000000 {
device_type = "memory";
linux,usable-memory = <0x0 0x100000 0x0 0x3ff00000>;
linux,usable-memory = <0x0 0x0 0x0 0x40000000>;
};

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {

View 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 {