Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan@gerhold.net>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: pad sa8155p-adp DTB file
Date: Wed, 11 Oct 2023 14:56:24 +0200	[thread overview]
Message-ID: <ZSabeBrfhFf8T8yM@gerhold.net> (raw)
In-Reply-To: <20231011111936.165581-1-dmitry.baryshkov@linaro.org>

On Wed, Oct 11, 2023 at 02:19:36PM +0300, Dmitry Baryshkov wrote:
> 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/
> 

Thanks for making this specific to sa8155p-adp. I completely agree that
this workaround might be needed for devices that are locked down (with
no way to update the bootloader).

But is this really the case here? As far as I understand, the SA8155P
ADP is the "Automotive Development Platform", i.e. a developer board
where I would expect that secure boot is not enabled (just like on the
DragonBoards and RoboticBoards).

Fixing this properly in the bootloader would be very easy, you just need
to increase the DTB_PAD_SIZE I linked [1] by 1024 like in this patch.
This would fix the issue properly, with no change needed in Linux. And
if you have some way to communicate/contribute this back to Qualcomm
somehow we could reduce the chance to see this problem on actually
locked down devices in the future.

Thanks,
Stephan

[1]: https://git.codelinaro.org/clo/la/abl/tianocore/edk2/-/blob/LA.AU.1.4.1.r2-05100-sa8155.0/QcomModulePkg/Include/Library/LocateDeviceTree.h#L59

  reply	other threads:[~2023-10-11 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-11 11:19 [PATCH] arm64: dts: qcom: pad sa8155p-adp DTB file Dmitry Baryshkov
2023-10-11 12:56 ` Stephan Gerhold [this message]
2023-10-12 16:43   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZSabeBrfhFf8T8yM@gerhold.net \
    --to=stephan@gerhold.net \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox