From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796159417; b=4uxYhg7OtqQAo2MrLcOb/iq9153lE2LdqB3GDLT9aFh1Jc4aEBVzmO6c72qre/wvbKyn bw2/7munv5a6KkHOoz0sVximbAkROqNJB6DbK6UoHsktuwJz8rTghCtgAN8G7gUDklMlL JKzoHUgws517bIwpg5BR2YcQrgf4zG6J3AgFmy0h3SC/wR59zmVwl6gyu8e8elXLWFu/D T/iHMS95zDkHlCYtndpfr7uTq5D34sqQ3G4LYhodIdFEFMvYD+LzXGyInHijyf6foajbX STdrdiOcUwXvltvySdwLM53Qr5kPQWCi28evc6f8ByNoWWVx6+qZYjqZRHgOyzZVoeQ== 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=25GszQvWEOlHJYjLb/d+1EDQRzaF3EcEjPVQ0rOBFnkFduxRHLdMx+uUU3EsS3L1/uNM OWxCT3+i9UECsLq145R+HeFJ5PnLepZtSkgi2yaRQQsgSu+bzUVyZCAXSdOYIDmk5ORdZ ImYCV6qw6ui9Yuh5BAwTJ/miMg7xxsubyss+dpwFN8jwMsGCiSGDOmCZbC1HwiS3Cfr3Z sXYYPS7H9JW0aCjJtLFHkHOzCHcrwvIlejjH1ZwtnlvoH/1tmnm6xRBqP1SYLfgunQYxE xFyz0U3YemiS8YWWZu4vFLqqq8UJ9tbh/TgXw9zJYohfkM45EceXnZu5hKkRzpwEbKw== 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.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 B2AFA606A32F for ; Tue, 1 Dec 2026 21:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B2AFA606A32F 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-f50.google.com with SMTP id 5b1f17b1804b1-4a2d6d01ecbso65215565e9.0 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=0eFDj40QClzHDkivuThGQom5xS8m96sJihZdXKNarhPsD8ZYQkEyF7xBao9FneBmFu j+WJgoMCjLquKlrRDCs6kteaDMnXFHxmL2GmaY6P358gSFLuNP9qg/EvKloeenuQ1XVr cbUG8unFIuX7KLBk4vPYMhgGxtHymPbGfvMpXqavApfdxhlvVwyhdEHWW3L2WqlR8bHa xqJW54TCrGGXcUXUw8xg6MQqIcM0gdrcAt6nqhq0ofVDmjYX7M6JhhYVULD9JV3HEY1G EnvPXdE8+7VzMhgda9rWrp/7BPa+MRjhUrytYIdi9C0aYMG5EeNZWZEqNCrG+zwolFRF KsFQ== X-Forwarded-Encrypted: i=1; AL+hErFjqtoRufQNv/ZanApnMzy9s5y8K+riHUzIfRVo6nRkYrbNQ5PA59L42Qxt/UZGmKHwBM1Q5Ig=@vger.kernel.org X-Gm-Message-State: APuU4Z9DM+AiImYbfnhVlK/U8XbXaSvePhZnWlb0ppBKloX9eFRSBnSf xMHHpxBsuRoP5hn40qM27ZF2CG+LhCc7uTQD5zBlPT8rtmK93LsgiF6M X-Gm-Gg: AZFdTZftkcso0y6tcWk23RkNXNx7Y50Zzmq6ZUHmkGaFLsCXEcKAN2ft7oc4yvRxBjT kX/48GQK7Y/VJ6qKpg3A6t/tE0jv3mGJ+tIS+vyuucM7j5D9DPIiAbB10mmsNMF/KggXIrQEReS sw6zgqWChEqtwR1BAzXpM6MQU3FVH/bCO2NgtZg/Svx6jkWzsC1GL0CXU0Pov0uAwmSMz/12DBe iYxkkbdmXUkcZ8DTbKczy2FohRM4/55i/+0yFVMoLoSgZ0laE/sVdGAGPdfQSYBKAsRmE8Eucu1 RRCNmKGdY3OINuhfwGhxBDAkuY7eu/1A0eN/abfVoqofRUkhBEtBApdK+kYdqmmiFEZzEUzacmf NlR89cIgWGeAjE89sVV+vABBDs9Y/JrKLV60rWSkXoC6a7B/7t72lYiKwzxY37Qe1L9Qwvc63xJ QISLLVEjawn00vQlbHtUhaluKlKdJ8pXE1mcCaK0qcvaqnfFVxDMtUbqi5n6mV1gRHkr8xGDK0t xBd6R3o8EhLdb0nxdtYiiWLGUW0xviXaTE8G1qSdeEK1Khw/fNxy9ZWIiIOy08f2gKsT23Lfmog hg4pDzmgj5nmCh5O2DMQSNrcdEyeWAG2J21WNZ3lyCMscslxdNxkhb6z/nPVmcUyYHpK55Rezat kFn8U7Nxhb80y1sLLQdNf7UuesIorl64Xp5H4l8ioxh0= 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: stable@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