]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: falcon: add distinct base address for PFALCON2
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 18 Jul 2025 07:26:21 +0000 (16:26 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Fri, 15 Aug 2025 03:02:56 +0000 (12:02 +0900)
commite617f3a3702ca1ca2a498edbad0b12ceadc27321
treeb8f951c4f649d467f7e4f03200443e201ae9e756
parentaf10924fc471d1c693b8689249f53ea10b0519b7
gpu: nova-core: falcon: add distinct base address for PFALCON2

Falcon engines have two distinct register bases: `PFALCON` and
`PFALCON2`. So far we assumed that `PFALCON2` was located at `PFALCON +
0x1000` because that is the case of most engines, but there are
exceptions (NVDEC uses `0x1c00`).

Fix this shortcoming by leveraging the redesigned relative registers
definitions to assign a distinct `PFalcon2Base` base address to each
falcon engine.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250718-nova-regs-v2-16-7b6a762aa1cd@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/falcon.rs
drivers/gpu/nova-core/falcon/gsp.rs
drivers/gpu/nova-core/falcon/sec2.rs
drivers/gpu/nova-core/regs.rs