Commit 0cd4e90c authored by Vignesh Viswanathan's avatar Vignesh Viswanathan Committed by Bjorn Andersson

arm64: dts: qcom: add few more reserved memory region

In IPQ SoCs, bootloader will collect the system RAM contents upon crash
for the post morterm analysis. If we don't reserve the memory region used
by bootloader, obviously linux will consume it and upon next boot on
crash, bootloader will be loaded in the same region, which will lead to
loose some of the data, sometimes we may miss out critical information.
So lets reserve the region used by the bootloader.

Similarly SBL copies some data into the reserved region and it will be
used in the crash scenario. So reserve 1MB for SBL as well.

While at it, drop the size padding in the reserved memory region,
wherever applicable.
Signed-off-by: default avatarVignesh Viswanathan <quic_viswanat@quicinc.com>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230526110653.27777-4-quic_viswanat@quicinc.com
parent 9b2406aa
...@@ -155,18 +155,28 @@ rpm_msg_ram: memory@60000 { ...@@ -155,18 +155,28 @@ rpm_msg_ram: memory@60000 {
no-map; no-map;
}; };
bootloader@4a100000 {
reg = <0x0 0x4a100000 0x0 0x400000>;
no-map;
};
sbl@4a500000 {
reg = <0x0 0x4a500000 0x0 0x100000>;
no-map;
};
tz: memory@4a600000 { tz: memory@4a600000 {
reg = <0x0 0x4a600000 0x0 0x00400000>; reg = <0x0 0x4a600000 0x0 0x400000>;
no-map; no-map;
}; };
smem_region: memory@4aa00000 { smem_region: memory@4aa00000 {
reg = <0x0 0x4aa00000 0x0 0x00100000>; reg = <0x0 0x4aa00000 0x0 0x100000>;
no-map; no-map;
}; };
q6_region: memory@4ab00000 { q6_region: memory@4ab00000 {
reg = <0x0 0x4ab00000 0x0 0x05500000>; reg = <0x0 0x4ab00000 0x0 0x5500000>;
no-map; no-map;
}; };
}; };
......
...@@ -85,17 +85,27 @@ reserved-memory { ...@@ -85,17 +85,27 @@ reserved-memory {
#size-cells = <2>; #size-cells = <2>;
ranges; ranges;
bootloader@4a600000 {
reg = <0x0 0x4a600000 0x0 0x400000>;
no-map;
};
sbl@4aa00000 {
reg = <0x0 0x4aa00000 0x0 0x100000>;
no-map;
};
smem@4ab00000 { smem@4ab00000 {
compatible = "qcom,smem"; compatible = "qcom,smem";
reg = <0x0 0x4ab00000 0x0 0x00100000>; reg = <0x0 0x4ab00000 0x0 0x100000>;
no-map; no-map;
hwlocks = <&tcsr_mutex 0>; hwlocks = <&tcsr_mutex 0>;
}; };
memory@4ac00000 { memory@4ac00000 {
reg = <0x0 0x4ac00000 0x0 0x400000>;
no-map; no-map;
reg = <0x0 0x4ac00000 0x0 0x00400000>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment