Skip to content

gpu: nova-core: complete conversion to kernel `num` module

Alexandre Courbot dri-devel lkml nova-gpu rust-for-linux 1 version In review

Get series with b4
b4 am [email protected] change-id 20260828-nova_num-64e1b2e84f77

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpu: nova-core: use kernel lossless integer conversion moduledrivers/gpu/nova-core/falcon.rs drivers/gpu/nova-core/falcon/fsp.rs drivers/gpu/nova-core/fb.rs +16 more+78 -2837 replies
2/2gpu: nova-core: use FromSafeCast wherever possibledrivers/gpu/nova-core/falcon/fsp.rs drivers/gpu/nova-core/firmware/tlv.rs drivers/gpu/nova-core/gsp.rs +2 more+21 -181 reply

Reviews trailers per patch

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

PatchDanilo KrummrichEliot Courtney
1/2R-b R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] gpu: nova-core: complete conversion to kernel `num` module

This is extracted from the now-defunct const_as series [1] and does the groundwork required to eventually convert nova-core to use the cv! macro [2].

Patch 1 does the minimum necessary to convert nova-core to the kernel's num module and removes its local copy. Patch 2 broadens the use of FromSafeCast to avoid having to refer the casts module at every conversion. After it, the only references left to casts are the conversions done in const context, that will eventually be replaced by the cv! macro.

This series is based on master and should be mergeable after -rc1 has been tagged.

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

---
Alexandre Courbot (2):
gpu: nova-core: use kernel lossless integer conversion module
gpu: nova-core: use FromSafeCast wherever possible

 drivers/gpu/nova-core/falcon.rs                    |  12 +-
 drivers/gpu/nova-core/falcon/fsp.rs                |   4 +-
 drivers/gpu/nova-core/fb.rs                        |   2 +-
 drivers/gpu/nova-core/fb/hal/gb100.rs              |   6 +-
 drivers/gpu/nova-core/firmware.rs                  |   4 +-
 drivers/gpu/nova-core/firmware/booter.rs           |   4 +-
 drivers/gpu/nova-core/firmware/fwsec.rs            |   2 +-
 drivers/gpu/nova-core/firmware/fwsec/bootloader.rs |   4 +-
 drivers/gpu/nova-core/firmware/gsp.rs              |   9 +-
 drivers/gpu/nova-core/firmware/tlv.rs              |  11 +-
 drivers/gpu/nova-core/fsp.rs                       |   8 +-
 drivers/gpu/nova-core/gsp.rs                       |   4 +-
 drivers/gpu/nova-core/gsp/cmdq.rs                  |  25 +--
 drivers/gpu/nova-core/gsp/fw.rs                    |  42 ++--
 drivers/gpu/nova-core/gsp/fw/commands.rs           |   4 +-
 drivers/gpu/nova-core/gsp/sequencer.rs             |   2 +-
 drivers/gpu/nova-core/mctp.rs                      |   8 +-
 drivers/gpu/nova-core/num.rs                       | 211 ---------------------
 drivers/gpu/nova-core/vbios.rs                     |   2 +-
 19 files changed, 81 insertions(+), 283 deletions(-)

---
base-commit: 1b78070aaef63512688aebfbc82365ef9d6660f1
change-id: 20260828-nova_num-64e1b2e84f77

Best regards,

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