devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: pad sa8155p-adp DTB file
@ 2023-10-11 11:19 Dmitry Baryshkov
  2023-10-11 12:56 ` Stephan Gerhold
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Baryshkov @ 2023-10-11 11:19 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-arm-msm, devicetree

On sa8155p-adp platfor the bootloader (ABL) fails to reserve enough
memory for updating the DTB:

Cmdline:  console=tty0 console=ttyMSM0,115200n8 androidboot.verifiedbootstate
Error adding node
Error carving out UEFI memory: FFFFFFFF

Adding `--pad 1024' to DTC_FLAGS for this board fixes the issue by
providing enough empty space for node creation.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---

This replaces my previous attempt, which added DTC_FLAGS globally ([1]),
which was rejected.

[1] https://lore.kernel.org/linux-arm-msm/20231009172717.2695854-1-dmitry.baryshkov@linaro.org/

---
 arch/arm64/boot/dts/qcom/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index d6cb840b7050..606ca0d97cc2 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -96,6 +96,9 @@ dtb-$(CONFIG_ARCH_QCOM)	+= qrb5165-rb5.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qrb5165-rb5-vision-mezzanine.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qru1000-idp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sa8155p-adp.dtb
+
+DTC_FLAGS_sa8155p-adp := --pad 1024
+
 dtb-$(CONFIG_ARCH_QCOM)	+= sa8295p-adp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sa8540p-ride.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sa8775p-ride.dtb
-- 
2.39.2


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

end of thread, other threads:[~2023-10-12 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 11:19 [PATCH] arm64: dts: qcom: pad sa8155p-adp DTB file Dmitry Baryshkov
2023-10-11 12:56 ` Stephan Gerhold
2023-10-12 16:43   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).