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

Signed-off-by: Alexandre Courbot <[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,
--  
Alexandre Courbot <[email protected]>

Reply via email to