From: Aaron Kling <webgeek1234@gmail.com>
To: webgeek1234@gmail.com
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Jonathan Hunter <jonathanh@nvidia.com>,
devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] arm64: tegra: Add reserved-memory node for P3450
Date: Mon, 30 Jun 2025 14:34:57 -0500 [thread overview]
Message-ID: <CALHNRZ_+wU3saUR025HynpiRps_3ace6769NcKfQDOAS2owPHw@mail.gmail.com> (raw)
In-Reply-To: <CALHNRZ_7wChDsvpUnQHnOTT9VzT1Lgg8JYgg13AFV8Jg_3itwQ@mail.gmail.com>
On Mon, May 26, 2025 at 2:07 PM Aaron Kling <webgeek1234@gmail.com> wrote:
>
> On Mon, May 26, 2025 at 2:06 PM Aaron Kling via B4 Relay
> <devnull+webgeek1234.gmail.com@kernel.org> wrote:
> >
> > From: Aaron Kling <webgeek1234@gmail.com>
> >
> > The Tegra210 L4T bootloader ram training will corrupt the in-ram kernel
> > dt if no reserved-memory node exists. This prevents said bootloader from
> > being able to boot a kernel without this node, unless a chainloaded
> > bootloader loads the dt. Add the node to eliminate the requirement for
> > extra boot stages.
> >
> > Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
> > ---
> > arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
> > index 0ecdd7243b2eb1abba9adbe9a404b226c29b85ef..8fc995e71696f2ef5e662a21feb96ea771c7a53f 100644
> > --- a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
> > +++ b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
> > @@ -22,6 +22,12 @@ chosen {
> > stdout-path = "serial0:115200n8";
> > };
> >
> > + reserved-memory {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
> > + ranges;
> > + };
> > +
> > memory@80000000 {
> > device_type = "memory";
> > reg = <0x0 0x80000000 0x1 0x0>;
> >
> > ---
> > base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
> > change-id: 20250526-p3450-mts-bug-02394af31f0a
> >
> > Best regards,
> > --
> > Aaron Kling <webgeek1234@gmail.com>
>
> This was sent as an RFC to see if there are any better solutions to
> this problem. Mts in l4t r32 for t210 tries to copy the training data
> to the reserved ram location provided by the kernel dt. But if that
> node doesn't exist, it somehow corrupts that dt, causing later stage
> boot stages and the kernel itself to fail. Since software support for
> this hardware is EOL, no fix for the bug can be expected. The normal
> Linux boot flow on this hardware involves placing the downstream dt in
> both the bootloader-dtb and kernel-dtb slots, allowing mts to work,
> then u-boot loading whatever dt the kernel expects. However, my use
> for Android does not need u-boot, as nvidia's cboot can load a
> standard android boot image without the extra complexity of additional
> boot stages. And I would prefer to keep complexity to a minimum. It
> should be noted that this affects p2371-2180 using the L4T bootloader
> as well, but since I am using the Android bootloader there, I sidestep
> the issue.
>
> Are there any thoughts on how to handle this problem? I know that it
> is typically undesirable to add broken bootloader workarounds to the
> kernel dt. But it would be preferable to have a fix upstream, instead
> of having to carry various workarounds in downstream forks.
Friendly reminder about this question.
Aaron
next prev parent reply other threads:[~2025-06-30 19:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 19:06 [PATCH RFC] arm64: tegra: Add reserved-memory node for P3450 Aaron Kling via B4 Relay
2025-05-26 19:07 ` Aaron Kling
2025-06-30 19:34 ` Aaron Kling [this message]
2025-07-03 10:29 ` Thierry Reding
2025-07-03 16:23 ` Nicolas Chauvet
2025-07-03 16:40 ` Aaron Kling
2025-07-14 5:39 ` Aaron Kling
2025-07-31 21:37 ` Aaron Kling
2025-08-01 9:39 ` Thierry Reding
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=CALHNRZ_+wU3saUR025HynpiRps_3ace6769NcKfQDOAS2owPHw@mail.gmail.com \
--to=webgeek1234@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=robh@kernel.org \
--cc=thierry.reding@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).