From: Alexander Schwankner <mrmoor4@googlemail.com>
To: Jon Hunter <jonathanh@nvidia.com>
Cc: Thierry Reding <thierry.reding@kernel.org>,
Kartik Rajput <kkartik@nvidia.com>,
linux-tegra@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] soc/tegra: fuse: Read the platform from HIDREV on TF-A based SoCs
Date: Tue, 1 Dec 2026 22:10:12 +0100 [thread overview]
Message-ID: <20261201211012.32901-1-mrmoor4@googlemail.com> (raw)
In-Reply-To: <6eaf09ad-07f0-4926-add0-177f5f91e31d@nvidia.com>
On 01/12/2026 11:56, Jon Hunter wrote:
> Thanks for debugging and finding this. Can you tell me if there is a
> particular version of L4T/JetPack you are using to help us understand
> what ATF firmware you have?
Thank you for the review!
Both of my boards had the boot firmware from Jetson Linux r36.5 in the
QSPI flash. The UEFI version is 36.5.0-gcid-43688277. My 7.4-rc5 test on
the AGX Orin ran with this firmware. Both boards report the same SMCCC
values:
SMCCC: SOC_ID: ID = jep106:036b:0234 Revision = 0x00000401
Another user saw the same revision 0x00000401 on an AGX Orin with UEFI
36.4.4.
Today I updated both boards to the newest firmware, Jetson Linux r39.2.2
(UEFI 39.2.2-gcid-48648412). With it, both report a different revision:
SMCCC: SOC_ID: ID = jep106:036b:0234 Revision = 0x00000001
So with r39.2.2 the platform bits are 0, and the problem does not show
up.
I then looked at plat_get_soc_revision() in the public TF-A sources
(gitlab.com/nvidia/nv-tegra/tegra/optee-src/atf). In jetson_35.6.5,
jetson_36.5 and jetson_36.5.2 it returns (major << 8) | minor. From
jetson_38.2 on, it returns only the minor revision for Tegra234 and
later. jetson_36.5.2 is the newest r36 tag there, so it looks to me like
the current JetPack 6 firmware still has the problem.
With my patch, both firmware versions give the right platform, because
HIDREV reports platform 0 with r36.5 and with r39.2.2. I checked this on
both boards with Linux 7.3.1. So I think the patch is still useful. But
please let me know if you prefer a different way to handle this.
> Yes that does not look right either. My understanding is that A01 should
> be the version for Orin. Have you compared the major rev you get if you
> don't call the SMCCC function to get the major rev?
Yes, I checked this today on Linux 6.18.65. In this version
tegra-apbmisc.c does not use SMCCC yet, so the values come from HIDREV:
Orin NX 16 GB: major 4, minor 1, platform 0, "Silicon A01"
AGX Orin 64 GB: major 4, minor 1, platform 0, "Silicon A01"
So HIDREV also reports major revision 4 on Orin. The NVIDIA UEFI
expects this too: edk2-nvidia defines T234_MAJOR_REV as 0x4 in
Silicon/NVIDIA/Include/Library/TegraPlatformInfoLib.h.
It looks to me like 98442683d858 ("soc/tegra: fuse: Support revision
B01") shows "B01" on Orin with and without SMCCC, because it maps every
major revision > 1 to B01. On 6.18 the revision name only used the
minor revision, so this did not show up. My patch does not change this.
Should I send a separate patch for it, or do you want to handle it?
> I need to check if this works for Tegra238 which is a variant for Tegra234.
Thank you. I do not have a Tegra238 board, and I do not know which
Jetson board uses it, so I cannot test it. As far as I can see, my
patch would also apply there if Tegra238 reports the same chip ID as
Tegra234. In the newer TF-A code, the minor-only revision is used for
all chip IDs from Tegra234 on, so I think a Tegra238 with that firmware
would not have the problem anyway.
> We may as well move all of this code under 'if
> (tegra_smccc_has_platform())'. Ie. there is no point in calling
> arm_smccc_get_soc_id_revision() if we don't support it for identifying
> the platform.
OK, I will change this in v2. I will wait for your result on Tegra238
before I send v2.
Please let me know if I got something wrong.
Thank you!
Alexander
prev parent reply other threads:[~2026-12-01 21:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:08 [PATCH] soc/tegra: fuse: Read the platform from HIDREV on TF-A based SoCs Alexander Schwankner
2026-12-01 11:56 ` Jon Hunter
2026-12-01 21:10 ` Alexander Schwankner [this message]
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=20261201211012.32901-1-mrmoor4@googlemail.com \
--to=mrmoor4@googlemail.com \
--cc=jonathanh@nvidia.com \
--cc=kkartik@nvidia.com \
--cc=linux-tegra@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=thierry.reding@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