Skip to content

gpu: nova-core: convert to kernel bitfield macro and remove local variant

Alexandre Courbot dri-devel lkml nova-gpu rust-for-linux 2 versions – Applied

Status from this message: Pushed to `drm-rust-next`, thanks!

Get series with b4
b4 am [email protected] change-id 20260617-nova-bitfield-be4bbb298a00

Versions newest first

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Log all invalid NVDM command types, as was done pre-conversion.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2gpu: nova-core: convert to kernel bitfield macrodrivers/gpu/nova-core/fsp.rs drivers/gpu/nova-core/gsp/fw.rs drivers/gpu/nova-core/mctp.rs +1 more+51 -520 replies
2/2gpu: nova-core: remove local bitfield macrodrivers/gpu/nova-core/bitfield.rs+0 -3290 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEliot CourtneyDanilo Krummrich
1/2R-b A-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] gpu: nova-core: convert to kernel bitfield macro and remove local variant

Now that the kernel-wide bitfield macro is available, it is time for the Nova-local version to be removed.

The first patch converts all uses of the local macro to the global one. This involves redefining all bitfields since the syntax has changed, and taking into account the use of Bounded.

The second patch removes the now unused Nova-local bitfield macro.

This is a follow-up to [1] containing the Nova patches that have been dropped after [2].

This series applies on top of drm-rust-next. Since it has been reviewed/acked I am planning on merging it soon; this revision is mostly to address the Sashiko feedback of v1.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

---
Changes in v2:
- Log all invalid NVDM command types, as was done pre-conversion.
- Link to v1: https://patch.msgid.link/[email protected]

---
Alexandre Courbot (2):
gpu: nova-core: convert to kernel bitfield macro
gpu: nova-core: remove local bitfield macro

 drivers/gpu/nova-core/bitfield.rs  | 329 -------------------------------------
 drivers/gpu/nova-core/fsp.rs       |   3 +-
 drivers/gpu/nova-core/gsp/fw.rs    |  11 +-
 drivers/gpu/nova-core/mctp.rs      |  86 +++++-----
 drivers/gpu/nova-core/nova_core.rs |   3 -
 5 files changed, 51 insertions(+), 381 deletions(-)

---
base-commit: 431f10ba13a964c146ae05728e42e4074bf735ab
change-id: 20260617-nova-bitfield-be4bbb298a00

Best regards,

Signature · 1 line
Alexandre Courbot <[email protected]>