]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: register: improve `Debug` implementation
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 18 Jul 2025 07:26:16 +0000 (16:26 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 15 Aug 2025 03:02:56 +0000 (12:02 +0900)
commit6ecd6b73e0845e2a1ba0d4da273c7cc7c21c88db
tree7a9aebe1c22eaf73a3d0d72c3df98896336eccaf
parent7a9cb3dfb07d3e29c0eeebb26b11a34a19a889a4
gpu: nova-core: register: improve `Debug` implementation

Now that we have an internal rule to dispatch field information where
needed, use it to generate a better `Debug` implementation where the raw
hexadecimal value of the register is displayed, as well as the `Debug`
values of its individual fields.

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-11-7b6a762aa1cd@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/regs/macros.rs