gpu: nova-core: compute layout of the FRTS region
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:24:04 +0000 (22:24 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 19:56:35 +0000 (21:56 +0200)
commit80213934d00fe09d9dcef3d6f17250be131435aa
tree6611f2413ab4327fea55883c59643baf6bcd6e9d
parent47c4846e4319503e9cd0bd0922facd0fb1e383d0
gpu: nova-core: compute layout of the FRTS region

FWSEC-FRTS is run with the desired address of the FRTS region as
parameter, which we need to compute depending on some hardware
parameters.

Do this in a `FbLayout` structure, that will be later extended to
describe more memory regions used to boot the GSP.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-20-ecf41ef99252@nvidia.com
[ In doc-comment of FbLayout s/bootup process/boot process/ - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/fb.rs
drivers/gpu/nova-core/fb/hal.rs
drivers/gpu/nova-core/fb/hal/ga100.rs
drivers/gpu/nova-core/fb/hal/ga102.rs [new file with mode: 0644]
drivers/gpu/nova-core/fb/hal/tu102.rs
drivers/gpu/nova-core/gpu.rs
drivers/gpu/nova-core/regs.rs