Re: [PATCH v2 3/3] gpu: nova-core: use cv! for constant casts

From: Gary Guo

Date: Tue Sep 01 2026 - 07:56:47 EST


On Tue Sep 1, 2026 at 6:06 AM BST, Eliot Courtney wrote:
> The new `cv!` macro allows safe casting of constant expressions in a
> const context. Update code in nova-core to use it.
>
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>

I like the ergnomics improvement :)

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> drivers/gpu/nova-core/falcon.rs | 9 ++--
> drivers/gpu/nova-core/fb/hal/gb100.rs | 4 +-
> drivers/gpu/nova-core/firmware/fwsec/bootloader.rs | 7 +--
> drivers/gpu/nova-core/fsp.rs | 3 +-
> drivers/gpu/nova-core/gsp/cmdq.rs | 6 +--
> drivers/gpu/nova-core/gsp/fw.rs | 38 +++++++--------
> drivers/gpu/nova-core/gsp/fw/commands.rs | 2 +-
> drivers/gpu/nova-core/num.rs | 55 +---------------------
> 8 files changed, 28 insertions(+), 96 deletions(-)