]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpu: nova-core: fix layout of NV_PMC_BOOT_0
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 7 May 2025 13:52:33 +0000 (22:52 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 13 May 2025 13:08:57 +0000 (15:08 +0200)
commite4bc82af9e8b095c0f7a5aa9050b780002bd0933
treef8718dc38ead92630518176713e339474773e1f5
parentc3f22262670da259d7cf1fda199d8f06f1d6ff6d
gpu: nova-core: fix layout of NV_PMC_BOOT_0

The layout of NV_PMC_BOOT_0 has two small issues:

- The "chipset" field, while useful to identify a chip, is actually an
  aggregate of two distinct fields named "architecture" and
  "implementation".
- The "architecture" field is split, with its MSB being at a different
  location than the rest of its bits.

Redefine the register layout to match its actual definition as provided
by OpenRM and expose the fully-constructed "architecture" field through
our own "Architecture" type. The "chipset" pseudo-field is also useful
to have, so keep providing it.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250507-nova-frts-v3-6-fcb02749754d@nvidia.com
[ Use Result from kernel::prelude. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/gpu.rs
drivers/gpu/nova-core/regs.rs