mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/11] gpu: nova-core: gsp: preparatory patches for the r000 firmware
@ 2026-11-29 15:10 Alexandre Courbot
  2026-11-29 15:11 ` [PATCH v2 01/11] gpu: nova-core: gsp: add the r000 queue element header Alexandre Courbot
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Alexandre Courbot @ 2026-11-29 15:10 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].

Patches 2 and 3 make the static GPU configuration something the boot
sequence returns, since that is where r000 provides it. Patch 4 adds
the GPU short name and GID to the schema of the GSP_INIT reply, which
is not used yet either.

Patches 5 to 7 prepare the log buffers code for the extra buffers of
r000, without functional change.

Patches 8 to 10 tidy the command queue constants and make the msgq TX
header take its values from the queue layout, without functional
change.

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

There are two runtime changes: patch 3 queries the static configuration
at the end of the boot sequence instead of after it, and patch 11 fails
with ENODATA if the size given by the TLV is zero.

The patches were reworked since v3 (patch 2 also moves the type,
patches 4, 8 and 10 are new, patches 5 to 7 are a split of the log
buffers patch), so Timur's Reviewed-by on v3 is not carried.

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 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

---
Alexandre Courbot (2):
      gpu: nova-core: gsp: cmdq: reduce visibility of gsp-level constants
      gpu: nova-core: gsp: take all the msgq layout values from Cmdq in MsgqTxHeader::new()

John Hubbard (9):
      gpu: nova-core: gsp: add the r000 queue element header
      gpu: nova-core: gsp: rename and move the static configuration type
      gpu: nova-core: gsp: return the static GPU configuration from boot
      gpu: nova-core: gsp: add the short name and GID to the GSP_INIT reply
      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: compute the msgq entry offset in MsgqTxHeader::new()
      gpu: nova-core: firmware: tlv: add method to load the file referenced by a TLV

 drivers/gpu/nova-core/api.rs                     |   8 +-
 drivers/gpu/nova-core/firmware/gsp.rs            |  15 +-
 drivers/gpu/nova-core/firmware/tlv.rs            |  40 ++++-
 drivers/gpu/nova-core/gpu.rs                     |  36 ++--
 drivers/gpu/nova-core/gsp.rs                     |  27 ++-
 drivers/gpu/nova-core/gsp/boot.rs                |  15 +-
 drivers/gpu/nova-core/gsp/cmdq.rs                |  27 +--
 drivers/gpu/nova-core/gsp/commands.rs            |  70 ++++++++
 drivers/gpu/nova-core/gsp/commands/rpc.rs        |  68 +-------
 drivers/gpu/nova-core/gsp/fw.rs                  | 210 +++++++++++++++++++++--
 drivers/gpu/nova-core/gsp/fw/commands.rs         |  23 +--
 drivers/gpu/nova-core/gsp/fw/r000_00/bindings.rs |  97 +++++++++++
 drivers/gpu/nova-core/gsp/logbuffer.rs           |  78 +++++++--
 drivers/gpu/nova-core/mctp.rs                    |  27 ++-
 14 files changed, 566 insertions(+), 175 deletions(-)
---
base-commit: abfb640b2374e26de8ff81d488c39d8254db538e
change-id: 20261127-nova-r000-staging-905c7f559e47

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


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

end of thread, other threads:[~2026-11-29 15:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 15:10 [PATCH v2 00/11] gpu: nova-core: gsp: preparatory patches for the r000 firmware Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 01/11] gpu: nova-core: gsp: add the r000 queue element header Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 02/11] gpu: nova-core: gsp: rename and move the static configuration type Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 03/11] gpu: nova-core: gsp: return the static GPU configuration from boot Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 04/11] gpu: nova-core: gsp: add the short name and GID to the GSP_INIT reply Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 05/11] gpu: nova-core: gsp: logbuffer: add LogBuffers::init_arguments() Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 06/11] gpu: nova-core: gsp: logbuffer: make LogBuffer generic over its size Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 07/11] gpu: nova-core: gsp: logbuffer: add RetainedLogBuffers::is_empty() Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 08/11] gpu: nova-core: gsp: cmdq: reduce visibility of gsp-level constants Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 09/11] gpu: nova-core: gsp: compute the msgq entry offset in MsgqTxHeader::new() Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 10/11] gpu: nova-core: gsp: take all the msgq layout values from Cmdq " Alexandre Courbot
2026-11-29 15:11 ` [PATCH v2 11/11] gpu: nova-core: firmware: tlv: add method to load the file referenced by a TLV Alexandre Courbot

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®