mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
From cf53f8937fa9241f6d873a469c04d509e3062539 Mon Sep 17 00:00:00 2001
|
|
From: Anusha Rao <quic_anusha@quicinc.com>
|
|
Date: Fri, 2 Jun 2023 14:14:31 +0530
|
|
Subject: [PATCH 27/41] arm64: dts: qcom: ipq9574: add few more reserved memory
|
|
region
|
|
|
|
In IPQ SoCs, bootloader will collect the system RAM contents upon crash
|
|
for 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
|
|
loss of some 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: Anusha Rao <quic_anusha@quicinc.com>
|
|
Reviewed-by: Kathiravan T <quic_kathirav@quicinc.com>
|
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
|
Link: https://lore.kernel.org/r/20230602084431.19134-1-quic_anusha@quicinc.com
|
|
---
|
|
arch/arm64/boot/dts/qcom/ipq9574.dtsi | 12 +++++++++++-
|
|
1 file changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
--- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
|
|
@@ -148,6 +148,16 @@
|
|
#size-cells = <2>;
|
|
ranges;
|
|
|
|
+ bootloader@4a100000 {
|
|
+ reg = <0x0 0x4a100000 0x0 0x400000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
+ sbl@4a500000 {
|
|
+ reg = <0x0 0x4a500000 0x0 0x100000>;
|
|
+ no-map;
|
|
+ };
|
|
+
|
|
tz_region: tz@4a600000 {
|
|
reg = <0x0 0x4a600000 0x0 0x400000>;
|
|
no-map;
|
|
@@ -155,7 +165,7 @@
|
|
|
|
smem@4aa00000 {
|
|
compatible = "qcom,smem";
|
|
- reg = <0x0 0x4aa00000 0x0 0x00100000>;
|
|
+ reg = <0x0 0x4aa00000 0x0 0x100000>;
|
|
hwlocks = <&tcsr_mutex 0>;
|
|
no-map;
|
|
};
|