From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.43.53 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796030923; b=wsZ/RhgwyWxJM2eQCI40VVK97iPB88EjA9jDh5ihfd8YrwJoohTvj6U3/mYcCjnxl0O1 J62/3tKddGSxEe/xOtzXFbNnn5X5Z4VtKE91Iu4GQyA+xd+Gr7DKQuIYh9/PK5M5tUzeV WkWQYPvgf+HMY0W+ePdhLlnouoYd4saD9IXDDlG45uS1tCZYN+SR1pqXYKfj5F6c4FIfi mvYDrLUluMS7vUNBejE1IY7HNQ3uY3VuOzqgB7VEZyRxYVKBL2Rsq6zj0PkuPTSjN/y7a fFPJl3qgJY0WK50MfPFbywoq3VcJr9aHI6ExkAtxwSzYK5wtVgqcrgY7JdF6RuRO6CQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796030923; h=DMARC-Filter:DKIM-Signature:Received:Received:From:Subject:Date: Message-Id:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0: X-MS-Exchange-AntiSpam-MessageData-1:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=NW9Ip5CAzdd6veExdZ6/DZljhAv6lA8flGLJfQBkseY=; b=nNl+x6uIj0qecp6mRPOwe+8/X5B8DnkEGfgKtn9ntVLTPHtEeO+QqMSG04G1dAf5sCCa LIZoOIHE0qsyonoelxs0S61W32OfJpWwLFoKgHGNkjsDIN9VeWGKdGJu2ZEjnuPDZCC5y DvlBP/rON0SFPNCjUGr1aULqafNWtIzGpBci2ZZZJEGturBDgqQb0e3/0insoltoRuxrD lzvVbp4h2bKvR755zW7Ef7cMNwPCUA+A9TDrAtd9N/ihD6rB4cRk/NCedtghtcf/bp2TY W8Ssq6WNlShQxmCDjCDSKNA2bOxk+I7x1lZPCPBAYo0ENbb457OW+5jdoDHwyd1Eqcg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=AgReIvTv; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.43.53 Received: from SJ2PR03CU001.outbound.protection.outlook.com (mail-westusazon11012053.outbound.protection.outlook.com [52.101.43.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2078F606A31C for ; Mon, 30 Nov 2026 09:28:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2078F606A31C 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, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=AgReIvTv ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=t2a38shDv46q9/dx1hI26+ze+iqXKRAOdCOBWKcVK6DNDExy7Z/+SSGs7ZXkNht10XLMyabbLHog7hVduKdhO3dkCPZArHM0dGhXqzTjEGLNbXYRUPKX2BnU1STYQAZujRioxysZK/2LbQ0Cjb5Sb2JQF6M23I2O4lVWlAoPPQiYoiiu1MuuFHL3roYtqXg4HZ6SQhFTPotEFbDeOg8hFEtPrqoLLochzFcib5AeWxleOQpz5TTzEHTu6RlbEH8r80lVYpyNVBD7fPXMvcXFfvNIN56mzVoKZQsSNMhQoYT3z3xcZ2agURsXX7PUtxZdK1GTW9jgCeHX6M48ZMDOAA== 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=NW9Ip5CAzdd6veExdZ6/DZljhAv6lA8flGLJfQBkseY=; b=Ad8b07Q9DyKe39Oa3crTpOJjcPNRow963XtBsxp/5KHXtlhgj04GKU4/kWKLc+3j4j3MP2Hr3c674/xjLXVvgszjIpU8ppJtg218aqQVOYCW7BnkJxu/OTjogBO4GScwLjMBLgSVmzn6cWpNuC4nGVNuDXIUUaQe/T0iO+jjUPP2ML1KAcxrb0G4MtFJwnriQeQxWkPfpeZCnMmZB0rW5ewciy0oW5OofMpoPWTPKV23yixh42wQNz/Fv+tU46WbGu7t+1UHBo2xJIt9/nX8y3JW37sP82yrGr2nT/jodMiLldpeP6Gel/cz7clnZy9yvoOhVbOrq7CslXYepUWBkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none 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=NW9Ip5CAzdd6veExdZ6/DZljhAv6lA8flGLJfQBkseY=; b=AgReIvTvYm4k4ELB225WfY9bk6k9CAAcwcfNYdjk5PoSAi6Y6e4K7XwZtHWha1Rt2+P1l1OmmhEPgOv6UJ5pFL6lP9On81YOpnDSXjHL/t25iOSbeETLABwpj2nX7uCEbWVEjQDpP42MeohB0EGS7CXPesO/b/j3ZSPxErBh4FjswmAmouDqFx4R1NKeL22x3oaICB7+mns8L7yWi/fd8E/QHi3nH3SDKnyEiElVj1Gp2orJrJlknJtaAlxw5x5YYXhJVy6c8DUcJF4Gud/oSWIgmf2U38c6Kr4dSXjMAaQVYNhE2m9dZExbUEGjHI8VlSjFXNMIGoNYTtWnbzmCBA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from DS0PR12MB6413.namprd12.prod.outlook.com (2603:10b6:8:ce::10) by PH0PR12MB999113.namprd12.prod.outlook.com (2603:10b6:510:38f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Mon, 30 Nov 2026 09:28:40 +0000 Received: from DS0PR12MB6413.namprd12.prod.outlook.com ([fe80::e82a:6673:4142:37fa]) by DS0PR12MB6413.namprd12.prod.outlook.com ([fe80::e82a:6673:4142:37fa%5]) with mapi id 15.21.0662.007; Mon, 30 Nov 2026 09:28:40 +0000 From: Eliot Courtney Subject: [PATCH 00/14] gpu: nova-core: merge `load` and `boot` for falcons, add load+exec handlers Date: Mon, 30 Nov 2026 18:28:24 +0900 Message-Id: <20261130-falcon-v1-0-cb94f87b5674@nvidia.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzNDQ2MD3bTEnOT8PN3ElGQTo2RjC3MjS0MloOKCotS0zAqwQdGxEH5xaVJ WanIJSLdSbS0AWFnvo2oAAAA= X-Change-ID: 20261130-falcon-adc42c387291 To: Danilo Krummrich , Alice Ryhl , Alexandre Courbot , David Airlie , Simona Vetter Cc: John Hubbard , Alistair Popple , Timur Tabi , Zhi Wang , nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Eliot Courtney X-Mailer: b4 0.15.2 X-ClientProxiedBy: TYCP286CA0086.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b3::12) To DS0PR12MB6413.namprd12.prod.outlook.com (2603:10b6:8:ce::10) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR12MB6413:EE_|PH0PR12MB999113:EE_ X-MS-Office365-Filtering-Correlation-Id: 3485e3a3-506f-4597-f803-08df4ec45180 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|23010399003|1800799024|10070799003|376014|10067099003|56012099006|261028144727099003|261026140227099003|261026121527099003|261022115727099003|261021123027099003|261021121427099003|261102123227099003|261022105027099003|261022075727099003|261009223027099003|18002099003|11063799006|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: UVt0W1d9p5hOmVjEWouQ8dlRagrMcjpd65+NGNHVQ+EcYx5mP9YKzmjnPMaNLGPjy9xlVO8qMVxlRNPanEXRw6KMtqeyMwoV3IOP84PqGaa6K7oa6Va02D9bR4jHmZeN0VkUFnqPPGIwaIh3oZpydAxMVP25tn5tDfinQmo0TuGsR+ReL455Vw1S8GsyH601GD7THSjNitpAgMVgfCS0ehBgoYxaXvF3B8/zxi0BUo4pFcmqWrzqoUplEzUi3Fip/6oITExJiEqiLo3Z3Mgb8uecbRvR+biNMGCYz6S++vsbCA90npt+dH05F6OmzNDDbSUAizTUZc8L1vauHGEsvPLVo+AvG0/Ur6qt7X/m7ru3WHHBhIQZ/DaaqbNg9sheGP4bC5KfZxojVnvssR9oTKg+UsmaWyR3nLs0fSFQMbXqrrl40zwBJ4g530PbHuM2B7nDGUiOUyiUprpgzxOaayVwWAyLsEYTLzyZ9hrpfFHFjqEiA38lo40HK4FJaMzvI0G/7TZM9nSNVeo34+rCivKrEoOfAA7C5p+zP7RkFx4xXypLjaNisaetRxJ9gYpNBtosj+KAvrtGRpOQ84IH1puxYvR3/P4z0WlRyBTzCVKIxx64kxzRkDMeCi8qelirZGQQ/Zt36ja8c+n84RPbCqH3zuBD4C1YCNg4+wScbh0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR12MB6413.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(23010399003)(1800799024)(10070799003)(376014)(10067099003)(56012099006)(261028144727099003)(261026140227099003)(261026121527099003)(261022115727099003)(261021123027099003)(261021121427099003)(261102123227099003)(261022105027099003)(261022075727099003)(261009223027099003)(18002099003)(11063799006)(6133799003)(3023799007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N0NwOWpPWit0eUkxNTZ1Q2cxS3o5U25OejZoRXBvZk9ncVdYVmVHeXB6Z0Z3?= =?utf-8?B?Z0NQTXdWMDkrSldpTis0TUFLSzNvREh5NFpKY3NzUDFOSTlmQ2pxbmVZYmlW?= =?utf-8?B?RE5vNTh0SGw5eU1QMU12MVlJTWxzZ2lJWWViWDMxYmtMeCtMb1R1aTNZZ0JN?= =?utf-8?B?NFpxYjRmb3JHMmpnb1Rv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utf-8?B?YXlmU0xobGtUckd0M05NZzdjdW94VjgwL0F3VE1jRnhOa3h4Tit2WjJOVFhn?= =?utf-8?B?R2hZTGNEYXQyblhiZXIwNGd0aHlidm4vU1VGaUcyVVBBS0N5d0JkczFXYWFJ?= =?utf-8?B?ZE9DZXE0aW1hRzFDZnppNml1QmgvNzhUaWZMRHZ3VnNPNGFJRnZ0UXdRU29j?= =?utf-8?B?Ync5bC9PYjJycjUrY1BNaHJQVkhYU2lHa1U5MUNJZVFDMEN1ckthZ1c4YXZO?= =?utf-8?B?eE1OMlVvQ1lwNDNKdGgrSVhKcXVyTDQrOUlWWm5lYis3L0lLQUFpZ05yM1cv?= =?utf-8?B?ZVJxUHZvN1NhamxOcG9CUDE0d01GcmtSQ1dRY0Qvc3lycmpyRCt5eWJoWG9m?= =?utf-8?Q?ziS+dbK+1+nWWf/+tb6+GHvDxKanTe1u1iE2rm6n3/DGH?= X-MS-Exchange-AntiSpam-MessageData-1: Oh+T/SsDo9Kcqg== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3485e3a3-506f-4597-f803-08df4ec45180 X-MS-Exchange-CrossTenant-AuthSource: DS0PR12MB6413.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 09:28:40.2866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: g7nJrkLtzOjj8Wxk3ujyhjvD5pxChsl0ri1AVmseVjhyTurNPXIcIsW5WdHlKCKmzgRYKcV1olQZxhKIQRP72g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB999113 This combines my falcon `load`/`boot` rework (patches 1-6) with John's r000 load+exec handlers [1] (patches 8-14). Patch 7 is a small prep patch for John's patches. Currently, loading the firmware and booting it is split into two separate steps. Load is always called in combination with boot. Rewrite the process to basically look like: falcon.boot(, ...) Additionally, add a segment source for firmware already in the framebuffer (this is for HS binaries). This simplifies running HS binaries in the r000 load+exec boot process [1], because they can be treated as falcon firmware binaries directly, without having to call into the guts of the boot process code + make fns like `dma_wr` public. This is not a pure refactor, with this `dma_load` uses two `Coherent`s (one for imem, one for dmem) instead of one. The extra `Coherent` is a consequence of splitting the storage vs transfer method more orthogonally. I don't think it's consequential but jfyi. Tested boot on TU104, GA104, AD106 and GB205. This is based on drm-rust-next. [1]: https://lore.kernel.org/20261120044704.165223-1-jhubbard@nvidia.com John's cover letter for patches 8-14, trimmed to what still applies: > This series adds the code that runs a falcon binary on behalf of the > r000 GSP-RM during boot. It is the next part of the r000 GSP firmware > series [2], which moves nova-core onto the GSP firmware of the r615 and > later releases. The patches do not depend on the switch to r000, so they > are posted on their own, in order to make the rest of that series > smaller. With these applied, the driver still boots the r570 firmware. > > Some background (perhaps a refresher for some readers): the GSP falcon > has two cores, a falcon core and a RISC-V core, and only one of the two > is active at a time. GSP-RM runs on the RISC-V core. > > During boot, the r000 GSP-RM requires a binary to run on the falcon > core. GSP-RM raises a load-and-execute event and suspends the RISC-V > core. The driver then resets the GSP falcon, loads and runs the binary, > and resumes GSP-RM. There are two such events: > > * On GA102 and later, the binary is a Heavy-Secured (HS) binary that > GSP-RM has placed in the framebuffer. > > * On Turing and GA100, the binary is an image that the generic falcon > bootloader loads. The event carries a descriptor of the image. > > The series adds a handler for each of the two events, and a dispatcher > that selects the handler from the command ID of an event. The handlers > share steps with code that the driver already has, so the series first > factors those steps out: > > * the wait for the GSP suspend, out of the shutdown path > * the core resume, out of the CPU sequencer > > The only change in what the driver does with the r570 firmware is a > slight change in the appearance of two error messages (mentioned below). > > Changes since v3 of the r000 series. The two handlers and the dispatcher > come from v3 patches 15, 17 and 18: > > * GSP-RM is now resumed with the core resume of the CPU sequencer. > > * Typesafe handler code: a handler receives its decoded parameters, and > the dispatcher decodes the payload of the event, instead of using two > raw byte slices to describe the payload. > > * The selection of the BAR2 engine ID is now introduced in a separate, > small patch. > > * Fixed two error messages in GSP-RM resume. > > An LLM coding assistant (Claude Code) helped write every patch, and > drafted the commit messages and this letter, all of which I've edited by > hand afterwards. > > [2] https://lore.kernel.org/all/20260918010719.1176945-1-jhubbard@nvidia.com/ Signed-off-by: Eliot Courtney --- Changes since boot-rework2 v2 and John's v1 [1]: - Merge the two series into one (Alex) - Add a comment on V2-only bootloader-loaded FWSEC in patch #3 (Alex) - Add patch #7, which derives the `zerocopy` traits for `BootloaderDmemDescV2` - Drop John's 1/9 (in drm-rust-next as 002b9422b314) and 3/9 (patch #1 programs BROM and BOOTVEC in `boot`) - Rework John's patches on top of patches #1-#6 - Link to boot-rework2 v2: https://patch.msgid.link/20261129-boot-rework2-v2-0-622f3560e18a@nvidia.com --- Eliot Courtney (7): gpu: nova-core: falcon: program BROM and BOOTVEC in `boot` gpu: nova-core: use correct offset for imem in `BooterFirmware` gpu: nova-core: remove some dependencies on FalconDmaLoadTarget gpu: nova-core: falcon: separate staging data for DMA from its location gpu: nova-core: falcon: add `FalconImage` for `FalconFirmware` trait gpu: nova-core: falcon: load the firmware image in Falcon::boot gpu: nova-core: firmware: use `zerocopy` for `BootloaderDmemDescV2` John Hubbard (7): gpu: nova-core: falcon: factor out the wait for the GSP suspend gpu: nova-core: gsp: factor out the core resume gpu: nova-core: gsp: fix resume_gsp_rm()'s error messages gpu: nova-core: falcon: select the BAR2 engine ID for framebuffer DMA gpu: nova-core: gsp: add the r000 load-and-execute HS binary handler gpu: nova-core: gsp: add the r000 load-and-execute bootloader handler gpu: nova-core: gsp: add the load-and-execute event dispatcher drivers/gpu/nova-core/falcon.rs | 451 ++++++++---------- drivers/gpu/nova-core/falcon/gsp.rs | 15 + drivers/gpu/nova-core/firmware.rs | 74 +-- drivers/gpu/nova-core/firmware/booter.rs | 120 ++--- drivers/gpu/nova-core/firmware/fwsec.rs | 57 ++- drivers/gpu/nova-core/firmware/fwsec/bootloader.rs | 50 +- drivers/gpu/nova-core/firmware/gen_bootloader.rs | 112 ++--- drivers/gpu/nova-core/gsp.rs | 1 + drivers/gpu/nova-core/gsp/boot.rs | 8 +- drivers/gpu/nova-core/gsp/hal/tu102.rs | 9 +- drivers/gpu/nova-core/gsp/load_exec.rs | 511 +++++++++++++++++++++ drivers/gpu/nova-core/gsp/sequencer.rs | 42 +- drivers/gpu/nova-core/regs.rs | 2 + drivers/gpu/nova-core/sbuffer.rs | 1 - 14 files changed, 906 insertions(+), 547 deletions(-) --- base-commit: abfb640b2374e26de8ff81d488c39d8254db538e change-id: 20261130-falcon-adc42c387291 Best regards, -- Eliot Courtney