]> Gentwo Git Trees - linux/.git/commit
gpu: nova-core: register: generate correct `Default` implementation
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 18 Jul 2025 07:26:17 +0000 (16:26 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 15 Aug 2025 03:02:56 +0000 (12:02 +0900)
commit3fa145bef533f899ed6de641fe99c70028e28481
tree95502605dac7febd3f94fb110865046a8484a608
parent6ecd6b73e0845e2a1ba0d4da273c7cc7c21c88db
gpu: nova-core: register: generate correct `Default` implementation

The `Default` implementation of a register should be the aggregate of
the default values of all its fields, and not simply be zeroed.

Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250718-nova-regs-v2-12-7b6a762aa1cd@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/regs/macros.rs