]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: firmware: process the GSP bootloader
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 13 Sep 2025 14:12:21 +0000 (23:12 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Sat, 13 Sep 2025 14:17:42 +0000 (23:17 +0900)
commit015b1d36505a1ad6830dc2ead65db2d36a209c23
treea7cf147732880c47d1c199bea7198b40928091ad
parenta841614e607c9e232dd56ec726ba63d2750025a2
gpu: nova-core: firmware: process the GSP bootloader

The GSP bootloader is a small RISC-V firmware that is loaded by Booter
onto the GSP core and is in charge of loading, validating, and starting
the actual GSP firmware.

It is a regular binary firmware file containing a specific header.
Create a type holding the DMA-mapped firmware as well as useful
information extracted from the header, and hook it into our firmware
structure for later use.

The GSP bootloader is stored into the `GspFirmware` structure, since it
is part of the GSP firmware package. This makes the `Firmware` structure
empty, so remove it.

Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250913-nova_firmware-v6-8-9007079548b0@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/firmware.rs
drivers/gpu/nova-core/firmware/gsp.rs
drivers/gpu/nova-core/firmware/riscv.rs [new file with mode: 0644]
drivers/gpu/nova-core/gpu.rs