gpu: nova-core: vbios: Add support for FWSEC ucode extraction
authorJoel Fernandes <joelagnelf@nvidia.com>
Thu, 19 Jun 2025 13:24:03 +0000 (22:24 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 19:52:48 +0000 (21:52 +0200)
commit47c4846e4319503e9cd0bd0922facd0fb1e383d0
tree9357055f2c76c3a0ab346d578ef725b87cf31702
parentdc70c6ae2441c8ab5438331b2430ec098fdd94bb
gpu: nova-core: vbios: Add support for FWSEC ucode extraction

Using the support for navigating the VBIOS, add support to extract vBIOS
ucode data required for GSP to boot. The main data extracted from the
vBIOS is the FWSEC-FRTS firmware which runs on the GSP processor. This
firmware runs in high secure mode, and sets up the WPR2 (Write protected
region) before the Booter runs on the SEC2 processor.

Tested on my Ampere GA102 and boot is successful.

Cc: Alexandre Courbot <acourbot@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Shirish Baskaran <sbaskaran@nvidia.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Timur Tabi <ttabi@nvidia.com>
Cc: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
[ acourbot@nvidia.com: remove now-unneeded Devres acquisition ]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-19-ecf41ef99252@nvidia.com
[ Re-format and use markdown in comments. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/firmware.rs
drivers/gpu/nova-core/vbios.rs