Rust for Linux List
 help / color / mirror / Atom feed
* [PATCH 00/15] gpu: nova-core: switch to the r000 GSP firmware
@ 2026-12-03 12:09 Alexandre Courbot
  2026-12-03 12:09 ` [PATCH 01/15] gpu: nova-core: gsp: nvkv: add const constructor for Key Alexandre Courbot
                   ` (14 more replies)
  0 siblings, 15 replies; 19+ messages in thread
From: Alexandre Courbot @ 2026-12-03 12:09 UTC (permalink / raw)
  To: Danilo Krummrich, Alice Ryhl, David Airlie, Simona Vetter,
	Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Andreas Hindborg, Trevor Gross, Daniel Almeida,
	Tamir Duberstein, Onur Özkan, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Jonathan Corbet, Shuah Khan,
	Randy Dunlap
  Cc: John Hubbard, Alistair Popple, Timur Tabi, Eliot Courtney,
	Zhi Wang, Alok Kumar, nova-gpu, dri-devel, rust-for-linux,
	linux-doc, linux-kernel, Alexandre Courbot

This series completes the work started from John's r000 series [1] and
switches nova-core from the r570 GSP firmware to the ABI-stable r000
firmware interface (used by OpenRM 6xx and later).

Because the driver boots a single firmware format, the incompatible
parts of the protocol (queue pointers in BAR0 registers, MCTP/NVDM
element headers, GSP_INIT/GSP_SUSPEND GMC commands, load-and-execute
events, ucodes and state monitor buffers) must switch together. To keep
that switch commit as small and reviewable as possible, everything that
can either run on r570 or be compiled ahead of time is landed first, and
the removal of r570-only code is performed in follow-up patches:

- Patches 1-6 add the remaining r000 building blocks (GSP_INIT with
  SR-IOV VF info, GSP_SUSPEND, and the ucodes loader).
- Patches 7-11 prepare existing code and bindings for the switch while
  remaining compatible with r570.
- Patch 12 performs the atomic switch to the r000 GSP firmware.
- Patches 13-15 delete the now-unused r570 code (GSP sequencer, r570 RPC
  commands, and r570 bindings).

The tree right before patch 12 has been tested to boot on r570, and
patch 12 onwards has been tested to boot on r615 across Turing, Ampere,
and Blackwell.

Based on drm-rust-next.

[1] https://lore.kernel.org/20260918010719.1176945-1-jhubbard@nvidia.com

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
Alexandre Courbot (3):
      gpu: nova-core: gsp: nvkv: add const constructor for Key
      gpu: nova-core: gsp: re-export PowerStateLevel from gsp::commands
      gpu: nova-core: gsp: zero-initialize FMC boot parameter structs

John Hubbard (11):
      gpu: nova-core: gsp: add the GSP_INIT command and its reply
      gpu: nova-core: gsp: add the GSP_SUSPEND request
      gpu: nova-core: firmware: add the ucodes firmware loader
      gpu: nova-core: gsp: define GSP_MSG_QUEUE_ELEMENT_SIZE_MAX without bindings
      gpu: nova-core: fb: increase Blackwell reserved memory sizes for r000
      gpu: nova-core: gsp: drain the message queue while waiting for GSP suspend
      gpu: nova-core: firmware: add r000 GSP bindings
      gpu: nova-core: switch to the r000 GSP firmware
      gpu: nova-core: gsp: delete the GSP sequencer
      gpu: nova-core: gsp: delete the r570 RPC commands
      gpu: nova-core: firmware: delete the r570 bindings

Zhi Wang (1):
      gpu: nova-core: gsp: populate VF information in GSP_INIT

 Documentation/gpu/nova/core/falcon.rst             |    2 +-
 Documentation/gpu/nova/core/interrupts.rst         |   30 +-
 drivers/gpu/nova-core/fb/hal/gb100.rs              |   23 +-
 drivers/gpu/nova-core/fb/hal/gb202.rs              |    4 +-
 drivers/gpu/nova-core/firmware.rs                  |    7 +-
 drivers/gpu/nova-core/firmware/ucodes.rs           |   65 ++
 drivers/gpu/nova-core/fsp.rs                       |    3 +-
 drivers/gpu/nova-core/gsp.rs                       |    9 +-
 drivers/gpu/nova-core/gsp/boot.rs                  |   72 +-
 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              |    7 +-
 drivers/gpu/nova-core/gsp/commands/gmc.rs          |  174 ++++
 drivers/gpu/nova-core/gsp/commands/rpc.rs          |  284 ------
 drivers/gpu/nova-core/gsp/fw.rs                    |  530 ++--------
 drivers/gpu/nova-core/gsp/fw/commands.rs           |  473 ++++-----
 drivers/gpu/nova-core/gsp/fw/r000_00/bindings.rs   |  385 +++++++
 drivers/gpu/nova-core/gsp/fw/r570_144.rs           |   31 -
 drivers/gpu/nova-core/gsp/fw/r570_144/bindings.rs  | 1060 --------------------
 drivers/gpu/nova-core/gsp/hal.rs                   |   13 -
 drivers/gpu/nova-core/gsp/hal/tu102.rs             |   12 -
 drivers/gpu/nova-core/gsp/load_exec.rs             |    1 -
 drivers/gpu/nova-core/gsp/nvkv.rs                  |    9 +-
 drivers/gpu/nova-core/gsp/sequencer.rs             |  353 -------
 drivers/gpu/nova-core/sbuffer.rs                   |    1 +
 27 files changed, 1266 insertions(+), 2721 deletions(-)
---
base-commit: d9da44362d77bcbf1f5bfd2ba1c514e776fdb07c
change-id: 20261202-b4-r000-switch-c9c3cd685b09

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


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

end of thread, other threads:[~2026-12-03 14:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 12:09 [PATCH 00/15] gpu: nova-core: switch to the r000 GSP firmware 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 14:32     ` Miguel Ojeda
2026-12-03 14:38       ` 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 ` [PATCH 12/15] gpu: nova-core: switch to the r000 GSP firmware Alexandre Courbot
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

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