On Wed Dec 2, 2026 at 9:06 PM JST, Eliot Courtney wrote: > From: John Hubbard <[email protected]> > > On Turing and GA100, the r000 GSP-RM requires an image to run on the > falcon core during boot, through the generic falcon bootloader. GSP-RM > is suspended while the image runs. > > The driver runs the image on behalf of GSP-RM, in the following steps: > > 1. GSP-RM raises a load-and-execute event, which carries a descriptor of > the image. > 2. GSP-RM suspends the RISC-V core. > 3. The driver waits until the RISC-V core is suspended. > 4. The driver resets the GSP falcon, which selects the falcon core. > 5. The driver loads the bootloader and the descriptor into the GSP > falcon. > 6. The driver starts the bootloader, which loads the image and starts > it. > 7. The driver 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 bootloader's load-and-execute event. > > Add the handler, which performs steps 3 through 8. > > Co-developed-by: Alexandre Courbot <[email protected]> > Signed-off-by: Alexandre Courbot <[email protected]> > Signed-off-by: John Hubbard <[email protected]> > [ecourtney: zerocopy derives for `GenericBootloaderParams`, no `unsafe impl`] > [ecourtney: derive `FromBytes` for `BootloaderDmemDescV2`, no `unsafe impl`] > [ecourtney: move MAILBOX0 check and resume to `handle_load_exec_event()`] > [ecourtney: module doc's FBIF sentence moved to the HS binary patch] > [ecourtney: move some methods to be impls of `GspBootContext`] > [ecourtney: load the generic bootloader in the handler, don't pass it in] > Signed-off-by: Eliot Courtney <[email protected]>
Reviewed-by: Alexandre Courbot <[email protected]> (dropping my Co-developed-by as I'm not sure I actually contributed much to this one)
