mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexandre Courbot <acourbot@nvidia.com>
To: "Danilo Krummrich" <dakr@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Trevor Gross" <tmgross@umich.edu>,
	"Daniel Almeida" <daniel.almeida@collabora.com>,
	"Tamir Duberstein" <tamird@kernel.org>,
	"Onur Özkan" <work@onurozkan.dev>,
	"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
	"Maxime Ripard" <mripard@kernel.org>,
	"Thomas Zimmermann" <tzimmermann@suse.de>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>
Cc: John Hubbard <jhubbard@nvidia.com>,
	 Alistair Popple <apopple@nvidia.com>,
	Timur Tabi <ttabi@nvidia.com>,
	 Eliot Courtney <ecourtney@nvidia.com>,
	Zhi Wang <zhiw@nvidia.com>,  Alok Kumar <alkumar@nvidia.com>,
	nova-gpu@lists.linux.dev,  dri-devel@lists.freedesktop.org,
	rust-for-linux@vger.kernel.org,  linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	 Alexandre Courbot <acourbot@nvidia.com>
Subject: [PATCH 12/15] gpu: nova-core: switch to the r000 GSP firmware
Date: Thu, 03 Dec 2026 21:09:29 +0900	[thread overview]
Message-ID: <20261203-b4-r000-switch-v1-12-b1463ec6dae2@nvidia.com> (raw)
In-Reply-To: <20261203-b4-r000-switch-v1-0-b1463ec6dae2@nvidia.com>

From: John Hubbard <jhubbard@nvidia.com>

The r000 GSP firmware is not compatible with the r570 firmware that
nova-core boots:

* Every queue element opens with the r000 queue element header, and the
  queue pointers are in BAR0 registers, where r570 keeps them in shared
  memory.

* The GSP_INIT and GSP_SUSPEND commands replace the four RPC commands
  that the r570 boot and shutdown paths send, and the reply to GSP_INIT
  replaces the init-done event.

* Load-and-execute GMC events replace the command sequences that the
  r570 GSP-RM sends for the GSP sequencer to run.

* GSP-RM requires two more buffers at boot: the ucodes image and the
  state monitor buffer.

The driver loads one firmware, so a driver that handles some of these
differences and not the others boots neither firmware.

Switch the bindings, the message queue, the boot sequence and the
shutdown path to r000 together. Mark the post-boot HAL hook and r570 RPC
commands module as dead code until follow-up patches delete them.

Keep the RPC send and reply paths, and mark them as dead code. The
driver sends no RPC command, but the r000 GSP-RM still accepts RPC
commands once it is up.

Signed-off-by: John Hubbard <jhubbard@nvidia.com>
[acourbot: deslop and split.]
[acourbot: zero the driver's queue pointer registers on cmdq construction.]
[acourbot: do not drop unread GSP messages when the ring is full.]
Co-developed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 Documentation/gpu/nova/core/falcon.rst             |   2 +-
 Documentation/gpu/nova/core/interrupts.rst         |  30 +-
 drivers/gpu/nova-core/firmware.rs                  |   6 +-
 drivers/gpu/nova-core/firmware/ucodes.rs           |   1 -
 drivers/gpu/nova-core/gsp.rs                       |   8 +-
 drivers/gpu/nova-core/gsp/boot.rs                  |  44 ++-
 drivers/gpu/nova-core/gsp/cmdq.rs                  | 366 ++++++++++-----------
 drivers/gpu/nova-core/gsp/cmdq/gmc.rs              |  21 +-
 drivers/gpu/nova-core/gsp/cmdq/rpc.rs              |  42 +--
 drivers/gpu/nova-core/gsp/cmdq/rpc/continuation.rs |  10 +-
 drivers/gpu/nova-core/gsp/commands.rs              |   6 +-
 drivers/gpu/nova-core/gsp/fw.rs                    | 299 +++++++----------
 drivers/gpu/nova-core/gsp/fw/commands.rs           |   2 +-
 drivers/gpu/nova-core/gsp/hal.rs                   |   1 +
 drivers/gpu/nova-core/gsp/load_exec.rs             |   1 -
 15 files changed, 394 insertions(+), 445 deletions(-)

diff --git a/Documentation/gpu/nova/core/falcon.rst b/Documentation/gpu/nova/core/falcon.rst
index 33137082eb6c..c48984dcc482 100644
--- a/Documentation/gpu/nova/core/falcon.rst
+++ b/Documentation/gpu/nova/core/falcon.rst
@@ -85,7 +85,7 @@ On an Ampere GPU, for example, the boot verification flow is:
      component to load the SEC2-RTOS ucode onto the SEC2. The CPU cannot load
      LS code, and GSP-RM must run in LS mode. To overcome this, the GSP is
      temporarily made to run HS ucode (which is itself loaded by the CPU via
-     the nova-core driver using a "GSP-provided sequencer") which then loads
+     the nova-core driver on a "load-and-execute" event) which then loads
      the SEC2-RTOS ucode onto the SEC2 in LS mode. The GSP then resumes
      running its own GSP-RM LS ucode.
 
diff --git a/Documentation/gpu/nova/core/interrupts.rst b/Documentation/gpu/nova/core/interrupts.rst
index 13a087b960c0..27fa21f4b10f 100644
--- a/Documentation/gpu/nova/core/interrupts.rst
+++ b/Documentation/gpu/nova/core/interrupts.rst
@@ -448,10 +448,10 @@ thread to drain the queue::
 A halt and a posted message can be pending together, so the top half services
 every cause that the status reports.
 
-A drain fails when a message's framing or checksum is bad (see "Draining the
-GSP-to-CPU queue"). The message stays at the queue head, so every later drain
-would fail the same way, and the IRQ thread disables vector 155 and logs the
-failure, which leaves the queue unserviced until the device is reset.
+A drain fails when a message's framing is bad (see "Draining the GSP-to-CPU
+queue"). The message stays at the queue head, so every later drain would fail
+the same way, and the IRQ thread disables vector 155 and logs the failure,
+which leaves the queue unserviced until the device is reset.
 
 The handler, the self-test, and the rest of the driver read BAR0 through one
 shared mapping. nova-core unregisters an interrupt handler when the device
@@ -566,8 +566,9 @@ unloads the GSP.
 Draining the GSP-to-CPU queue
 -----------------------------
 
-The queue carries command replies and unsolicited events, and a message's
-function code says which it is.
+The queue carries RPC and GMC messages, selected by the element header's NVDM
+type. For RPC messages, a message's function code says whether it is a command
+reply or an unsolicited event:
 
 * A function code that matches the awaited reply: the message is decoded and
   returned to the caller that sent the command.
@@ -578,17 +579,16 @@ function code says which it is.
   receive trace at debug level already records every message's arrival with
   its sequence number, function code, and length.
 
-The sequence number takes no part in the match, because the GSP does not echo
-the command's sequence number on every reply. On r570 the reply to
-``UnloadingGuestDriver`` carries sequence 0.
+GMC replies match on command ID and sequence number, and GMC events arriving
+during a wait go to the caller's handler; unclaimed replies and unknown command
+IDs are logged at warning level, and other GMC events are dropped.
 
-The read pointer advances past every message that passes framing and checksum
-validation, whether it matched or was an event.
+The RPC sequence number takes no part in the match.
 
-A message's length is inside the region that the checksum covers, so once the
-framing or the checksum fails there is no trustworthy length with which to skip
-the message. Such a message stays at the queue head, and every later receive
-fails on it with ``EIO`` until the device is reset.
+The read pointer advances past every valid element, whether it matched or was
+an event. An element that fails framing or message-header validation, or
+carries an unsupported NVDM type, stays at the queue head and every later
+receive fails with ``EIO`` until the device is reset.
 
 The polling path and the IRQ thread both read the queue under the command-queue
 mutex. Replies and events share one queue and one read pointer, so one lock is
diff --git a/drivers/gpu/nova-core/firmware.rs b/drivers/gpu/nova-core/firmware.rs
index 7b216dff1d30..cea56411a3e2 100644
--- a/drivers/gpu/nova-core/firmware.rs
+++ b/drivers/gpu/nova-core/firmware.rs
@@ -300,7 +300,11 @@ const fn make_entry_chipset(self, chipset: gpu::Chipset) -> Self {
         let mut this = self
             .make_entry_file(name, "gsp_bootloader.tlv")
             .make_entry_file(name, "gsp.tlv")
-            .make_entry_file(name, "gsp.bin");
+            .make_entry_file(name, "gsp.bin")
+            .make_entry_file(name, "ucodes.tlv")
+            // The metadata's FILE tag gives the image's real file name at run time. This static
+            // entry names the usual one.
+            .make_entry_file(name, "ucodes.bin");
 
         // Add the firmware files specific to the GSP boot method of `chipset`.
         let boot_files = boot_firmware_files(chipset);
diff --git a/drivers/gpu/nova-core/firmware/ucodes.rs b/drivers/gpu/nova-core/firmware/ucodes.rs
index 153bb5172903..283a5e4fc1fc 100644
--- a/drivers/gpu/nova-core/firmware/ucodes.rs
+++ b/drivers/gpu/nova-core/firmware/ucodes.rs
@@ -27,7 +27,6 @@ pub(crate) struct UcodesImage<'a> {
     radix3: Pin<KBox<Radix3<'a>>>,
 }
 
