NVIDIA GPU driver infrastructure
 help / color / mirror / Atom feed
* [PATCH v4 0/6] gpu: nova-core: gsp: preparatory patches for the r000 firmware
@ 2026-12-01  8:15 Alexandre Courbot
  2026-12-01  8:15 ` [PATCH v4 1/6] gpu: nova-core: gsp: add the r000 queue element header Alexandre Courbot
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Alexandre Courbot @ 2026-12-01  8:15 UTC (permalink / raw)
  To: Danilo Krummrich, Alice Ryhl, David Airlie, Simona Vetter
  Cc: John Hubbard, Alistair Popple, Timur Tabi, Eliot Courtney,
	Zhi Wang, nova-gpu, dri-devel, linux-kernel, Alexandre Courbot

These patches come from John's series switching nova-core to the r000
GSP firmware [1]. They do not depend on the switch itself, and both the
rest of the r000 work and the vGPU series build on them, so I would
like to get them in soon.

Patch 1 adds the r000 queue element header. It has no user yet and was
previously posted on its own [2].

Patch 2 moves the loading of the file referenced by a TLV into the TLV
parser, so the r000 ucodes loader can use it.

Patches 3 to 5 prepare the log buffers code for the extra buffers of
r000, without functional change. Patch 6 adds the LIBOS3 log buffers and
the state monitor buffer. These buffers are valid for r570, which still
boots with them.

Based on drm-rust-next.

[1] https://lore.kernel.org/20260918010719.1176945-1-jhubbard@nvidia.com
[2] https://lore.kernel.org/20261117-msgelement-v1-1-b918ffae5e7b@nvidia.com

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
Changes in v4:
- Rebase on drm-rust-next, dropping the 6 applied patches.
- Move the TLV loading patch before the log buffer patches.
- Add patch 6 (LIBOS3 log buffers and state monitor buffer).
- Link to v3: https://patch.msgid.link/20261130-nova-r000-staging-v3-0-55aceca8e958@nvidia.com

Changes in v3:
- Move MCTP_MAGIC to an associated const. (Eliot)
- Drop unneeded `#[allow(dead_code)]`. (Eliot)
- Use `assert` instead of `static_assert` in const block. (Eliot)
- Use `from_safe_cast` instead of `u32_as_usize`.
- Avoid unneeded saturating add. (Eliot)
- Remove unneeded `u32::from`. (Eliot)
- Convert `core::result::Result` to just `Result` when moving code. (Eliot)
- Use writer to write the init arguments. (Eliot)
- Deconstruct `self` in `is_empty`. (Eliot)
- Remove unneeded `map_err` in the TLV code. (Eliot)
- Link to v2: https://patch.msgid.link/20261130-nova-r000-staging-v2-0-afd079026a61@nvidia.com

Changes in v2:
- Use an anonymous const for the queue element header checks. (Gary)
- Import offset_of for the queue element header checks. (Gary)
- Derive the zerocopy traits on the queue element header. (Gary)
- Add patches 5 to 11 (log buffers, msgq TX header, TLV loading).
- Use the defined constants in more places on patch 4.
- Link to v1: https://patch.msgid.link/20261127-nova-r000-staging-v1-0-4eaf6e3c0942@nvidia.com

---
John Hubbard (6):
      gpu: nova-core: gsp: add the r000 queue element header
      gpu: nova-core: firmware: tlv: add method to load the file referenced by a TLV
      gpu: nova-core: gsp: logbuffer: add LogBuffers::init_arguments()
      gpu: nova-core: gsp: logbuffer: make LogBuffer generic over its size
      gpu: nova-core: gsp: logbuffer: add RetainedLogBuffers::is_empty()
      gpu: nova-core: gsp: logbuffer: add LIBOS3 log buffers and state monitor buffer

 drivers/gpu/nova-core/firmware/gsp.rs            |  15 +-
 drivers/gpu/nova-core/firmware/tlv.rs            |  40 ++++-
 drivers/gpu/nova-core/gsp.rs                     |  60 +++++---
 drivers/gpu/nova-core/gsp/fw.rs                  | 177 ++++++++++++++++++++++-
 drivers/gpu/nova-core/gsp/fw/r000_00/bindings.rs |  97 +++++++++++++
 drivers/gpu/nova-core/gsp/logbuffer.rs           | 127 ++++++++++++++--
 drivers/gpu/nova-core/mctp.rs                    |  27 +++-
 7 files changed, 489 insertions(+), 54 deletions(-)
---
base-commit: 3adb5e862907afa3d6793e06b882937cce33e6d0
change-id: 20261127-nova-r000-staging-905c7f559e47

Best regards,
--  
Alexandre Courbot <acourbot@nvidia.com>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-01  8:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  8:15 [PATCH v4 0/6] gpu: nova-core: gsp: preparatory patches for the r000 firmware Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 1/6] gpu: nova-core: gsp: add the r000 queue element header Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 2/6] gpu: nova-core: firmware: tlv: add method to load the file referenced by a TLV Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 3/6] gpu: nova-core: gsp: logbuffer: add LogBuffers::init_arguments() Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 4/6] gpu: nova-core: gsp: logbuffer: make LogBuffer generic over its size Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 5/6] gpu: nova-core: gsp: logbuffer: add RetainedLogBuffers::is_empty() Alexandre Courbot
2026-12-01  8:15 ` [PATCH v4 6/6] gpu: nova-core: gsp: logbuffer: add LIBOS3 log buffers and state monitor buffer Alexandre Courbot
2026-12-01  8:48   ` Eliot Courtney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox