From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796159417; b=MBsIHt/4VwBFoUbjiHFy4OYCqqjYZmMVa/s0pq5QCgCcKYG5Sk74hCZMdqnp2JmIKqxr 2RYLvgteGfZfgTFO65gWTk5JoLRsx1gDdH3wR/3B3D4ZEPkuU/tcSmVJ5t32AJKTNOEH9 vRNW7Jm22awGcBFo45JW/GdbqxXp+Kf9T2XlbCPlzhA6+KWPOEG7PPAl9tkcrzoQZjqtB Ef0EZHOz9A73cGMECEoTWlOjhmIFMTxBhavzG5cVtCg5ld+hE7+tryWUxvMgZw3BKxL2C 100wYpfwu8msph1PSLNIynn7/ysBspSpfk2J0U3ss45jwXj393AwLfOJR3DliKrRKBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796159417; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=CtX5A7q9hQ3l9UBGXnnbxWFNpBwyTX43a8MFqdkl1+c=; b=QkpLUbnk5WoQ2oYquamoa4nzNlNhJ+hUj9/dtYgePOyxTAGQb6uiukZZ86Z7EbTbir53 jjPJrRW9tFp9BH28/GuiUPMSJLD3xTRKZTeA0o1iNlcLwR4olfpwjLaDps/9cyJ7U3Bi0 I4EHZK8b1eafc92ImTLlkwpwZisIubyQ39BpBgJLXRt8OkiBmXNydzFZIcFdqJ4KbIs/P UkcpY3lBpltNpJfjK47p/2MaQN8YcSKvz5dbwY1BQuhbHjdxiOMQgReik8XRlPM2ivEKW khm65MZhQIS8aFy0mD9iKGvua1zwc+tgLrwS/ktJFUq5VzWsDFxsQC6+S4QU6zZbweg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20260707 header.b=ITNJe5AX; arc=none smtp.remote-ip=209.85.128.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B92EE606A336 for ; Tue, 1 Dec 2026 21:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B92EE606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20260707 header.b=ITNJe5AX Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4bb85e07aadso151034115e9.1 for ; Tue, 01 Dec 2026 13:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20260707; t=1796159415; x=1796764215; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=CtX5A7q9hQ3l9UBGXnnbxWFNpBwyTX43a8MFqdkl1+c=; b=ITNJe5AXJJXnT/2mSpmFIOaGWe3drCahIbYuAmjjn7BtFDtIpN99jLJVMl1qXUngh+ H3XdkdzfFab+3Io5vpyOJ7lFL6X/PgRjGGlxC0mzbeSoDN0o7RuMr0yOyR3zV9F5oEoX GzXJmztxeTgGDe/PXTr90Vxz9sueDF3xX2sniVHNuA9lXvH9qWgOATShbfocY17/fpg5 sJTx/llFEyOr1JUh7taZ1ASCJE59/NN1JUtyaiMYD9cmQFqklOZ74btuGA6E8pnxcZqk +4166TSioWGY5mwhhM2M7ju+0ynfKvlPYmuFvpJp7zAr9HcP1RDxgwVL15WY5zDFyERz 8Cvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796159415; x=1796764215; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=CtX5A7q9hQ3l9UBGXnnbxWFNpBwyTX43a8MFqdkl1+c=; b=SbADNzz6rj+oc3MAqaypdTjLAmNZZ8JGtxvu1ZLDzGnJrpAXU3mJGARZKaDgUcFfM0 N0Za+r2mk+ZkNQmSTSNhcCZ7Oqky3aGkuKn8wJqbt7MfMSgYTyhNLQvill8xiv9i35SH VytWilmCeqbq8SO9z496Rmj7MDZ5Rw0fXsS3bnebyjSsIeUXRDXXxxav+OPnZT0zH3iD 3ZhH709GYbu+8G/Gol4tgLr2jvy1bNzw8qBqkeEXB1U+gPjygtdRei/E1DMWWZkJB/2K fP6rLoKm9nBZqvkyU2x41Jy1BsTqGs0SoVTfxUS23UdQbEkrhIWpkywMLDLkcWnyXG4U rrtg== X-Forwarded-Encrypted: i=1; AL+hErFxDTM6Mn6DH4GRyqDS+ZMLIiHJrOPBWK8SUg9PhL/hrTs7ITTlB0pIZwASaAww3E3cPIdeC7rij6RZ9Q==@vger.kernel.org X-Gm-Message-State: APuU4Z/YiLKJsivo7E8espV3ktNunMZ5/LP2FVd0rK4KNuZGga56SDgm lpRaXJsjWZaPAQjf30nUJYVz40lJEBrgwCjsNQAF0mRDqo8lfTq2P46Kz9Bb9jM/D5IspQ== X-Gm-Gg: AZFdTZeEt6CGz9aE/93fOcKogF/SVKAGjJSD3TdZRNPwlvBl3SHcw15Pn7HQeJn2GOc uC0o6z2WNGC2c4hCnYajuDYXnP5wt4JJViTwX6lQHRAHoyMrbpTZ4tRd8ICXRVAeAypEHSxeD8T Uj8Ub2xGu4IQQSOw5XZm/QDypvXXR+aU2589CKAh+UIUFyUedh1fQtBiSyv+YyDZMvRujZwHksP cRkgBN2r33/zrQdbfRiZjJ/GewfTaPiN8td+oK7XcbPMi+jdxR0piIKs+J1yK9iz8uRUHCPmltX xVw8FAYjZt8W5zJac4r6j1f9l/Lc6Zj2n7PC9VhWZ6MRgA0WdEWlwlU0z1UM8h3bGGbFqeIyCeV PPwuJwBfmK2fa1poHiX3v9LZV5axnL2WW24LPU8SJxiFfeay6bUrgJov5oIj8NlWGKYYZYx8MIF M/nHLSQIFnayfSY/2utd9l6Gam1Cg128H5FV7JLLSj/IHMLeXg1e03JGfJAyXVp+LAOcF1LqPeB lwTvrlv2mhmdiJI2B1XKHkaGstRx55LQKXGeJkByXLraYvKpmI8CgsVnfQwHxpRuRYCpxqIL0KV 5zUpg2KoS53y9Kbc1NSysS4wWGcwY/0o9LMNgnFA4sNiRrWd18/0pKX+gEf8aE8J2zGjw+KGQfC 3SfXzWvU2wb+4L5LFeiotNgb11ywU3LlNFwPqN4zUw3Q= X-Received: by 2002:a05:600c:3ba3:b0:4bb:6118:4c9a with SMTP id 5b1f17b1804b1-4bb88819940mr892719215e9.30.1796159414863; Tue, 01 Dec 2026 13:10:14 -0800 (PST) Received: from cffb-mbp-02.schwankner.de (ip-188-192-186-065.vkd88.pools.vodafone-ip.de. [188.192.186.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb88442995sm1099025845e9.2.2026.12.01.13.10.13 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Dec 2026 13:10:14 -0800 (PST) From: Alexander Schwankner To: Jon Hunter Cc: Thierry Reding , Kartik Rajput , 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 Message-ID: <20261201211012.32901-1-mrmoor4@googlemail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <6eaf09ad-07f0-4926-add0-177f5f91e31d@nvidia.com> References: <20261130220842.95038-1-mrmoor4@googlemail.com> <6eaf09ad-07f0-4926-add0-177f5f91e31d@nvidia.com> X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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