-#[expect(dead_code)]
 impl<'a> UcodesImage<'a> {
     /// Loads the ucodes image that the `ucodes` metadata file names, and maps it for `dev`.
     ///
diff --git a/drivers/gpu/nova-core/gsp.rs b/drivers/gpu/nova-core/gsp.rs
index d36dd6e9cd2c..05c1aa9d2159 100644
--- a/drivers/gpu/nova-core/gsp.rs
+++ b/drivers/gpu/nova-core/gsp.rs
@@ -164,8 +164,12 @@ pub(crate) fn new(
             // kgspSetupLibosInitArgs_IMPL (creates pLibosInitArgs[] array)
             Ok(try_pin_init!(Self {
                 cmdq <- Cmdq::new(dev, bar),
-                rmargs: Coherent::init(dev, GFP_KERNEL, GspArgumentsPadded::new(&cmdq))?,
                 rm_state_monitor: Coherent::zeroed(dev, GFP_KERNEL)?,
+                rmargs: Coherent::init(
+                    dev,
+                    GFP_KERNEL,
+                    GspArgumentsPadded::new(&cmdq, rm_state_monitor),
+                )?,
                 libos: {
                     let mut libos = LibosWriter::new(dev)?;
                     log_buffers.init_arguments(&mut libos)?;
@@ -185,6 +189,6 @@ pub(crate) fn new(
 pub(crate) struct BootResult<'a> {
     /// The unload bundle for [`Gsp::unload`], if one could be built.
     pub(crate) unload_bundle: Option<UnloadBundle<'a>>,
-    /// The static GPU configuration as reported by GSP-RM.
+    /// The static GPU configuration, as decoded from the `GSP_INIT` reply.
     pub(crate) static_info: commands::GspStaticInfo,
 }
diff --git a/drivers/gpu/nova-core/gsp/boot.rs b/drivers/gpu/nova-core/gsp/boot.rs
index fb474e5984a8..763dbe1f8fdb 100644
--- a/drivers/gpu/nova-core/gsp/boot.rs
+++ b/drivers/gpu/nova-core/gsp/boot.rs
@@ -13,13 +13,20 @@
         gsp::Gsp,
         Falcon, //
     },
-    firmware::gsp::GspFirmware,
+    firmware::{
+        gsp::GspFirmware,
+        ucodes::UcodesImage, //
+    },
     gsp::{
         cmdq::Cmdq,
         commands::{
-            self,
+            gmc::{
+                GspInit,
+                GspSuspend, //
+            },
             PowerStateLevel, //
         },
+        fw::GspArgumentsPadded, //
     },
 };
 
@@ -44,14 +51,10 @@ pub(crate) fn boot(
 
         let gsp_fw = KBox::pin_init(GspFirmware::new(dev, chipset), GFP_KERNEL)?;
 
-        self.cmdq
-            .send_rpc_command_no_wait(commands::rpc::SetSystemInfo::new(
-                pdev,
-                chipset,
-                ctx.vgpu.state(),
-            ))?;
-        self.cmdq
-            .send_rpc_command_no_wait(commands::rpc::SetRegistry::new(ctx.vgpu.state())?)?;
+        // GSP-RM only needs the ucodes image while it starts up, so the image can be freed when the
+        // boot sequence returns.
+        let ucodes = UcodesImage::new(dev, chipset)?;
+        GspArgumentsPadded::set_ucodes(&self.rmargs, &ucodes);
 
         // Perform the chipset-specific boot sequence, and retrieve the unload bundle.
         let unload_bundle = hal.boot(&self, &mut ctx, &gsp_fw)?.or_else(|| {
@@ -82,14 +85,19 @@ pub(crate) fn boot(
 
         dev_dbg!(pdev, "RISC-V active? {}\n", gsp_falcon.is_riscv_active(),);
 
-        hal.post_boot(&self, ctx, &gsp_fw)?;
-
-        // Wait until GSP is fully initialized.
-        commands::rpc::wait_gsp_init_done(&self.cmdq)?;
-
+        // GSP-RM answers `GSP_INIT` once it has finished starting, which includes the
+        // load-and-execute events that it raises along the way.
+        let libos_dma_address = self.libos.dma_address();
+        let bootloader_app_version = gsp_fw.bootloader.app_version;
         let static_info = self
             .cmdq
-            .send_rpc_command(commands::rpc::GetGspStaticInfo)?;
+            .send_gmc_command(GspInit::new(pdev, chipset, ctx.vgpu.state())?, |event| {
+                ctx.handle_load_exec_event(libos_dma_address, bootloader_app_version, event)
+            })?
+            .map_err(|status| {
+                dev_err!(dev, "GSP_INIT failed with status {:#x}\n", status);
+                EIO
+            })?;
 
         Ok(super::BootResult {
             unload_bundle: unload_guard.dismiss().1,
@@ -103,8 +111,8 @@ fn shutdown_gsp(
         gsp_falcon: &Falcon<'_, Gsp>,
         mode: PowerStateLevel,
     ) -> Result {
-        // Command to shut the GSP down.
-        cmdq.send_rpc_command(commands::rpc::UnloadingGuestDriver::new(mode))?;
+        // Command to shut the GSP down. GSP-RM does not answer it.
+        cmdq.send_gmc_command_no_wait(GspSuspend::new(mode))?;
 
         // Wait until GSP signals it is suspended. GSP-RM posts messages while it suspends, and the
         // GSP event interrupt is already freed, so this poll drains them.
diff --git a/drivers/gpu/nova-core/gsp/cmdq.rs b/drivers/gpu/nova-core/gsp/cmdq.rs
index 10f6ddcf3eb5..f6bede6a77e7 100644
--- a/drivers/gpu/nova-core/gsp/cmdq.rs
+++ b/drivers/gpu/nova-core/gsp/cmdq.rs
@@ -1,12 +1,12 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 
-// The transport header of the r570 firmware carries no message type, so nothing can produce or
-// consume a GMC message before the switch to r000. Until then the module is built as dead code.
-#[expect(dead_code)]
 pub(super) mod gmc;
+#[expect(dead_code)]
 pub(super) mod rpc;
 
+use core::cell::Cell;
+
 use kernel::{
     device,
     dma::{
@@ -26,9 +26,7 @@
     sync::{
         barrier::{
             dma_mb,
-            Full,
-            Read,
-            Write, //
+            Full, //
         },
         Mutex, //
     },
@@ -45,21 +43,22 @@
 
 use pin_init::pin_init_scope;
 
+use zerocopy::FromBytes as _;
+
 use crate::{
     driver::Bar0,
     gsp::{
         fw::{
-            GspMsgElement,
-            MsgqRxHeader,
             MsgqTxHeader,
+            QueueElementHeader,
             GSP_MSG_QUEUE_ELEMENT_SIZE_MAX, //
         },
         PteArray,
         GSP_PAGE_SHIFT,
         GSP_PAGE_SIZE, //
     },
-    num,
-    sbuffer::SBufferIter, //
+    mctp::NvdmType,
+    num, //
 };
 
 use super::regs;
@@ -70,14 +69,17 @@
 
 /// Trait implemented by types that can be sent as a single command queue element.
 ///
-/// The command queue allocates `size()` bytes after the `GspMsgElement` header and calls `write()`
-/// to fill them.
+/// The command queue allocates `size()` bytes after the [`QueueElementHeader`] and calls `write()`
+/// to fill them with the message header and the message.
 trait CommandElement {
-    /// Size in bytes of the element, not including the `GspMsgElement` header.
+    /// NVDM type that the queue element header announces for this kind of message.
+    const NVDM_TYPE: NvdmType;
+
+    /// Size in bytes of the element, not including the [`QueueElementHeader`].
     fn size(&self) -> usize;
 
-    /// Writes the contents of the command into `dst`. `dev` is the queue's device (to be used for
-    /// logging), `seq` is the sequence number of the element.
+    /// Writes the message header and the contents of the command into `dst`. `dev` is the queue's
+    /// device (to be used for logging), `seq` is the sequence number of the element.
     fn write(&self, dev: &device::Device, seq: u32, dst: &mut GspCommand<'_>) -> Result;
 }
 
@@ -107,17 +109,13 @@ struct MsgqData {
 ///
 /// Contains the data for a message queue, that either the driver or GSP writes to.
 ///
-/// Note that while the write pointer of `tx` corresponds to the `msgq` of the same instance, the
-/// read pointer of `rx` actually refers to the `Msgq` owned by the other side.
-/// This design ensures that only the driver or GSP ever writes to a given instance of this struct.
+/// The queue pointers are in BAR0 registers, so `tx` carries the queue's geometry alone.
 #[repr(C)]
 // There is no struct defined for this in the open-gpu-kernel-source headers.
 // Instead it is defined by code in `GspMsgQueuesInit()`.
 struct Msgq {
-    /// Header for sending messages, including the write pointer.
+    /// The msgq TX header, which describes the queue to the GSP.
     tx: MsgqTxHeader,
-    /// Header for receiving messages, including the read pointer.
-    rx: MsgqRxHeader,
     /// The message queue proper.
     msgq: MsgqData,
 }
@@ -127,15 +125,11 @@ struct Msgq {
 struct GspMem {
     /// Self-mapping page table entries.
     ptes: PteArray<{ Self::PTE_ARRAY_SIZE }>,
-    /// CPU queue: the driver writes commands here, and the GSP reads them. It also contains the
-    /// write and read pointers that the CPU updates. This means that the read pointer here is an
-    /// index into the GSP queue.
+    /// CPU queue: the driver writes commands here, and the GSP reads them.
     ///
     /// This member is read-only for the GSP.
     cpuq: Msgq,
-    /// GSP queue: the GSP writes messages here, and the driver reads them. It also contains the
-    /// write and read pointers that the GSP updates. This means that the read pointer here is an
-    /// index into the CPU queue.
+    /// GSP queue: the GSP writes messages here, and the driver reads them.
     ///
     /// This member is read-only for the driver.
     gspq: Msgq,
@@ -153,22 +147,33 @@ unsafe impl AsBytes for GspMem {}
 // that is not a problem because they are not used outside the kernel.
 unsafe impl FromBytes for GspMem {}
 
-/// Wrapper around [`GspMem`] to share it with the GPU using a [`Coherent`].
+/// Shared GSP queue memory and BAR0 pointer state.
 ///
-/// This provides the low-level functionality to communicate with the GSP, including allocation of
-/// queue space to write messages to and management of read/write pointers.
+/// Queue pointers are monotonic `u32` element counters (empty when equal, full when differing by
+/// [`MSGQ_NUM_PAGES`]):
 ///
-/// This is shared with the GSP, with clear ownership rules regarding the command queues:
+/// * The driver is allowed to write the slots of `cpuq` between [`Self::cpu_write_ptr`] and
+///   [`Self::gsp_read_ptr`] (i.e. the slice returned by [`Self::driver_write_area`]).
+/// * The driver is allowed to read the slots of `gspq` between [`Self::cpu_read_ptr`] and
+///   [`Self::gsp_write_ptr`] (i.e. the slice returned by [`Self::driver_read_area`]).
 ///
-/// * The driver owns (i.e. can write to) the part of the CPU message queue between the CPU write
-///   pointer and the GSP read pointer. This region is returned by [`Self::driver_write_area`].
-/// * The driver owns (i.e. can read from) the part of the GSP message queue between the CPU read
-///   pointer and the GSP write pointer. This region is returned by [`Self::driver_read_area`].
+/// Resetting the GSP falcon while GSP-RM is suspended (e.g. during a load-and-execute event)
+/// zeroes the BAR0 pointer registers without resetting GSP-RM's counters in memory: once resumed,
+/// GSP-RM continues from its pre-reset counts. The driver therefore tracks its own counters
+/// locally and caches the last valid GSP counts to fall back to while the registers read zero.
 struct DmaGspMem<'a> {
     /// The queues, mapped for the GSP.
     mem: Coherent<'a, GspMem>,
-    /// MMIO mapping of PCI BAR0, for the doorbell register.
+    /// MMIO mapping of PCI BAR0, for the queue pointer registers.
     bar: Bar0<'a>,
+    /// Number of elements written to `cpuq`, published via [`regs::NV_PGSP_QUEUE_HEAD`].
+    cpu_write_ptr: u32,
+    /// Number of elements consumed from `gspq`, published via [`regs::NV_PGSP_MSGQ_TAIL`].
+    cpu_read_ptr: u32,
+    /// Last valid [`regs::NV_PGSP_QUEUE_TAIL`] read.
+    last_gsp_read_ptr: Cell<u32>,
+    /// Last valid [`regs::NV_PGSP_MSGQ_HEAD`] read.
+    last_gsp_write_ptr: Cell<u32>,
 }
 
 impl<'a> DmaGspMem<'a> {
@@ -176,12 +181,22 @@ impl<'a> DmaGspMem<'a> {
     fn new(dev: &'a device::Device<device::Bound>, bar: Bar0<'a>) -> Result<Self> {
         let mut gsp_mem = CoherentBox::<'_, GspMem>::zeroed(dev, GFP_KERNEL)?;
         gsp_mem.cpuq.tx = MsgqTxHeader::new();
-        gsp_mem.cpuq.rx = MsgqRxHeader::new();
 
         let gsp_mem: Coherent<'_, _> = gsp_mem.into();
         PteArray::init(io_project!(gsp_mem, .ptes), gsp_mem.dma_address())?;
 
-        Ok(Self { mem: gsp_mem, bar })
+        // Zero the driver's queue pointer registers to match `cpu_write_ptr` and `cpu_read_ptr`.
+        bar.write(Array::at(0), regs::NV_PGSP_QUEUE_HEAD::zeroed());
+        bar.write(Array::at(0), regs::NV_PGSP_MSGQ_TAIL::zeroed());
+
+        Ok(Self {
+            mem: gsp_mem,
+            bar,
+            cpu_write_ptr: 0,
+            cpu_read_ptr: 0,
+            last_gsp_read_ptr: Cell::new(0),
+            last_gsp_write_ptr: Cell::new(0),
+        })
     }
 
     /// Returns the region of the CPU message queue that the driver is currently allowed to write
@@ -191,12 +206,11 @@ fn new(dev: &'a device::Device<device::Bound>, bar: Bar0<'a>) -> Result<Self> {
     /// that case the second slice will have a non-zero length.
     fn driver_write_area(&mut self) -> (&mut [[u8; GSP_PAGE_SIZE]], &mut [[u8; GSP_PAGE_SIZE]]) {
         let avail = usize::from_safe_cast(self.cpuq_free_slots());
-        let w_slot = usize::from_safe_cast(self.cpu_write_ptr());
+        let w_slot = usize::from_safe_cast(self.cpu_write_ptr % MSGQ_NUM_PAGES);
 
         // Number of slots from `w_slot` to the end of the ring, capped by `avail`.
         //
-        // `w_slot` is below `MSGQ_NUM_PAGES` per the invariant of `cpu_write_ptr`, so the
-        // subtraction cannot underflow.
+        // `w_slot` is below `MSGQ_NUM_PAGES` so the subtraction cannot underflow.
         let after_len = avail.min(cv!(MSGQ_NUM_PAGES => usize) - w_slot);
         // Remaining slots from the beginning of the ring (0 unless we wrap).
         //
@@ -207,28 +221,24 @@ fn new(dev: &'a device::Device<device::Bound>, bar: Bar0<'a>) -> Result<Self> {
         // PANIC: `w_slot + after_len` is at most `MSGQ_NUM_PAGES` by construction of
         // `after_len`.
         let after = io_project!(self.mem, .cpuq.msgq.data[panic: w_slot..w_slot + after_len]);
-        // PANIC: `before_len` is at most `avail`, which is below `MSGQ_NUM_PAGES`.
+        // PANIC: `before_len` is at most `avail`, which is at most `MSGQ_NUM_PAGES`.
         let before = io_project!(self.mem, .cpuq.msgq.data[panic: ..before_len]);
 
         // SAFETY:
         // - Both regions are within the `avail` entries starting at `w_slot` that the driver owns,
         //   meaning the GSP won't touch them until the write pointer is advanced.
         // - There are no other references possible as `self` is mutably borrowed.
-        // - The regions do not overlap: `avail` is at most `MSGQ_NUM_PAGES - 1`, so `before_len` is
-        //   strictly less than `w_slot` whenever it is non-zero.
+        // - The regions do not overlap: `avail` is at most `MSGQ_NUM_PAGES`, so `before_len` is
+        //   at most `w_slot`.
         unsafe { (after.as_mut(), before.as_mut()) }
     }
 
     /// Returns the number of slots of the CPU message queue that the driver is currently allowed
-    /// to write to.
+    /// to write to: the ring size minus the elements that the GSP has not consumed yet.
     fn cpuq_free_slots(&self) -> u32 {
-        let tx = self.cpu_write_ptr();
-        let rx = self.gsp_read_ptr();
+        let used = self.cpu_write_ptr.wrapping_sub(self.gsp_read_ptr());
 
-        // `rx` and `tx` are both in `0..MSGQ_NUM_PAGES` per the invariants of `gsp_read_ptr` and
-        // `cpu_write_ptr`. The minimum value case is where `rx == 0` and `tx == MSGQ_NUM_PAGES -
-        // 1`, which gives `0 + MSGQ_NUM_PAGES - (MSGQ_NUM_PAGES - 1) - 1 == 0`.
-        (rx + MSGQ_NUM_PAGES - tx - 1) % MSGQ_NUM_PAGES
+        MSGQ_NUM_PAGES.saturating_sub(used)
     }
 
     /// Returns the size of the region of the CPU message queue that the driver is currently allowed
@@ -238,14 +248,9 @@ fn driver_write_area_size(&self) -> usize {
     }
 
     /// Returns the number of slots of the GSP message queue that the driver is currently allowed
-    /// to read from.
+    /// to read from: the elements that the GSP has posted and the driver has not consumed yet.
     fn gspq_readable_slots(&self) -> u32 {
-        let tx = self.gsp_write_ptr();
-        let rx = self.cpu_read_ptr();
-
-        // `rx` and `tx` are both in `0..MSGQ_NUM_PAGES` per the invariants of `gsp_write_ptr` and
-        // `cpu_read_ptr`, so the subtraction cannot underflow.
-        (tx + MSGQ_NUM_PAGES - rx) % MSGQ_NUM_PAGES
+        self.gsp_write_ptr().wrapping_sub(self.cpu_read_ptr)
     }
 
     /// Returns the region of the GSP message queue that the driver is currently allowed to read
@@ -255,12 +260,11 @@ fn gspq_readable_slots(&self) -> u32 {
     /// that case the second slice will have a non-zero length.
     fn driver_read_area(&self) -> (&[[u8; GSP_PAGE_SIZE]], &[[u8; GSP_PAGE_SIZE]]) {
         let avail = usize::from_safe_cast(self.gspq_readable_slots());
-        let r_slot = usize::from_safe_cast(self.cpu_read_ptr());
+        let r_slot = usize::from_safe_cast(self.cpu_read_ptr % MSGQ_NUM_PAGES);
 
         // Number of slots from `r_slot` to the end of the ring, capped by `avail`.
         //
-        // `r_slot` is below `MSGQ_NUM_PAGES` per the invariant of `cpu_read_ptr`, so the
-        // subtraction cannot underflow.
+        // `r_slot` is below `MSGQ_NUM_PAGES` so the subtraction cannot underflow.
         let after_len = avail.min(cv!(MSGQ_NUM_PAGES => usize) - r_slot);
         // Remaining slots from the beginning of the ring (0 unless we wrap).
         //
@@ -271,7 +275,7 @@ fn gspq_readable_slots(&self) -> u32 {
         // PANIC: `r_slot + after_len` is at most `MSGQ_NUM_PAGES` by construction of
         // `after_len`.
         let after = io_project!(self.mem, .gspq.msgq.data[panic: r_slot..r_slot + after_len]);
-        // PANIC: `before_len` is at most `avail`, which is below `MSGQ_NUM_PAGES`.
+        // PANIC: `before_len` is at most `avail`, which is at most `MSGQ_NUM_PAGES`.
         let before = io_project!(self.mem, .gspq.msgq.data[panic: ..before_len]);
 
         // SAFETY:
@@ -292,12 +296,12 @@ fn gspq_readable_slots(&self) -> u32 {
     /// - `ETIMEDOUT` if space does not become available within the timeout.
     /// - `EIO` if the command header is not properly aligned.
     fn allocate_command(&mut self, size: usize, timeout: Delta) -> Result<GspCommand<'_>> {
-        if size_of::<GspMsgElement>() + size > GSP_MSG_QUEUE_ELEMENT_SIZE_MAX {
+        if size_of::<QueueElementHeader>() + size > GSP_MSG_QUEUE_ELEMENT_SIZE_MAX {
             return Err(EMSGSIZE);
         }
         read_poll_timeout(
             || Ok(self.driver_write_area_size()),
-            |available_bytes| *available_bytes >= size_of::<GspMsgElement>() + size,
+            |available_bytes| *available_bytes >= size_of::<QueueElementHeader>() + size,
             Delta::from_micros(1),
             timeout,
         )?;
@@ -309,8 +313,8 @@ fn allocate_command(&mut self, size: usize, timeout: Delta) -> Result<GspCommand
             (slice_1.as_flattened_mut(), slice_2.as_flattened_mut())
         };
 
-        // Extract area for the `GspMsgElement`.
-        let (header, slice_1) = GspMsgElement::from_bytes_mut_prefix(slice_1).ok_or(EIO)?;
+        // Extract area for the `QueueElementHeader`.
+        let (header, slice_1) = QueueElementHeader::mut_from_prefix(slice_1).map_err(|_| EIO)?;
 
         // Create the contents area.
         let (slice_1, slice_2) = if slice_1.len() > size {
@@ -328,76 +332,73 @@ fn allocate_command(&mut self, size: usize, timeout: Delta) -> Result<GspCommand
         })
     }
 
-    // Returns the index of the memory page the GSP will write the next message to.
-    //
-    // # Invariants
-    //
-    // - The returned value is within `0..MSGQ_NUM_PAGES`.
+    /// Returns the GSP's count of posted messages.
     fn gsp_write_ptr(&self) -> u32 {
-        let ptr = MsgqTxHeader::write_ptr(io_project!(self.mem, .gspq.tx)) % MSGQ_NUM_PAGES;
+        // ORDERING: `readl` ends in a read barrier, which orders this read before the data reads
+        // that follow it.
+        let ptr = u32::from(self.bar.read(regs::NV_PGSP_MSGQ_HEAD::at(0)).val());
 
-        // ORDERING: LOAD->LOAD ordering needed to order `gsp_write_ptr` read before data read.
-        dma_mb(Read);
+        // Ignore out-of-range reads (e.g. a register zeroed while GSP-RM is suspended).
+        if ptr.wrapping_sub(self.cpu_read_ptr) > MSGQ_NUM_PAGES {
+            return self.last_gsp_write_ptr.get();
+        }
 
+        self.last_gsp_write_ptr.set(ptr);
         ptr
     }
 
-    // Returns the index of the memory page the GSP will read the next command from.
-    //
-    // # Invariants
-    //
-    // - The returned value is within `0..MSGQ_NUM_PAGES`.
+    /// Returns the GSP's count of consumed commands.
     fn gsp_read_ptr(&self) -> u32 {
-        let ptr = MsgqRxHeader::read_ptr(io_project!(self.mem, .gspq.rx)) % MSGQ_NUM_PAGES;
+        let ptr = u32::from(self.bar.read(regs::NV_PGSP_QUEUE_TAIL::at(0)).address());
 
-        // ORDERING: LOAD->STORE ordering needed to order `gsp_read_ptr` read before data write.
+        // ORDERING: the data writes that follow must not pass this read. `readl` orders only the
+        // reads that follow it, so the writes need a full barrier.
         dma_mb(Full);
 
+        // Ignore out-of-range reads (e.g. a register zeroed while GSP-RM is suspended). If `last`
+        // made `cpuq` look full when the register reset to 0, GSP-RM has already drained `cpuq`
+        // before suspending, so advance to `cpu_write_ptr` to avoid deadlocking the next send.
+        if self.cpu_write_ptr.wrapping_sub(ptr) > MSGQ_NUM_PAGES {
+            let last = self.last_gsp_read_ptr.get();
+            let ptr = if ptr == 0 && self.cpu_write_ptr.wrapping_sub(last) == MSGQ_NUM_PAGES {
+                self.cpu_write_ptr
+            } else {
+                last
+            };
+            self.last_gsp_read_ptr.set(ptr);
+
+            return ptr;
+        }
+
+        self.last_gsp_read_ptr.set(ptr);
         ptr
     }
 
-    // Returns the index of the memory page the CPU can read the next message from.
-    //
-    // # Invariants
-    //
-    // - The returned value is within `0..MSGQ_NUM_PAGES`.
-    fn cpu_read_ptr(&self) -> u32 {
-        MsgqRxHeader::read_ptr(io_project!(self.mem, .cpuq.rx)) % MSGQ_NUM_PAGES
-    }
-
-    // Informs the GSP that it can send `elem_count` new pages into the message queue.
+    /// Releases `elem_count` more elements of the message queue to the GSP.
     fn advance_cpu_read_ptr(&mut self, elem_count: u32) {
-        // ORDERING: LOAD->STORE ordering needed to order `cpu_read_ptr` write after data read.
+        self.cpu_read_ptr = self.cpu_read_ptr.wrapping_add(elem_count);
+
+        // ORDERING: the data reads must complete before this write releases the slots to the GSP.
+        // `writel` orders only the writes before it, so the reads need a full barrier.
         dma_mb(Full);
 
-        let rx = io_project!(self.mem, .cpuq.rx);
-        let rptr = MsgqRxHeader::read_ptr(rx).wrapping_add(elem_count) % MSGQ_NUM_PAGES;
-        MsgqRxHeader::set_read_ptr(rx, rptr)
-    }
-
-    // Returns the index of the memory page the CPU can write the next command to.
-    //
-    // # Invariants
-    //
-    // - The returned value is within `0..MSGQ_NUM_PAGES`.
-    fn cpu_write_ptr(&self) -> u32 {
-        MsgqTxHeader::write_ptr(io_project!(self.mem, .cpuq.tx)) % MSGQ_NUM_PAGES
-    }
-
-    // Publishes `elem_count` more pages of the command queue to the GSP and rings the doorbell.
-    fn advance_cpu_write_ptr(&mut self, elem_count: u32) {
-        // ORDERING: STORE->STORE ordering needed to order `cpu_write_ptr` write after data write.
-        dma_mb(Write);
-
-        let tx = io_project!(self.mem, .cpuq.tx);
-        let wptr = MsgqTxHeader::write_ptr(tx).wrapping_add(elem_count) % MSGQ_NUM_PAGES;
-        MsgqTxHeader::set_write_ptr(tx, wptr);
-
-        // A write to the head register interrupts the GSP. The pointer itself is in the
-        // shared-memory header, so the value written does not matter.
         self.bar.write(
             Array::at(0),
-            regs::NV_PGSP_QUEUE_HEAD::zeroed().with_address(0u32),
+            regs::NV_PGSP_MSGQ_TAIL::zeroed().with_val(self.cpu_read_ptr),
+        );
+    }
+
+    /// Publishes `elem_count` more elements of the command queue to the GSP.
+    ///
+    /// The write to [`regs::NV_PGSP_QUEUE_HEAD`] that publishes them also interrupts the GSP.
+    fn advance_cpu_write_ptr(&mut self, elem_count: u32) {
+        self.cpu_write_ptr = self.cpu_write_ptr.wrapping_add(elem_count);
+
+        // ORDERING: `writel` begins with a write barrier, which orders the data writes before this
+        // register write.
+        self.bar.write(
+            Array::at(0),
+            regs::NV_PGSP_QUEUE_HEAD::zeroed().with_address(self.cpu_write_ptr),
         );
     }
 }
@@ -406,10 +407,10 @@ fn advance_cpu_write_ptr(&mut self, elem_count: u32) {
 ///
 /// This is the type returned by [`DmaGspMem::allocate_command`].
 struct GspCommand<'a> {
-    // Writable reference to the header of the command.
-    header: &'a mut GspMsgElement,
-    // Writable slices to the contents of the command. The second slice is zero unless the command
-    // loops over the command queue.
+    // Writable reference to the queue element header of the command.
+    header: &'a mut QueueElementHeader,
+    // Writable slices to the contents of the command: the message header and the message. The
+    // second slice is zero unless the command loops over the command queue.
     contents: (&'a mut [u8], &'a mut [u8]),
 }
 
@@ -417,10 +418,11 @@ struct GspCommand<'a> {
 ///
 /// This is the type returned by [`CmdqInner::wait_for_msg`].
 struct GspMessage<'a> {
-    // Reference to the header of the message.
-    header: &'a GspMsgElement,
-    // Slices to the contents of the message. The second slice is empty unless the message loops
-    // over the message queue.
+    // Reference to the queue element header of the message.
+    header: &'a QueueElementHeader,
+    // Slices to the contents of the message: the message header and the message, trimmed to the
+    // length that the queue element header declares. The second slice is empty unless the message
+    // loops over the message queue.
     contents: (&'a [u8], &'a [u8]),
 }
 
@@ -429,10 +431,6 @@ enum GspParsedMessage<'a> {
     /// A [RPC message](rpc::RpcMessage).
     Rpc(rpc::RpcMessage<'a>),
     /// A [GMC message](gmc::GmcMessage).
-    //
-    // The transport header of the r570 firmware carries no message type, so this variant cannot
-    // be constructed before the switch to r000.
-    #[expect(dead_code)]
     Gmc(gmc::GmcMessage<'a>),
 }
 
@@ -474,9 +472,6 @@ impl<'cmdq> Cmdq<'cmdq> {
     /// Total size of a queue, headers included.
     pub(super) const MSGQ_SIZE: usize = size_of::<Msgq>();
 
-    /// Offset of the RX header of a queue from its TX header.
-    pub(super) const MSGQ_RX_HDR_OFFSET: usize = core::mem::offset_of!(Msgq, rx);
-
     /// Offset of the ring buffer of a queue from its TX header.
     pub(super) const MSGQ_ENTRY_OFFSET: usize = core::mem::offset_of!(Msgq, msgq);
 
@@ -520,19 +515,6 @@ fn with_inner_locked<R>(&self, f: impl FnOnce(&mut CmdqInner<'_>) -> R) -> R {
         self.with_inner(|inner| f(&mut inner.lock()))
     }
 
-    /// Computes the checksum for the message pointed to by `it`.
-    ///
-    /// A message is made of several parts, so `it` is an iterator over byte slices representing
-    /// these parts.
-    fn calculate_checksum<T: Iterator<Item = u8>>(it: T) -> u32 {
-        let sum64 = it
-            .enumerate()
-            .map(|(idx, byte)| (((idx % 8) * 8) as u32, byte))
-            .fold(0, |acc, (rol, byte)| acc ^ u64::from(byte).rotate_left(rol));
-
-        ((sum64 >> 32) as u32) ^ (sum64 as u32)
-    }
-
     /// Logs and consumes every message the GSP has already posted, and returns without waiting for
     /// more.
     ///
@@ -542,7 +524,7 @@ fn calculate_checksum<T: Iterator<Item = u8>>(it: T) -> u32 {
     ///
     /// # Errors
     ///
-    /// `EIO` if a message fails framing or checksum validation.
+    /// `EIO` if a message fails framing validation.
     pub(crate) fn drain(&self) -> Result {
         self.with_inner_locked(|inner| inner.drain())
     }
@@ -580,24 +562,16 @@ fn send_command_element<E: CommandElement>(&mut self, command: E) -> Result<u32>
             .gsp_mem
             .allocate_command(size_in_bytes, Self::ALLOCATE_TIMEOUT)?;
 
-        // Fill the header.
-        let msg_element_init = GspMsgElement::init(seq, size_in_bytes);
+        // Fill the queue element header.
+        let header_init = QueueElementHeader::init(E::NVDM_TYPE, size_in_bytes);
         // SAFETY: `dst.header` is a valid reference, and is not touched if the initializer fails.
         unsafe {
-            pin_init::raw_try_init(core::ptr::from_mut(dst.header), msg_element_init)?;
+            pin_init::raw_try_init(core::ptr::from_mut(dst.header), header_init)?;
         }
 
-        // Write the message payload.
+        // Write the message header and payload.
         command.write(self.dev, seq, &mut dst)?;
 
-        // Compute checksum now that the whole message is ready.
-        dst.header
-            .set_checksum(Cmdq::calculate_checksum(SBufferIter::new_reader([
-                dst.header.as_bytes(),
-                dst.contents.0,
-                dst.contents.1,
-            ])));
-
         // All set - update the write pointer and inform the GSP of the new command.
         let elem_count = dst.header.element_count();
         self.seq = self.seq.wrapping_add(1);
@@ -608,19 +582,20 @@ fn send_command_element<E: CommandElement>(&mut self, command: E) -> Result<u32>
 
     /// Wait for a message to become available on the message queue.
     ///
-    /// This works purely at the transport layer and does not interpret or validate the message
-    /// beyond the advertised length in its [`GspMsgElement`].
+    /// This works purely at the transport layer: it validates the [`QueueElementHeader`] of the
+    /// message and trims the contents to the length that it declares, and does not interpret the
+    /// message header that follows.
     ///
     /// This method returns:
     ///
-    /// - A reference to the [`GspMsgElement`] of the message,
+    /// - A reference to the [`QueueElementHeader`] of the message,
     /// - Two byte slices with the contents of the message. The second slice is empty unless the
     ///   message loops across the message queue.
     ///
     /// # Errors
     ///
     /// - `ETIMEDOUT` if `timeout` has elapsed before any message becomes available.
-    /// - `EIO` if a message fails framing or checksum validation.
+    /// - `EIO` if a message fails framing validation.
     fn wait_for_msg(&self, timeout: Delta) -> Result<GspMessage<'_>> {
         // Wait for a message to arrive from the GSP.
         let (slice_1, slice_2) = if timeout == Delta::ZERO {
@@ -643,23 +618,23 @@ fn wait_for_msg(&self, timeout: Delta) -> Result<GspMessage<'_>> {
         }
         .map(|(slice_1, slice_2)| (slice_1.as_flattened(), slice_2.as_flattened()))?;
 
-        // Extract the `GspMsgElement`.
-        let (header, slice_1) = GspMsgElement::from_bytes_prefix(slice_1).ok_or(EIO)?;
+        // Extract the `QueueElementHeader`.
+        let (header, slice_1) = QueueElementHeader::ref_from_prefix(slice_1).map_err(|_| EIO)?;
 
-        // Validate checksum after truncating the message to its exact length.
-        if Cmdq::calculate_checksum(
-            SBufferIter::new_reader([header.as_bytes(), slice_1, slice_2])
-                .take(header.msg_length()),
-        ) != 0
-        {
-            dev_err!(&self.dev, "GSP receive: bad checksum\n");
-            return Err(EIO);
-        }
+        header.validate().inspect_err(|_| {
+            dev_err!(&self.dev, "GSP receive: bad queue element header\n");
+        })?;
 
-        Ok(GspMessage {
-            header,
-            contents: (slice_1, slice_2),
-        })
+        // Cut the message slices down to the length that the queue element header declares.
+        let contents =
+            trim_message_slice((slice_1, slice_2), header.message_len()).inspect_err(|_| {
+                dev_err!(
+                    &self.dev,
+                    "GSP receive: read area shorter than the message\n"
+                );
+            })?;
+
+        Ok(GspMessage { header, contents })
     }
 
     /// Wait for the next element on the message queue, pass it to `f`, advance the read pointer
@@ -670,8 +645,9 @@ fn wait_for_msg(&self, timeout: Delta) -> Result<GspMessage<'_>> {
     /// # Errors
     ///
     /// - `ETIMEDOUT` if `timeout` has elapsed before any message becomes available.
-    /// - `EIO` if a message fails framing or checksum validation. In this case, the read pointer
-    ///   does not advance and the queue is stalled. This is a fatal error.
+    /// - `EIO` if a message fails framing validation, or carries an NVDM type that the queue does
+    ///   not use. In this case, the read pointer does not advance and the queue is stalled. This
+    ///   is a fatal error.
     ///
     /// If an error is returned, then `f` has not been called.
     ///
@@ -683,14 +659,25 @@ fn consume_element<R>(
         f: impl FnOnce(GspParsedMessage<'_>) -> R,
     ) -> Result<R> {
         let message = self.wait_for_msg(timeout)?;
-        let elem_count = u32::try_from(message.header.msg_length().div_ceil(GSP_PAGE_SIZE))
-            .map_err(|_| {
-                dev_err!(&self.dev, "GSP receive: message length overflow\n");
-                EIO
-            })?;
+        let elem_count = message.header.element_count();
 
-        // RPC is the only type of message supported for now.
-        let message = GspParsedMessage::Rpc(rpc::RpcMessage::parse(self.dev, message)?);
+        // The NVDM type of the queue element header selects the message header that follows.
+        let message = match message.header.nvdm_type() {
+            Ok(NvdmType::RmRpc) => {
+                GspParsedMessage::Rpc(rpc::RpcMessage::parse(self.dev, message)?)
+            }
+            Ok(NvdmType::GmcApi) => {
+                GspParsedMessage::Gmc(gmc::GmcMessage::parse(self.dev, message)?)
+            }
+            nvdm_type => {
+                dev_err!(
+                    &self.dev,
+                    "GSP receive: unexpected NVDM type {:?}\n",
+                    nvdm_type
+                );
+                return Err(EIO);
+            }
+        };
 
         let res = f(message);
 
@@ -713,7 +700,7 @@ fn consume_element<R>(
     ///
     /// - `ETIMEDOUT` if no message satisfying `f` arrives before the deadline, however many other
     ///   messages arrive while waiting.
-    /// - `EIO` if a message fails framing or checksum validation.
+    /// - `EIO` if a message fails framing validation.
     /// - Any error returned by `f`.
     fn await_msg_with<R>(
         &mut self,
@@ -736,8 +723,7 @@ fn await_msg_with<R>(
     ///
     /// # Errors
     ///
-    /// `EIO` if a message fails framing or checksum validation, or if a message's page count
-    /// overflows a `u32`.
+    /// `EIO` if a message fails framing validation.
     fn drain(&mut self) -> Result {
         loop {
             match self.consume_element(Delta::ZERO, |message| message.log(self.dev)) {
diff --git a/drivers/gpu/nova-core/gsp/cmdq/gmc.rs b/drivers/gpu/nova-core/gsp/cmdq/gmc.rs
index 8de8e93ddd7f..0ddd319e15b7 100644
--- a/drivers/gpu/nova-core/gsp/cmdq/gmc.rs
+++ b/drivers/gpu/nova-core/gsp/cmdq/gmc.rs
@@ -29,11 +29,12 @@
         fw::{
             GmcApiHeader,
             GmcCommandId,
-            GspMsgElement, //
+            QueueElementHeader, //
         },
         GSP_PAGE_SIZE,
     },
-    sbuffer::SBufferIter,
+    mctp::NvdmType,
+    sbuffer::SBufferIter, //
 };
 
 /// Trait implemented by types representing a GMC command to send to the GSP.
@@ -115,6 +116,8 @@ impl<C> CommandElement for GmcCommandElement<C>
     C: CommandToGsp,
     Error: From<C::InitError>,
 {
+    const NVDM_TYPE: NvdmType = NvdmType::GmcApi;
+
     fn size(&self) -> usize {
         size_of::<GmcApiHeader>() + self.0.size()
     }
@@ -123,14 +126,14 @@ fn write(&self, dev: &device::Device, seq: u32, dst: &mut GspCommand<'_>) -> Res
         // Ensure that the command and its headers are not larger than one page, which is part of
         // the GMC API contract.
         const_assert!(
-            size_of::<GspMsgElement>() + size_of::<GmcApiHeader>() + size_of::<C::Command>()
+            size_of::<QueueElementHeader>() + size_of::<GmcApiHeader>() + size_of::<C::Command>()
                 <= GSP_PAGE_SIZE
         );
 
         let command = &self.0;
         let payload_size = command.size();
         // Extract the areas for the GMC API header and the command itself. Per the `const_assert!`
-        // above, the GSP message header, the GMC API header and the command header together are
+        // above, the queue element header, the GMC API header and the command header together are
         // guaranteed to fit entirely into a single page, so it's ok to only look at
         // `dst.contents.0` here.
         let (header, contents) = GmcApiHeader::from_bytes_mut_prefix(dst.contents.0).ok_or(EIO)?;
@@ -209,14 +212,16 @@ impl<'a> GmcMessage<'a> {
     /// - `EIO` if the element is shorter than the GMC API header, or than the payload length
     ///   advertised by the GMC API header.
     pub(super) fn parse(dev: &device::Device, element: GspMessage<'a>) -> Result<GmcMessage<'a>> {
-        static_assert!(size_of::<GspMsgElement>() + size_of::<GmcApiHeader>() <= GSP_PAGE_SIZE);
+        static_assert!(
+            size_of::<QueueElementHeader>() + size_of::<GmcApiHeader>() <= GSP_PAGE_SIZE
+        );
 
         let GspMessage {
             contents: (slice_1, slice_2),
             ..
         } = element;
 
-        // Per the `static_assert!` above, the GSP message header and the GMC API header together
+        // Per the `static_assert!` above, the queue element header and the GMC API header together
         // are guaranteed to fit entirely into a single page, so it's ok to only look at `slice_1`
         // here.
         let (gmc_header, slice_1) = GmcApiHeader::from_bytes_prefix(slice_1).ok_or(EIO)?;
@@ -304,7 +309,7 @@ impl Cmdq<'_> {
     ///   arrive while waiting.
     /// - `EIO` if the variable payload requested by the command has not been entirely
     ///   written to by its [`CommandToGsp::init_variable_payload`] method, or if a message fails
-    ///   framing or checksum validation.
+    ///   framing validation.
     ///
     /// Error codes returned by the command and reply initializers, and by `on_event`, are
     /// propagated as-is.
@@ -379,7 +384,7 @@ fn send_gmc_command<C>(&mut self, command: C) -> Result<u32>
     ///
     /// - `ETIMEDOUT` if the reply does not arrive before the deadline, however many other messages
     ///   arrive while waiting.
-    /// - `EIO` if a message fails framing or checksum validation.
+    /// - `EIO` if a message fails framing validation.
     ///
     /// Error codes returned by [`MessageFromGsp::read`] and by `on_event` are propagated as-is.
     fn await_gmc_reply<C: CommandToGsp>(
diff --git a/drivers/gpu/nova-core/gsp/cmdq/rpc.rs b/drivers/gpu/nova-core/gsp/cmdq/rpc.rs
index 9ce3be7c4c03..ffe8b950c1d9 100644
--- a/drivers/gpu/nova-core/gsp/cmdq/rpc.rs
+++ b/drivers/gpu/nova-core/gsp/cmdq/rpc.rs
@@ -27,7 +27,8 @@
             RpcMessageHeader, //
         },
     },
-    sbuffer::SBufferIter,
+    mctp::NvdmType,
+    sbuffer::SBufferIter, //
 };
 
 use super::{
@@ -93,8 +94,8 @@ fn init_variable_payload(
         Ok(())
     }
 
-    /// Total size of the command (including its variable-length payload) without the
-    /// [`GspMsgElement`] header.
+    /// Total size of the command (including its variable-length payload) without the queue element
+    /// and RPC headers.
     fn size(&self) -> usize {
         size_of::<Self::Command>() + self.variable_payload_len()
     }
@@ -111,25 +112,25 @@ impl<M> CommandElement for RpcCommandElement<M>
     M: CommandToGsp,
     Error: From<M::InitError>,
 {
+    const NVDM_TYPE: NvdmType = NvdmType::RmRpc;
+
     fn size(&self) -> usize {
-        self.0.size()
+        size_of::<RpcMessageHeader>() + self.0.size()
     }
 
     fn write(&self, dev: &device::Device, seq: u32, dst: &mut GspCommand<'_>) -> Result {
         let command = &self.0;
         let size_in_bytes = command.size();
-        // Extract area for the command itself. The GSP message header and the command header
-        // together are guaranteed to fit entirely into a single page, so it's ok to only look
-        // at `dst.contents.0` here.
-        let (cmd, payload_1) = M::Command::from_bytes_mut_prefix(dst.contents.0).ok_or(EIO)?;
+        // Extract the areas for the RPC header and the command itself. The queue element header,
+        // the RPC header and the command header together are guaranteed to fit entirely into a
+        // single page, so it's ok to only look at `dst.contents.0` here.
+        let (rpc_header, contents) =
+            RpcMessageHeader::from_bytes_mut_prefix(dst.contents.0).ok_or(EIO)?;
+        let (cmd, payload_1) = M::Command::from_bytes_mut_prefix(contents).ok_or(EIO)?;
         let rpc_header_init = RpcMessageHeader::init(size_in_bytes, M::FUNCTION);
-        // SAFETY: `dst.header.rpc_header_mut()` is a valid reference, and is not touched if the
-        // initializer fails.
+        // SAFETY: `rpc_header` is a valid reference, and is not touched if the initializer fails.
         unsafe {
-            pin_init::raw_try_init(
-                core::ptr::from_mut(dst.header.rpc_header_mut()),
-                rpc_header_init,
-            )?;
+            pin_init::raw_try_init(core::ptr::from_mut(rpc_header), rpc_header_init)?;
         }
         // SAFETY: `cmd` is a valid reference, and is not touched if the initializer fails.
         unsafe {
@@ -196,14 +197,17 @@ impl<'a> RpcMessage<'a> {
     ///
     /// # Errors
     ///
-    /// - `EIO` if the element is shorter than the payload length advertised by the RPC header.
+    /// - `EIO` if the element is shorter than the RPC header, or than the payload length
+    ///   advertised by the RPC header.
     pub(super) fn parse(dev: &device::Device, element: GspMessage<'a>) -> Result<RpcMessage<'a>> {
         let GspMessage {
-            header,
             contents: (slice_1, slice_2),
+            ..
         } = element;
 
-        let rpc_header = header.rpc_header();
+        // The queue element header and the RPC header together are guaranteed to fit entirely
+        // into a single page, so it's ok to only look at `slice_1` here.
+        let (rpc_header, slice_1) = RpcMessageHeader::from_bytes_prefix(slice_1).ok_or(EIO)?;
         let payload_length = rpc_header.rpc_length();
 
         dev_dbg!(
@@ -307,7 +311,7 @@ pub(crate) fn send_rpc_command_no_wait<M>(&self, command: M) -> Result
     ///
     /// - `ETIMEDOUT` if the event does not arrive within [`Self::RECEIVE_TIMEOUT`] of the call,
     ///   however many other events arrive while waiting.
-    /// - `EIO` if a message fails framing or checksum validation.
+    /// - `EIO` if a message fails framing validation.
     ///
     /// Error codes returned by [`MessageFromGsp::read`] are propagated as-is.
     pub(crate) fn await_rpc_msg<M: MessageFromGsp>(&self) -> Result<M>
@@ -361,7 +365,7 @@ fn send_rpc_command<M>(&mut self, command: M) -> Result
     ///
     /// - `ETIMEDOUT` if no message of type `M` arrives before the deadline, however many other
     ///   messages arrive while waiting.
-    /// - `EIO` if a message fails framing or checksum validation.
+    /// - `EIO` if a message fails framing validation.
     ///
     /// Error codes returned by [`MessageFromGsp::read`] are propagated as-is.
     fn await_rpc_msg<M: MessageFromGsp>(&mut self) -> Result<M>
diff --git a/drivers/gpu/nova-core/gsp/cmdq/rpc/continuation.rs b/drivers/gpu/nova-core/gsp/cmdq/rpc/continuation.rs
index 9ef19f28de97..c4e169429969 100644
--- a/drivers/gpu/nova-core/gsp/cmdq/rpc/continuation.rs
+++ b/drivers/gpu/nova-core/gsp/cmdq/rpc/continuation.rs
@@ -13,15 +13,19 @@
 
 use crate::{
     gsp::fw::{
-        GspMsgElement,
         MsgFunction,
+        QueueElementHeader,
+        RpcMessageHeader,
         GSP_MSG_QUEUE_ELEMENT_SIZE_MAX, //
     },
     sbuffer::SBufferIter,
 };
 
-/// Maximum command size that fits in a single queue element.
-const MAX_CMD_SIZE: usize = GSP_MSG_QUEUE_ELEMENT_SIZE_MAX - size_of::<GspMsgElement>();
+/// Maximum command size that fits in a single queue element, after the queue element header and
+/// the RPC header.
+const MAX_CMD_SIZE: usize = GSP_MSG_QUEUE_ELEMENT_SIZE_MAX
+    - size_of::<QueueElementHeader>()
+    - size_of::<RpcMessageHeader>();
 
 /// Acts as an iterator over the continuation records for a split command.
 pub(super) struct ContinuationRecords {
diff --git a/drivers/gpu/nova-core/gsp/commands.rs b/drivers/gpu/nova-core/gsp/commands.rs
index 4ffcb4133e02..df920e3d8322 100644
--- a/drivers/gpu/nova-core/gsp/commands.rs
+++ b/drivers/gpu/nova-core/gsp/commands.rs
@@ -1,9 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0
 // SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 
-// The r570 firmware does not use GMC.
-#[expect(dead_code)]
 pub(crate) mod gmc;
+#[expect(dead_code)]
 pub(crate) mod rpc;
 
 use core::{
@@ -16,8 +15,7 @@
 
 pub(crate) use crate::gsp::fw::commands::PowerStateLevel;
 
-/// The static GPU configuration, which GSP-RM reports in reply to
-/// [`GetGspStaticInfo`](rpc::GetGspStaticInfo).
+/// The static GPU configuration, which GSP-RM reports in reply to [`GspInit`](gmc::GspInit).
 pub struct GspStaticInfo {
     gpu_name: [u8; Self::MAX_GPU_NAME_LEN],
     gpu_short_name: [u8; Self::MAX_GPU_NAME_LEN],
diff --git a/drivers/gpu/nova-core/gsp/fw.rs b/drivers/gpu/nova-core/gsp/fw.rs
index 74e642e11afc..c51f0c6913df 100644
--- a/drivers/gpu/nova-core/gsp/fw.rs
+++ b/drivers/gpu/nova-core/gsp/fw.rs
@@ -6,20 +6,14 @@
 mod r570_144;
 
 // Alias to avoid repeating the version number with every use.
-use r570_144 as bindings;
+use r000_00 as bindings;
 
 use core::ops::Range;
 
 use kernel::{
     bitfield,
-    dma::{
-        Coherent,
-        CoherentView, //
-    },
-    io::{
-        io_read,
-        io_write, //
-    },
+    dma::Coherent,
+    io::io_write,
     prelude::*,
     ptr::{
         Alignable,
@@ -44,7 +38,10 @@
         FbRanges,
         FbSizes, //
     },
-    firmware::gsp::GspFirmware,
+    firmware::{
+        gsp::GspFirmware,
+        ucodes::UcodesImage, //
+    },
     gpu::{
         Architecture,
         Chipset, //
@@ -54,7 +51,8 @@
             Cmdq,
             MSGQ_NUM_PAGES, //
         },
-        GSP_PAGE_SIZE,
+        GSP_PAGE_SHIFT,
+        GSP_PAGE_SIZE, //
     },
     mctp::{
         MctpHeader,
@@ -104,7 +102,7 @@ fn client_alloc_size() -> u64 {
     fn management_overhead(fb_size: u64) -> Result<u64> {
         let fb_size_gb = fb_size.div_ceil(u64::SZ_1G);
 
-        u64::from(bindings::GSP_FW_HEAP_PARAM_SIZE_PER_GB_FB)
+        u64::from(bindings::GSP_FW_HEAP_PARAM_SIZE_PER_GB)
             .checked_mul(fb_size_gb)
             .ok_or(EINVAL)?
             .align_up(GSP_HEAP_ALIGNMENT)
@@ -306,7 +304,7 @@ pub(crate) enum MsgFunction {
     GspInitDone = bindings::NV_VGPU_MSG_EVENT_GSP_INIT_DONE,
     GspLockdownNotice = bindings::NV_VGPU_MSG_EVENT_GSP_LOCKDOWN_NOTICE,
     GspPostNoCat = bindings::NV_VGPU_MSG_EVENT_GSP_POST_NOCAT_RECORD,
-    GspRunCpuSequencer = bindings::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER,
+    GspRunCpuSequencer = r570_144::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER,
     MmuFaultQueued = bindings::NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED,
     OsErrorLog = bindings::NV_VGPU_MSG_EVENT_OS_ERROR_LOG,
     PostEvent = bindings::NV_VGPU_MSG_EVENT_POST_EVENT,
@@ -353,7 +351,7 @@ fn try_from(value: u32) -> Result<MsgFunction> {
             bindings::NV_VGPU_MSG_EVENT_GSP_INIT_DONE => Ok(MsgFunction::GspInitDone),
             bindings::NV_VGPU_MSG_EVENT_GSP_LOCKDOWN_NOTICE => Ok(MsgFunction::GspLockdownNotice),
             bindings::NV_VGPU_MSG_EVENT_GSP_POST_NOCAT_RECORD => Ok(MsgFunction::GspPostNoCat),
-            bindings::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER => {
+            r570_144::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER => {
                 Ok(MsgFunction::GspRunCpuSequencer)
             }
             bindings::NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED => Ok(MsgFunction::MmuFaultQueued),
@@ -378,19 +376,19 @@ fn from(value: MsgFunction) -> Self {
 #[repr(u32)]
 pub(crate) enum SeqBufOpcode {
     // Core operation opcodes
-    CoreReset = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET,
-    CoreResume = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME,
-    CoreStart = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START,
-    CoreWaitForHalt = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT,
+    CoreReset = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET,
+    CoreResume = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME,
+    CoreStart = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START,
+    CoreWaitForHalt = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT,
 
     // Delay opcode
-    DelayUs = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US,
+    DelayUs = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US,
 
     // Register operation opcodes
-    RegModify = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY,
-    RegPoll = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL,
-    RegStore = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE,
-    RegWrite = bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE,
+    RegModify = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY,
+    RegPoll = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL,
+    RegStore = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE,
+    RegWrite = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE,
 }
 
 impl TryFrom<u32> for SeqBufOpcode {
@@ -398,25 +396,25 @@ impl TryFrom<u32> for SeqBufOpcode {
 
     fn try_from(value: u32) -> Result<SeqBufOpcode> {
         match value {
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET => {
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET => {
                 Ok(SeqBufOpcode::CoreReset)
             }
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME => {
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME => {
                 Ok(SeqBufOpcode::CoreResume)
             }
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START => {
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START => {
                 Ok(SeqBufOpcode::CoreStart)
             }
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT => {
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT => {
                 Ok(SeqBufOpcode::CoreWaitForHalt)
             }
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US => Ok(SeqBufOpcode::DelayUs),
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY => {
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US => Ok(SeqBufOpcode::DelayUs),
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY => {
                 Ok(SeqBufOpcode::RegModify)
             }
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL => Ok(SeqBufOpcode::RegPoll),
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE => Ok(SeqBufOpcode::RegStore),
-            bindings::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE => Ok(SeqBufOpcode::RegWrite),
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL => Ok(SeqBufOpcode::RegPoll),
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE => Ok(SeqBufOpcode::RegStore),
+            r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE => Ok(SeqBufOpcode::RegWrite),
             _ => Err(EINVAL),
         }
     }
@@ -432,7 +430,7 @@ fn from(value: SeqBufOpcode) -> Self {
 /// Wrapper for GSP sequencer register write payload.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-pub(crate) struct RegWritePayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_WRITE);
+pub(crate) struct RegWritePayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_WRITE);
 
 impl RegWritePayload {
     /// Returns the register address.
@@ -455,7 +453,7 @@ unsafe impl AsBytes for RegWritePayload {}
 /// Wrapper for GSP sequencer register modify payload.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-pub(crate) struct RegModifyPayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_MODIFY);
+pub(crate) struct RegModifyPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_MODIFY);
 
 impl RegModifyPayload {
     /// Returns the register address.
@@ -483,7 +481,7 @@ unsafe impl AsBytes for RegModifyPayload {}
 /// Wrapper for GSP sequencer register poll payload.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-pub(crate) struct RegPollPayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_POLL);
+pub(crate) struct RegPollPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_POLL);
 
 impl RegPollPayload {
     /// Returns the register address.
@@ -516,7 +514,7 @@ unsafe impl AsBytes for RegPollPayload {}
 /// Wrapper for GSP sequencer delay payload.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-pub(crate) struct DelayUsPayload(bindings::GSP_SEQ_BUF_PAYLOAD_DELAY_US);
+pub(crate) struct DelayUsPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_DELAY_US);
 
 impl DelayUsPayload {
     /// Returns the delay value in microseconds.
@@ -534,7 +532,7 @@ unsafe impl AsBytes for DelayUsPayload {}
 /// Wrapper for GSP sequencer register store payload.
 #[repr(transparent)]
 #[derive(Copy, Clone, Debug)]
-pub(crate) struct RegStorePayload(bindings::GSP_SEQ_BUF_PAYLOAD_REG_STORE);
+pub(crate) struct RegStorePayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_STORE);
 
 impl RegStorePayload {
     /// Returns the register address.
@@ -557,7 +555,7 @@ unsafe impl AsBytes for RegStorePayload {}
 
 /// Wrapper for GSP sequencer buffer command.
 #[repr(transparent)]
-pub(crate) struct SequencerBufferCmd(bindings::GSP_SEQUENCER_BUFFER_CMD);
+pub(crate) struct SequencerBufferCmd(r570_144::GSP_SEQUENCER_BUFFER_CMD);
 
 impl SequencerBufferCmd {
     /// Returns the opcode as a `SeqBufOpcode` enum, or error if invalid.
@@ -629,7 +627,7 @@ unsafe impl AsBytes for SequencerBufferCmd {}
 
 /// Wrapper for GSP run CPU sequencer RPC.
 #[repr(transparent)]
-pub(crate) struct RunCpuSequencer(bindings::rpc_run_cpu_sequencer_v17_00);
+pub(crate) struct RunCpuSequencer(r570_144::rpc_run_cpu_sequencer_v17_00);
 
 impl RunCpuSequencer {
     /// Returns the command index.
@@ -701,7 +699,14 @@ fn id8(name: &str) -> u64 {
     }
 }
 
-/// TX header for setting up a message queue with the GSP.
+/// Major msgq version that the driver uses.
+const MSGQ_VERSION_MAJOR: u16 = 2;
+/// Minor msgq version that the driver uses.
+const MSGQ_VERSION_MINOR: u16 = 0;
+
+/// The msgq TX header, which describes a queue to the GSP: the msgq version that the driver uses,
+/// and the queue's geometry. The queue pointers are in BAR0 registers rather than in the msgq TX
+/// header.
 #[repr(transparent)]
 pub(crate) struct MsgqTxHeader(bindings::msgqTxHeader);
 
@@ -709,56 +714,20 @@ impl MsgqTxHeader {
     /// Create a new TX queue header, describing the queue layout defined by [`Cmdq`].
     pub(crate) fn new() -> Self {
         Self(bindings::msgqTxHeader {
-            version: 0,
+            versionMajor: MSGQ_VERSION_MAJOR,
+            versionMinor: MSGQ_VERSION_MINOR,
             size: cv!(Cmdq::MSGQ_SIZE),
             msgSize: cv!(Cmdq::MSG_SIZE),
             msgCount: MSGQ_NUM_PAGES,
-            writePtr: 0,
-            flags: 1,
-            rxHdrOff: cv!(Cmdq::MSGQ_RX_HDR_OFFSET),
             entryOff: cv!(Cmdq::MSGQ_ENTRY_OFFSET),
+            reserved: [0; 3],
         })
     }
-
-    /// Returns the value of the write pointer for this queue.
-    pub(crate) fn write_ptr(this: CoherentView<'_, Self>) -> u32 {
-        io_read!(this, .0.writePtr)
-    }
-
-    /// Sets the value of the write pointer for this queue.
-    pub(crate) fn set_write_ptr(this: CoherentView<'_, Self>, val: u32) {
-        io_write!(this, .0.writePtr, val)
-    }
 }
 
 // SAFETY: Padding is explicit and does not contain uninitialized data.
 unsafe impl AsBytes for MsgqTxHeader {}
 
-/// RX header for setting up a message queue with the GSP.
-#[repr(transparent)]
-pub(crate) struct MsgqRxHeader(bindings::msgqRxHeader);
-
-/// Header for the message RX queue.
-impl MsgqRxHeader {
-    /// Creates a new RX queue header.
-    pub(crate) fn new() -> Self {
-        Self(Default::default())
-    }
-
-    /// Returns the value of the read pointer for this queue.
-    pub(crate) fn read_ptr(this: CoherentView<'_, Self>) -> u32 {
-        io_read!(this, .0.readPtr)
-    }
-
-    /// Sets the value of the read pointer for this queue.
-    pub(crate) fn set_read_ptr(this: CoherentView<'_, Self>, val: u32) {
-        io_write!(this, .0.readPtr, val)
-    }
-}
-
-// SAFETY: Padding is explicit and does not contain uninitialized data.
-unsafe impl AsBytes for MsgqRxHeader {}
-
 bitfield! {
     struct MsgHeaderVersion(u32) {
         31:24 major;
@@ -777,86 +746,9 @@ fn new() -> Self {
     }
 }
 
-/// GSP Message Element.
-///
-/// This is essentially a message header expected to be followed by the message data.
-#[repr(transparent)]
-pub(crate) struct GspMsgElement {
-    inner: bindings::GSP_MSG_QUEUE_ELEMENT,
-}
-
-impl GspMsgElement {
-    /// Creates a new message element.
-    ///
-    /// The RPC header is left initialized to zero and must be initialized separately using e.g.
-    /// [`Self::rpc_header_mut`].
-    ///
-    /// # Arguments
-    ///
-    /// * `sequence` - Sequence number of the message.
-    /// * `cmd_size` - Size of the command (not including the message element), in bytes.
-    pub(crate) fn init(sequence: u32, cmd_size: usize) -> impl Init<Self, Error> {
-        type InnerGspMsgElement = bindings::GSP_MSG_QUEUE_ELEMENT;
-        let init_inner = try_init!(InnerGspMsgElement {
-            seqNum: sequence,
-            elemCount: size_of::<Self>()
-                .checked_add(cmd_size)
-                .ok_or(EOVERFLOW)?
-                .div_ceil(GSP_PAGE_SIZE)
-                .try_into()
-                .map_err(|_| EOVERFLOW)?,
-            ..Zeroable::init_zeroed()
-        });
-
-        try_init!(GspMsgElement {
-            inner <- init_inner,
-        })
-    }
-
-    /// Sets the checksum of this message.
-    ///
-    /// Since the header is also part of the checksum, this is usually called after the whole
-    /// message has been written to the shared memory area.
-    pub(crate) fn set_checksum(&mut self, checksum: u32) {
-        self.inner.checkSum = checksum;
-    }
-
-    /// Returns a reference to the RPC header within the message element.
-    pub(crate) fn rpc_header(&self) -> &RpcMessageHeader {
-        // SAFETY: `RpcMessageHeader` is a transparent wrapper for the type of `inner.rpc`.
-        unsafe { core::mem::transmute(&self.inner.rpc) }
-    }
-
-    /// Returns a mutable reference to the RPC header within the message element.
-    pub(crate) fn rpc_header_mut(&mut self) -> &mut RpcMessageHeader {
-        // SAFETY: `RpcMessageHeader` is a transparent wrapper for the type of `inner.rpc`.
-        unsafe { core::mem::transmute(&mut self.inner.rpc) }
-    }
-
-    /// Returns the total length of the message, message and RPC headers included.
-    pub(crate) fn msg_length(&self) -> usize {
-        // Note: this is transport-layer code accessing message-layer data, which is only ok here
-        // because RPC is the only kind of message we handle, and its header can (with a stretch) be
-        // considered part of the transport header.
-        size_of::<Self>() + self.rpc_header().rpc_length()
-    }
-
-    /// Returns the number of slots (i.e. memory pages) used by this message.
-    pub(crate) fn element_count(&self) -> u32 {
-        self.inner.elemCount
-    }
-}
-
-// SAFETY: Padding is explicit and does not contain uninitialized data.
-unsafe impl AsBytes for GspMsgElement {}
-
-// SAFETY: This struct only contains integer types for which all bit patterns
-// are valid.
-unsafe impl FromBytes for GspMsgElement {}
-
 /// RPC Message Header.
 ///
-/// The header of a RPC message, wrapped inside a [`GspMsgElement`].
+/// The header of a RPC message, which follows the [`QueueElementHeader`] in an RPC message.
 #[repr(transparent)]
 pub(crate) struct RpcMessageHeader {
     inner: bindings::rpc_message_header_v,
@@ -907,6 +799,13 @@ pub(crate) fn function(&self) -> Result<MsgFunction, u32> {
     }
 }
 
+// SAFETY: This struct only contains integer types, including inside its union, and a zero-sized
+// array. It has no padding.
+unsafe impl AsBytes for RpcMessageHeader {}
+
+// SAFETY: This struct only contains integer types for which all bit patterns are valid.
+unsafe impl FromBytes for RpcMessageHeader {}
+
 /// Header opening every element of the r000 GSP queues.
 ///
 /// A queue element is laid out as follows:
@@ -956,30 +855,30 @@ pub(crate) struct QueueElementHeader {
 
     assert!(
         offset_of!(QueueElementHeader, mctp_magic)
-            == offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT, mctpMagic)
+            == offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT, mctpMagic)
     );
     assert!(
         offset_of!(QueueElementHeader, mctp_payload_size)
-            == offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT, mctpPayloadSize)
+            == offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT, mctpPayloadSize)
     );
     assert!(
         offset_of!(QueueElementHeader, mctp_header)
-            == offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT, mctpHeader)
+            == offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT, mctpHeader)
     );
     assert!(
         offset_of!(QueueElementHeader, nvdm_header)
-            == offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT, nvdmHeader)
+            == offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT, nvdmHeader)
     );
 
     /// The `noEncryption` member of the union of `GSP_MSG_QUEUE_ELEMENT`, which holds the two
     /// trailing fields of [`QueueElementHeader`].
-    type QueueElementNoEncryption = r000_00::GSP_MSG_QUEUE_ELEMENT__bindgen_ty_1__bindgen_ty_2;
+    type QueueElementNoEncryption = bindings::GSP_MSG_QUEUE_ELEMENT__bindgen_ty_1__bindgen_ty_2;
 
     // Offsets of fields under [`QueueElementNoEncryption`] within `GSP_MSG_QUEUE_ELEMENT`.
 
     const QUEUE_ELEMENT_NO_ENCRYPTION_OFFSET: usize =
-        offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT, __bindgen_anon_1)
-            + offset_of!(r000_00::GSP_MSG_QUEUE_ELEMENT__bindgen_ty_1, noEncryption);
+        offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT, __bindgen_anon_1)
+            + offset_of!(bindings::GSP_MSG_QUEUE_ELEMENT__bindgen_ty_1, noEncryption);
 
     assert!(
         offset_of!(QueueElementHeader, nvdm_payload_size)
@@ -999,7 +898,6 @@ pub(crate) struct QueueElementHeader {
     );
 };
 
-#[expect(dead_code)]
 impl QueueElementHeader {
     /// First word of every r000 queue element: `"MCTP"` in ASCII.
     const MCTP_MAGIC: u32 = 0x4D43_5450;
@@ -1077,11 +975,11 @@ pub(crate) fn validate(&self) -> Result {
     #[derive(Debug, Clone, Copy, PartialEq, Eq)]
     #[repr(u32)]
     pub(crate) enum GmcCommandId with TryFrom<Bounded<u32, 24>> {
-        GspInit = r000_00::GMCAPI_COMMANDS_GMCAPI_CMD_GSP_INIT,
-        ExecGenericBootloader = r000_00::GMCAPI_COMMANDS_GMCAPI_CMD_EXEC_GENERIC_BOOTLOADER,
-        ExecHsBinary = r000_00::GMCAPI_COMMANDS_GMCAPI_CMD_EXEC_HS_BINARY,
-        GspSuspend = r000_00::GMCAPI_COMMANDS_GMCAPI_CMD_GSP_SUSPEND,
-        MmuFaultQueued = r000_00::GMCAPI_COMMANDS_GMCAPI_CMD_MMU_FAULT_QUEUED,
+        GspInit = bindings::GMCAPI_COMMANDS_GMCAPI_CMD_GSP_INIT,
+        ExecGenericBootloader = bindings::GMCAPI_COMMANDS_GMCAPI_CMD_EXEC_GENERIC_BOOTLOADER,
+        ExecHsBinary = bindings::GMCAPI_COMMANDS_GMCAPI_CMD_EXEC_HS_BINARY,
+        GspSuspend = bindings::GMCAPI_COMMANDS_GMCAPI_CMD_GSP_SUSPEND,
+        MmuFaultQueued = bindings::GMCAPI_COMMANDS_GMCAPI_CMD_MMU_FAULT_QUEUED,
     }
 }
 
@@ -1101,11 +999,9 @@ pub(crate) struct GmcCommandWord(u32) {
 /// command.
 #[repr(transparent)]
 pub(crate) struct GmcApiHeader {
-    inner: r000_00::GMCAPI_HEADER,
+    inner: bindings::GMCAPI_HEADER,
 }
 
-// Using `allow` instead of `expect` here due to rust-lang/rust#154377.
-#[allow(dead_code)]
 impl GmcApiHeader {
     /// Creates the header of a request for `command`, sent with sequence number `sequence` and
     /// followed by `payload_size` bytes of payload.
@@ -1122,12 +1018,12 @@ pub(crate) fn init(
         payload_size: usize,
         max_reply_size: u32,
     ) -> impl Init<Self, Error> {
-        let init_inner = try_init!(r000_00::GMCAPI_HEADER {
+        let init_inner = try_init!(bindings::GMCAPI_HEADER {
             command: GmcCommandWord::zeroed().with_id(command).into(),
             size: payload_size.try_into().map_err(|_| EOVERFLOW)?,
             sequence,
-            __bindgen_anon_1: r000_00::GMCAPI_HEADER__bindgen_ty_1 {
-                request: r000_00::GMCAPI_HEADER__bindgen_ty_1__bindgen_ty_1 {
+            __bindgen_anon_1: bindings::GMCAPI_HEADER__bindgen_ty_1 {
+                request: bindings::GMCAPI_HEADER__bindgen_ty_1__bindgen_ty_1 {
                     max_response_size: max_reply_size,
                 },
             },
@@ -1177,6 +1073,12 @@ unsafe impl AsBytes for GmcApiHeader {}
 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
 unsafe impl FromBytes for GmcApiHeader {}
 
+/// First word of `GSP_ARGUMENTS_CACHED`: `"GSP "` in ASCII.
+const GSP_ARGUMENTS_MAGIC_VALUE: u32 = 0x2050_5347;
+
+/// Flag that requests GSP-RM to place its stack in DMEM.
+const GSP_ARGUMENTS_FLAG_STACK_IN_DMEM: u64 = 0x02;
+
 /// Arguments for GSP startup.
 #[repr(transparent)]
 #[derive(Zeroable)]
@@ -1185,11 +1087,21 @@ pub(crate) struct GspArgumentsCached {
 }
 
 impl GspArgumentsCached {
-    /// Creates the arguments for starting the GSP up using `cmdq` as its command queue.
-    pub(crate) fn new<'a, 'b>(cmdq: &'a Cmdq<'b>) -> impl Init<Self> + use<'a, 'b> {
+    /// Creates the arguments for starting the GSP, with `cmdq` as its command queue and
+    /// `state_monitor` as the buffer in which GSP-RM reports its own state.
+    pub(crate) fn new<'a, 'b>(
+        cmdq: &'a Cmdq<'b>,
+        state_monitor: &'a Coherent<'b, [u8; GSP_PAGE_SIZE]>,
+    ) -> impl Init<Self> + use<'a, 'b> {
         let init_inner = init!(bindings::GSP_ARGUMENTS_CACHED {
+            magic: GSP_ARGUMENTS_MAGIC_VALUE,
+            size: cv!(size_of::<bindings::GSP_ARGUMENTS_CACHED>()),
+            flags: GSP_ARGUMENTS_FLAG_STACK_IN_DMEM,
             messageQueueInitArguments <- MessageQueueInitArguments::new(cmdq),
-            bDmemStack: 1,
+            rmStateMonitorBufferArgs: bindings::GSP_ARGUMENTS_CACHED__bindgen_ty_3 {
+                pa: state_monitor.dma_address(),
+                size: num::usize_as_u64(state_monitor.size()),
+            },
             ..Zeroable::init_zeroed()
         });
 
@@ -1213,12 +1125,23 @@ pub(crate) struct GspArgumentsPadded {
 }
 
 impl GspArgumentsPadded {
-    pub(crate) fn new<'a, 'b>(cmdq: &'a Cmdq<'b>) -> impl Init<Self> + use<'a, 'b> {
+    pub(crate) fn new<'a, 'b>(
+        cmdq: &'a Cmdq<'b>,
+        state_monitor: &'a Coherent<'b, [u8; GSP_PAGE_SIZE]>,
+    ) -> impl Init<Self> + use<'a, 'b> {
         init!(GspArgumentsPadded {
-            inner <- GspArgumentsCached::new(cmdq),
+            inner <- GspArgumentsCached::new(cmdq, state_monitor),
             ..Zeroable::init_zeroed()
         })
     }
+
+    /// Records where `ucodes` is mapped.
+    ///
+    /// GSP-RM reads the arguments once, when it starts, so a write after that point has no effect.
+    pub(crate) fn set_ucodes(this: &Coherent<'_, Self>, ucodes: &UcodesImage<'_>) {
+        io_write!(this, .inner.inner.bindataArgs.radix3, ucodes.radix3_dma_address());
+        io_write!(this, .inner.inner.bindataArgs.size, num::usize_as_u64(ucodes.size()));
+    }
 }
 
 // SAFETY: Padding is explicit and will not contain uninitialized data.
@@ -1239,6 +1162,15 @@ fn new<'a, 'b>(cmdq: &'a Cmdq<'b>) -> impl Init<Self> + use<'a, 'b> {
             pageTableEntryCount: cv!(Cmdq::NUM_PTES),
             cmdQueueOffset: u64::from_safe_cast(Cmdq::CMDQ_OFFSET),
             statQueueOffset: u64::from_safe_cast(Cmdq::STATQ_OFFSET),
+
+            queueElementHdrSize: cv!(size_of::<QueueElementHeader>()),
+            queueElementSizeMin: cv!(GSP_PAGE_SIZE),
+            queueElementSizeMax: cv!(GSP_MSG_QUEUE_ELEMENT_SIZE_MAX),
+
+            // Both alignments are log2 values, which GSP-RM applies as `1 << n`.
+            queueHeaderAlign: 4,
+            queueElementAlign: cv!(GSP_PAGE_SHIFT),
+
             ..Zeroable::init_zeroed()
         })
     }
@@ -1286,6 +1218,9 @@ fn new(target: GspDmaTarget, libos_addr: u64) -> impl Init<Self> {
 
 pub(crate) type GspFmcBootParams = bindings::GSP_FMC_BOOT_PARAMS;
 
+/// Magic value opening the ABI-stable `GSP_FMC_BOOT_PARAMS` header: `"FMC "` in ASCII.
+const GSP_FMC_BOOT_PARAMS_MAGIC: u32 = 0x2043_4d46;
+
 // SAFETY: Padding is explicit and will not contain uninitialized data.
 unsafe impl AsBytes for GspFmcBootParams {}
 // SAFETY: This struct only contains integer types for which all bit patterns are valid.
@@ -1294,6 +1229,8 @@ unsafe impl FromBytes for GspFmcBootParams {}
 impl GspFmcBootParams {
     pub(crate) fn new(wpr_meta_addr: u64, libos_addr: u64) -> impl Init<Self> {
         let init = init!(Self {
+            magic: GSP_FMC_BOOT_PARAMS_MAGIC,
+            size: cv!(size_of::<Self>()),
             // Blackwell FSP obtains WPR info from other sources, so
             // wprCarveoutOffset and wprCarveoutSize are left zero.
             bootGspRmParams <- GspAcrBootGspRmParams::new(GspDmaTarget::CoherentSystem,
diff --git a/drivers/gpu/nova-core/gsp/fw/commands.rs b/drivers/gpu/nova-core/gsp/fw/commands.rs
index 2dae9f19b6c6..f83a04bc0816 100644
--- a/drivers/gpu/nova-core/gsp/fw/commands.rs
+++ b/drivers/gpu/nova-core/gsp/fw/commands.rs
@@ -38,7 +38,7 @@
     vgpu::VgpuState, //
 };
 
-use super::bindings;
+use super::r570_144 as bindings;
 
 /// Payload of the `GspSetSystemInfo` command.
 #[repr(transparent)]
diff --git a/drivers/gpu/nova-core/gsp/hal.rs b/drivers/gpu/nova-core/gsp/hal.rs
index a0117d6d16a2..caf249f37445 100644
--- a/drivers/gpu/nova-core/gsp/hal.rs
+++ b/drivers/gpu/nova-core/gsp/hal.rs
@@ -46,6 +46,7 @@ fn boot<'gpu>(
     ///
     /// This method is called by the GSP boot code after the GSP is confirmed to be running, and
     /// after the initialization commands have been pushed onto its queue.
+    #[expect(dead_code)]
     fn post_boot(
         &self,
         _gsp: &Gsp<'_>,
diff --git a/drivers/gpu/nova-core/gsp/load_exec.rs b/drivers/gpu/nova-core/gsp/load_exec.rs
index a32b13c361ad..7d379eb13e02 100644
--- a/drivers/gpu/nova-core/gsp/load_exec.rs
+++ b/drivers/gpu/nova-core/gsp/load_exec.rs
@@ -137,7 +137,6 @@ impl GspBootContext<'_, '_> {
     ///
     /// Errors from the handlers and from the resume of GSP-RM are propagated
     /// as-is.
-    #[expect(dead_code)]
     pub(super) fn handle_load_exec_event(
         &self,
         libos_dma_address: DmaAddress,

-- 
2.56.1


  parent reply	other threads:[~2026-12-03 12:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 12:09 [PATCH 00/15] " Alexandre Courbot
2026-12-03 12:09 ` [PATCH 01/15] gpu: nova-core: gsp: nvkv: add const constructor for Key Alexandre Courbot
2026-12-03 12:09 ` [PATCH 02/15] gpu: nova-core: gsp: add the GSP_INIT command and its reply Alexandre Courbot
2026-12-03 12:09 ` [PATCH 03/15] gpu: nova-core: gsp: populate VF information in GSP_INIT Alexandre Courbot
2026-12-03 14:03   ` Maxime Ripard
2026-12-03 12:09 ` [PATCH 04/15] gpu: nova-core: gsp: re-export PowerStateLevel from gsp::commands Alexandre Courbot
2026-12-03 12:09 ` [PATCH 05/15] gpu: nova-core: gsp: add the GSP_SUSPEND request Alexandre Courbot
2026-12-03 12:09 ` [PATCH 06/15] gpu: nova-core: firmware: add the ucodes firmware loader Alexandre Courbot
2026-12-03 12:09 ` [PATCH 07/15] gpu: nova-core: gsp: define GSP_MSG_QUEUE_ELEMENT_SIZE_MAX without bindings Alexandre Courbot
2026-12-03 12:09 ` [PATCH 08/15] gpu: nova-core: fb: increase Blackwell reserved memory sizes for r000 Alexandre Courbot
2026-12-03 12:09 ` [PATCH 09/15] gpu: nova-core: gsp: drain the message queue while waiting for GSP suspend Alexandre Courbot
2026-12-03 12:09 ` [PATCH 10/15] gpu: nova-core: gsp: zero-initialize FMC boot parameter structs Alexandre Courbot
2026-12-03 12:09 ` [PATCH 11/15] gpu: nova-core: firmware: add r000 GSP bindings Alexandre Courbot
2026-12-03 12:09 ` Alexandre Courbot [this message]
2026-12-03 12:09 ` [PATCH 13/15] gpu: nova-core: gsp: delete the GSP sequencer Alexandre Courbot
2026-12-03 12:09 ` [PATCH 14/15] gpu: nova-core: gsp: delete the r570 RPC commands Alexandre Courbot
2026-12-03 12:09 ` [PATCH 15/15] gpu: nova-core: firmware: delete the r570 bindings Alexandre Courbot

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=20261203-b4-r000-switch-v1-12-b1463ec6dae2@nvidia.com \
    --to=acourbot@nvidia.com \
    --cc=a.hindborg@kernel.org \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=alkumar@nvidia.com \
    --cc=apopple@nvidia.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=daniel.almeida@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ecourtney@nvidia.com \
    --cc=gary@garyguo.net \
    --cc=jhubbard@nvidia.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=nova-gpu@lists.linux.dev \
    --cc=ojeda@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=simona@ffwll.ch \
    --cc=skhan@linuxfoundation.org \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=ttabi@nvidia.com \
    --cc=tzimmermann@suse.de \
    --cc=work@onurozkan.dev \
    --cc=zhiw@nvidia.com \
    /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

all inboxes | Powered by JetHome®