Re: [PATCH v4 12/13] gpu: nova-core: gsp: separate context and GPU lifetimes in GspBootContext

"Eliot Courtney" <[email protected]>
Newsgroups dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux
Message-ID <[email protected]>
On Mon Jun 29, 2026 at 11:09 PM JST, Alexandre Courbot wrote:
> `Falcon` instances retain references tied to the lifetime of the bound
> GPU. `GspBootContext` currently uses that same lifetime for its own
> borrows of the `Falcon` instances and other references.
>
> But these lifetimes are independent: the references captured by a
> `Falcon` remain valid for the GPU lifetime, while the context only
> borrows the `Falcon` for the duration of a boot or unload operation.
> This distinction is hidden for shared references by covariance, but
> cannot be ignored anymore if the context carries mutable references to
> GPU subdevices, as will happen for the `Fsp` and the `Falcon`s.
>
> Thus, give `GspBootContext` separate lifetimes for its subdevice borrows
> and the GPU resources captured by those subdevices, and update its users
> accordingly.
>
> Signed-off-by: Alexandre Courbot <[email protected]>
> ---

Reviewed-by: Eliot Courtney <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.