Re: [PATCH v5 01/11] gpu: nova-core: Add public driver API to nova-core
From: Danilo Krummrich
Date: Tue Sep 01 2026 - 05:23:17 EST
On Tue Sep 1, 2026 at 11:13 AM CEST, Alistair Popple wrote:
> Reason it compiles is because the the Gsp has no lifetime parameter in the chain
> to the mutex:
>
> Gpu<'a> -> GspResources<'a> -> Gsp -> Cmdq -> Mutex<CmdqInner>
Ah, that's on me then, I applied [1] before your series.
In any case, I think we should not write all the code assuming covariance
regardless. Once we do some more series stuff in nova-drm, we will need more
locks in nova-core around types that carry device resources.
[1] https://lore.kernel.org/driver-core/20260830193824.471089-1-dakr@xxxxxxxxxx/