]> git.ipfire.org Git - thirdparty/linux.git/commit
gpu: nova-core: add falcon register definitions and base code
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:59 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 17:57:43 +0000 (19:57 +0200)
commit69f5cd67ce41ba128d3df18137c7a93a1faa84da
tree5eaba4f096320107744a694690f738ded65d51c9
parent6554ad65b5891e52689061606e277a69e44462c4
gpu: nova-core: add falcon register definitions and base code

Booting the GSP on Ampere requires an intricate dance between the GSP
and SEC2 falcons, where the GSP starts by running the FWSEC firmware to
create the WPR2 region , and then SEC2 loads the actual RISC-V firmware
into the GSP.

Add the common Falcon code and HAL for Ampere GPUs, and instantiate the
GSP and SEC2 Falcons that will be required to perform that dance and
boot the GSP.

Thanks to Ben Skeggs for pointing out an important bug in the memory
scrubbing code that could lead to a race condition and ultimately a
failure 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-15-ecf41ef99252@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/falcon.rs [new file with mode: 0644]
drivers/gpu/nova-core/falcon/gsp.rs [new file with mode: 0644]
drivers/gpu/nova-core/falcon/hal.rs [new file with mode: 0644]
drivers/gpu/nova-core/falcon/hal/ga102.rs [new file with mode: 0644]
drivers/gpu/nova-core/falcon/sec2.rs [new file with mode: 0644]
drivers/gpu/nova-core/gpu.rs
drivers/gpu/nova-core/nova_core.rs
drivers/gpu/nova-core/regs.rs