All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000
@ 2021-06-22  3:44 Petr Vorel
  2021-06-22 12:09 ` Alexey Minnekhanov
  2021-06-22 13:36 ` Konrad Dybcio
  0 siblings, 2 replies; 3+ messages in thread
From: Petr Vorel @ 2021-06-22  3:44 UTC (permalink / raw)
  To: linux-arm-msm
  Cc: Petr Vorel, Konrad Dybcio, Andy Gross, Bjorn Andersson,
	Rob Herring, devicetree

It prevents booting angler.

cont_splash_mem was introduced in 74d6d0a145835, but the problem
manifested after 86588296acbf ("fdt: Properly handle "no-map" field
in the memory region").

Fixes: 74d6d0a145835 ("arm64: dts: qcom: msm8994/8994-kitakami: Fix up
the memory map")

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Hi,

not sure if cont_splash_mem memory@3800000 is msm8994 specific.
BTW I haven't found it in LineageOS git [1]

Maybe it should go to msm8994-sony-xperia-kitakami.dtsi.
And I suppose it breaks also bullhead, thus this probably should go also
to msm8992-bullhead-rev-101.dts.

Kind regards,
Petr

[1] https://github.com/LineageOS/android_kernel_sony_msm8994

 arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
index ffe1a9bd8f70..af5ff9badec9 100644
--- a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
+++ b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /* Copyright (c) 2015, Huawei Inc. All rights reserved.
  * Copyright (c) 2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021, Petr Vorel <petr.vorel@gmail.com>
  */
 
 /dts-v1/;
@@ -31,6 +32,10 @@ serial@f991e000 {
 			pinctrl-1 = <&blsp1_uart2_sleep>;
 		};
 	};
+
+	reserved-memory {
+		/delete-node/ memory@3800000;
+	};
 };
 
 &tlmm {
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000
  2021-06-22  3:44 [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000 Petr Vorel
@ 2021-06-22 12:09 ` Alexey Minnekhanov
  2021-06-22 13:36 ` Konrad Dybcio
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Minnekhanov @ 2021-06-22 12:09 UTC (permalink / raw)
  To: Petr Vorel, linux-arm-msm
  Cc: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring, devicetree

22.06.2021 06:44, Petr Vorel:> Hi,
> 
> not sure if cont_splash_mem memory@3800000 is msm8994 specific.
> BTW I haven't found it in LineageOS git [1]
> 
> Maybe it should go to msm8994-sony-xperia-kitakami.dtsi.
> And I suppose it breaks also bullhead, thus this probably should go also
> to msm8992-bullhead-rev-101.dts.

Moving reserved-memory nodes from SoC level .dtsi files to device 
specific .dts seems like a better idea, isn't it? Maybe not all of them, 
but some seem to be device-specific and should not be in .dtsi at all.

-- 
Regards
Alexey Minnekhanov
postmarketOS developer
https://www.postmarketos.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000
  2021-06-22  3:44 [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000 Petr Vorel
  2021-06-22 12:09 ` Alexey Minnekhanov
@ 2021-06-22 13:36 ` Konrad Dybcio
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2021-06-22 13:36 UTC (permalink / raw)
  To: Petr Vorel, linux-arm-msm
  Cc: Andy Gross, Bjorn Andersson, Rob Herring, devicetree

Hi,

I see no reason why reserving memory would make your phone unbootable.

With that, please check your downstream dmesg and look for a line like this:


"<6>[    0.000000] cma: CMA: reserved 36 MiB at 0x0000000003800000 for cont_splash_mem"


This is there for me on both 8994-kitakami and 8992-xiaomi-libra.

Qualcomm devices tend to map "dynamically-allocated" regions to the same addresses every time.


Konrad

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-22 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-22  3:44 [PATCH 1/1] arm64: dts: qcom: msm8994-angler: Disable memory@3800000 Petr Vorel
2021-06-22 12:09 ` Alexey Minnekhanov
2021-06-22 13:36 ` Konrad Dybcio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.