Skip to content

Commit fc39bf2

Browse files
barni2000gregkh
authored andcommitted
arm64: dts: qcom: sm6125-xiaomi-ginkgo: Correct reserved memory ranges
[ Upstream commit 242801c ] The device was crashing on high memory load because the reserved memory ranges was wrongly defined. Correct the ranges for avoid the crashes. Change the ramoops memory range to match with the values from the recovery to be able to get the results from the device. Fixes: 9b1a6c9 ("arm64: dts: qcom: sm6125: Initial support for xiaomi-ginkgo") Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org> Link: https://lore.kernel.org/r/20260126-xiaomi-willow-v3-2-aad7b106c311@mainlining.org Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e3d8680 commit fc39bf2

1 file changed

Lines changed: 29 additions & 12 deletions

File tree

arch/arm64/boot/dts/qcom/sm6125-xiaomi-ginkgo.dts

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
#include "sm6125.dtsi"
1414
#include "pm6125.dtsi"
1515

16+
/delete-node/ &adsp_pil_mem;
17+
/delete-node/ &cont_splash_mem;
18+
/delete-node/ &gpu_mem;
19+
/delete-node/ &ipa_fw_mem;
20+
/delete-node/ &ipa_gsi_mem;
21+
1622
/ {
1723
model = "Xiaomi Redmi Note 8";
1824
compatible = "xiaomi,ginkgo", "qcom,sm6125";
@@ -36,28 +42,39 @@
3642
};
3743

3844
reserved-memory {
39-
debug_mem: debug@ffb00000 {
40-
reg = <0x0 0xffb00000 0x0 0xc0000>;
45+
adsp_pil_mem: adsp_pil_mem@55300000 {
46+
reg = <0x0 0x55300000 0x0 0x2200000>;
4147
no-map;
4248
};
4349

44-
last_log_mem: lastlog@ffbc0000 {
45-
reg = <0x0 0xffbc0000 0x0 0x80000>;
50+
ipa_fw_mem: ipa_fw_mem@57500000 {
51+
reg = <0x0 0x57500000 0x0 0x10000>;
4652
no-map;
4753
};
4854

49-
pstore_mem: ramoops@ffc00000 {
50-
compatible = "ramoops";
51-
reg = <0x0 0xffc40000 0x0 0xc0000>;
52-
record-size = <0x1000>;
53-
console-size = <0x40000>;
54-
pmsg-size = <0x20000>;
55+
ipa_gsi_mem: ipa_gsi_mem@57510000 {
56+
reg = <0x0 0x57510000 0x0 0x5000>;
57+
no-map;
5558
};
5659

57-
cmdline_mem: memory@ffd00000 {
58-
reg = <0x0 0xffd40000 0x0 0x1000>;
60+
gpu_mem: gpu_mem@57515000 {
61+
reg = <0x0 0x57515000 0x0 0x2000>;
5962
no-map;
6063
};
64+
65+
framebuffer@5c000000 {
66+
reg = <0x0 0x5c000000 0x0 (2340 * 1080 * 4)>;
67+
no-map;
68+
};
69+
70+
/* Matching with recovery values to be able to get the results. */
71+
ramoops@61600000 {
72+
compatible = "ramoops";
73+
reg = <0x0 0x61600000 0x0 0x400000>;
74+
record-size = <0x80000>;
75+
pmsg-size = <0x200000>;
76+
console-size = <0x100000>;
77+
};
6178
};
6279

6380
extcon_usb: extcon-usb {

0 commit comments

Comments
 (0)