Re: [PATCH 12/14] gpu: nova-core: gsp: add the r000 load-and-execute HS binary handler
From: Alexandre Courbot
Date: Tue Dec 01 2026 - 09:41:13 EST
On Mon Nov 30, 2026 at 6:28 PM JST, Eliot Courtney wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> The GSP falcon is a microcontroller with two cores, a falcon core and a
> RISC-V core, and only one of the two is active at a time. GSP-RM runs on
> the RISC-V core.
>
> On GA102 and later, the r000 GSP-RM requires a Heavy-Secured (HS) binary
> to run on the falcon core during boot. GSP-RM is suspended while the
> binary runs.
>
> The driver runs the binary on behalf of GSP-RM, in the following steps:
>
> 1. GSP-RM places the binary in the framebuffer.
> 2. GSP-RM raises a load-and-execute event.
> 3. GSP-RM suspends the RISC-V core.
> 4. The driver waits until the RISC-V core is suspended.
> 5. The driver resets the GSP falcon, which selects the falcon core.
> 6. The driver loads the binary from the framebuffer into the GSP falcon.
> 7. The driver starts the binary and waits for the falcon core to halt.
> 8. The driver resumes GSP-RM on the RISC-V core.
>
> Nova-core has no handler for the load-and-execute event.
>
> Add the handler, which performs steps 4 through 8.
>
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> [ecourtney: boot HS binary with `Falcon::boot()`, keeping `dma_wr()` private]
> [ecourtney: zerocopy derives for `HsBinaryParams`, no `unsafe impl`]
> [ecourtney: move MAILBOX0 check and resume to `handle_load_exec_event()`]
> [ecourtney: module doc's FBIF sentence moved here from the bootloader patch]
> [ecourtney: move some methods to be impls of `GspBootContext`]
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
Neat, especially the fact this now implements `FalconFirmware`!
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>