gpu: nova-core: extract FWSEC from BIOS and patch it to run FWSEC-FRTS
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:24:06 +0000 (22:24 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 20:03:09 +0000 (22:03 +0200)
commit31f0feefb49a219687a1233e68146db834417d75
tree6475f1eed9a225f5606afadc54bb8012c79205c2
parent436884511d54b8a090fe2886d48f72143ce95b67
gpu: nova-core: extract FWSEC from BIOS and patch it to run FWSEC-FRTS

The FWSEC firmware needs to be extracted from the VBIOS and patched with
the desired command, as well as the right signature. Do this so we are
ready to load and run this firmware into the GSP falcon and create the
FRTS region.

[joelagnelf@nvidia.com: give better names to FalconAppifHdrV1's fields]

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-22-ecf41ef99252@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/dma.rs
drivers/gpu/nova-core/firmware.rs
drivers/gpu/nova-core/firmware/fwsec.rs [new file with mode: 0644]
drivers/gpu/nova-core/gpu.rs
drivers/gpu/nova-core/vbios.rs