Received: from CH4PR04CU002.outbound.protection.outlook.com (mail-northcentralusazon11013050.outbound.protection.outlook.com [40.107.201.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9772D355024 for ; Thu, 22 Jan 2026 22:36:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.201.50 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769121420; cv=fail; b=Eqo7UUG7KYk8PMIAQnW4mVaupmRRbrU545kFJPr274b5+LN20IH0EsfUnjq+omPhuilnWpGUmNXQMEyBnI7GoLjot9JaXjxQL5ugIB8jGLhGeCxwr6sPY0hM/pCwH0c6bqZ7IHEVRvnI5CT0ywfzA2DnjH8xLz48H9pk+NyloC8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769121420; c=relaxed/simple; bh=xPxJJCf8jeP5F14N5tSAWRhsYgLRJqGNG2mJIzRKBQs=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cro022GBA5m2YvmCehvkxX8neWyj/gVtpAK4cm1C3p6NNuxKa/NFTzW17OJbG0adplRpCzwrmL0zEFJTv4wjrpvJwRz5Wpk9bFTGM7ls4jR4AD1G99KyRA6KcY98bk6qzcSawt2oLQiilpvF3oQAM1DUXQkQV7L4Awmgb5m/sVw= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=LOSLsB2n; arc=fail smtp.client-ip=40.107.201.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="LOSLsB2n" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rUL7kdcCSAXJ/AbmCe4sdqqY6gHGK90mDHdrTJlQWC+ci9zBI1x/Y2Hn0gjsrLcItlOSfCvS4vfDFuiv6N04R5ETVyVGVXz0mglUZHJP3CWTyzW+pUACGLNZYWgdHGz/D5v63bUSYnJokmo1EAyL9nD19Vr7OYwcMBPeMA0ISSXWFQqL2z/7GWJh97jmDqcN8x+DZ53WAsbIErEeZkWl5NaOioGdVuzOMeW+qLBycFQKOvlh/kuWKQYGLc9Aw0R9Q5lDgnBLwbd6Q/9xkntmQnPpRqYMm/ppmFQfYyc91k/RujxHAUZwY8wgrMPqeV6hSKORydqRcRng0iStN7jM3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l3DOaPRNUsReLWlmGNKznp6ZJRRYXF+NIm4rf3oid+E=; b=nU5VnRNc5Vym0QS4R/5wpUhnKK3iYV9PCQye5SbALbkyCjyv26BC+bzoZvlKKOkLsQaNEWpyzUnnk2VX6nsHjKtUGwWxX8O5H7G6E0ZPVH35n2B+qFfQE/ltV05krosEnmyY8Kijqrs/K5uhe0Bfe9SGUDsHpuu7ub+jvvhZrT2rlOUvQopEi/qsXgjB1G3sGDt0C9o0SIX3yh4PJuq2rUoWWHVlvtdpz1Yg2jlv8xpAlChPCoU/4jsj2GuafY/lsT0XyyCddLZBTWoqu7AnS6aT5NwtM1EjxUAkq6G06wuwkIQctM93cyhelIltrrohLmAC3ZfZrSnVGerR5e9KSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=garyguo.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l3DOaPRNUsReLWlmGNKznp6ZJRRYXF+NIm4rf3oid+E=; b=LOSLsB2nuXqwDQLWZ0ZzDhH05oCNOrzVdjneA252mBSsFLkZJUfh6hk6Ze/vTJRYa2/WFTF7MlqlCSxG8g/6YM6KNdt2EMe6x2yoLaEuj3aygB8KdvivbDp3yojEE0W+nYZiH7PgB+CjGIRH4eGDxQNB4vBKozATAVNt6iVe0tBCNoOGop5sKu4xF2fcvyV83COf8J7KaeMbxq2cWkyitdsPRkMQ94NeD2PkoLqoEKW3WyUiMhLV0GUetzd0tqQMO56sxg4BpXSI9cp+Uvh0A6nSP4Dbvhigv3ifHXHM33CBV2/dzoWR/nHWP5BrH2RDOrEXeAMQQBLkAB8pPqmNnA== Received: from PH7P220CA0167.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:33b::9) by MW4PR12MB7465.namprd12.prod.outlook.com (2603:10b6:303:212::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.11; Thu, 22 Jan 2026 22:36:42 +0000 Received: from CY4PEPF0000EE33.namprd05.prod.outlook.com (2603:10b6:510:33b:cafe::2f) by PH7P220CA0167.outlook.office365.com (2603:10b6:510:33b::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.11 via Frontend Transport; Thu, 22 Jan 2026 22:36:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000EE33.mail.protection.outlook.com (10.167.242.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.3 via Frontend Transport; Thu, 22 Jan 2026 22:36:39 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 22 Jan 2026 14:28:57 -0800 Received: from ttabi.nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Thu, 22 Jan 2026 14:28:55 -0800 From: Timur Tabi To: Gary Guo , Danilo Krummrich , "Alexandre Courbot" , John Hubbard , "Joel Fernandes" , , Subject: [PATCH v8 00/13] gpu: nova-core: add Turing support Date: Thu, 22 Jan 2026 16:28:35 -0600 Message-ID: <20260122222848.2555890-1-ttabi@nvidia.com> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE33:EE_|MW4PR12MB7465:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f965c4a-1d16-4403-3e93-08de5a06b5b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|82310400026|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?0RQIw7QEMnDF60Xh9SptoqZOKT6qyXmOJW8Si+ZnZbAEWqM4yfn1G7C3TvC6?= =?us-ascii?Q?w2LiDUdE12xm1eFes/5VcxCGWyyr0K+PK+iArK/cLu0fiLJc412gxeJIluyT?= =?us-ascii?Q?jpWqRXO9ZR/ogO7yz9c773fnaAZGZUk7CVp4YcDarFfB9Vq6s7BXGsCaXAtK?= =?us-ascii?Q?XjkJCE/j8KiIaIS939IPTP81pcJuIH9DPw1VxyAvtdfA0D9vZux7rxNwgBPX?= =?us-ascii?Q?OX7Rg+4LCJh9idWgbszefXY2pqagViKnDhkCb8dOs9fXYia9CdC7MvTLp+h4?= =?us-ascii?Q?XbgXQkGjJ3OgwinGLaMlct0ncbdKOwiPA1WmSE4DKxoIqLrd2WbtHmGq4MQl?= =?us-ascii?Q?Nt7G5EgmsG32++oQ3QaXASqlJ/ZAWOESlQOka/MCv27IQgK12g4G+XN3yvZu?= =?us-ascii?Q?VdIJeGP4ARGhSRXVaCFFhAc7FTblOcXQCQa7r5wMqvL1PUfi9lTEZZXbC681?= =?us-ascii?Q?LI8yaoGtP2AVKmhbycvb7cGS0h1ItoD33Zkd+Xpfmif2fwR0bK8X8W+EE5ev?= =?us-ascii?Q?CRq7viP/4eygh3EpH6qavQYnvaLxk+C1l0qZ/oNH3TIJcWbyA7WvVjhloUav?= =?us-ascii?Q?3wdr2JvcFSOG9Sxg8sZna6tz8hspb1qiSNH2UbzkhHhlFN7ND1d8upCzdp+c?= =?us-ascii?Q?xLzRbEohvrGlGKLSrreotT6s0XSQo5eNkXjNJtSsU41flcSZ7c3IOjSM7Rla?= =?us-ascii?Q?iZ82jhiLZkmtADaOGECpeRaVTHuzhCgcQ4vP6HUFdai7tVhDu5jMROTKsexD?= =?us-ascii?Q?Mi+WWa91m9xQVPJb1IOqg98x6+sd+9VPJiXQN4HD6CqOUVN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=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(36860700013)(1800799024)(82310400026)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2026 22:36:39.6814 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f965c4a-1d16-4403-3e93-08de5a06b5b5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE33.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7465 Note: This patchset requires "[PATCH v3 2/7] rust: io: always inline functions using build_assert with arguments" in order to compile with CLIPPY. This patch set adds basic support for pre-booting GSP-RM on Turing. There is also partial support for GA100, but it's currently not fully implemented. GA100 is considered experimental in Nouveau, and so it hasn't been tested with NovaCore either. The latest linux-firmware.git is required because it contains the Generic Bootloader image that has not yet been propogated to distros. Summary of changes: 1. Introduce non-secure IMEM support. For GA102 and later, only secure IMEM is used. 2. Because of non-secure IMEM, Turing booter firmware images need some of the headers parsed differently for stuff like the load target address. 3. Add support the tu10x firmware signature section in the ELF image. 4. Add several new registers used only on Turing. 5. Some functions that were considered generic Falcon operations are actually different on Turing vs GA102+, so they are moved to the HAL. 6. The FRTS FWSEC firmware in VBIOS uses a different version of the descriptor header. 7. On Turing/GA100 LIBOS args struct needs to have its 'size' field aligned to 4KB. So pad the struct to make it 4K. 8. Turing Falcons do not support DMA, so PIO is used to copy images into IMEM/DMEM. 9. Load the Generic Bootloader from disk and use it to boot FWSEC on Turing and GA100. Changes from v7: 1. Fix unused warnings in some commits that introduce an identifier but don't actually use it until a later commit. 2. Split out the Generic Bootloader code from the PIO code into a separate patch. 3. Removed accidentally included vbios.rs.orig Alexandre Courbot (1): gpu: nova-core: align LibosMemoryRegionInitArgument size to page size Timur Tabi (12): gpu: nova-core: rename Imem to ImemSecure gpu: nova-core: add ImemNonSecure section infrastructure gpu: nova-core: support header parsing on Turing/GA100 gpu: nova-core: add support for Turing/GA100 fwsignature gpu: nova-core: add NV_PFALCON_FALCON_DMATRFCMD::with_falcon_mem() gpu: nova-core: move some functions into the HAL gpu: nova-core: Add basic Turing HAL gpu: nova-core: add NV_PFALCON_FALCON_ENGINE::reset_engine() gpu: nova-core: add Falcon HAL method load_method() gpu: nova-core: add FalconUCodeDescV2 support gpu: nova-core: add PIO support for loading firmware images gpu: nova-core: use the Generic Bootloader to boot FWSEC drivers/gpu/nova-core/falcon.rs | 252 +++++++++++++++++----- drivers/gpu/nova-core/falcon/hal.rs | 26 +++ drivers/gpu/nova-core/falcon/hal/ga102.rs | 39 ++++ drivers/gpu/nova-core/falcon/hal/tu102.rs | 77 +++++++ drivers/gpu/nova-core/firmware.rs | 203 ++++++++++++++++- drivers/gpu/nova-core/firmware/booter.rs | 43 +++- drivers/gpu/nova-core/firmware/fwsec.rs | 180 +++++++++++++--- drivers/gpu/nova-core/firmware/gsp.rs | 9 +- drivers/gpu/nova-core/gsp.rs | 8 +- drivers/gpu/nova-core/gsp/boot.rs | 6 +- drivers/gpu/nova-core/gsp/fw.rs | 14 +- drivers/gpu/nova-core/regs.rs | 72 ++++++- drivers/gpu/nova-core/vbios.rs | 64 +++--- 13 files changed, 863 insertions(+), 130 deletions(-) create mode 100644 drivers/gpu/nova-core/falcon/hal/tu102.rs base-commit: 6ea52b6d8f33ae627f4dcf43b12b6e713a8b9331 -- 2.52.0