Re: [PATCH v2 7/7] gpu: nova-core: gsp: add the load-and-execute event dispatcher

From: Alexandre Courbot

Date: Thu Dec 03 2026 - 05:40:33 EST


On Wed Dec 2, 2026 at 9:06 PM JST, Eliot Courtney wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> The two load-and-execute events of the r000 boot protocol arrive as GMC
> events, and the command ID of a GMC event names its kind. Nova-core has
> a handler for each of the two events, and no code that selects the
> handler from the command ID.
>
> Add a dispatcher that selects the handler from the command ID of a GMC
> event, decodes the payload of the event into the parameters of that
> handler, and rejects an event with any other command ID.
>
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> [ecourtney: check MAILBOX0 and call `resume_gsp_rm()` here, for both events]
> [ecourtney: return EIO without resuming if MAILBOX0 != FLCN_OK]
> [ecourtney: move to `GspBootContext::handle_load_exec_event()`]
> [ecourtney: drop `bootloader` param, loaded in handler]
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>

Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

(dropping my Co-developed-by as I'm not sure I actually contributed much
to this one)