Re: [PATCH v4 11/13] gpu: nova-core: gsp: pass GspBootContext mutably

From: Eliot Courtney

Date: Wed Jul 01 2026 - 02:40:26 EST


On Mon Jun 29, 2026 at 11:09 PM JST, Alexandre Courbot wrote:
> We want to move the `Fsp` instance into `Gpu`, which will require
> passing it as a mutable reference in `GspBootContext`, since
> `Fsp::boot_fmc` is a mutable method. In order to use the mutable
> references it contains, `GspBootContext` must also be mutable.
>
> We will also follow up by making some methods of the `Falcon`s mutable,
> which also requires passing them as mutable references.
>
> Thus, make the `GspBootContext` passed to `Gsp::boot` and `Gsp::unload`
> mutable, and pass mutable references to it to the GSP boot HAL methods.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---

Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>