Re: [PATCH 2/2] gpu: nova-core: mm: move TLB register access behind the mutex
From: Gary Guo
Date: Thu Dec 03 2026 - 17:13:25 EST
On Thu Dec 3, 2026 at 9:50 PM GMT, Danilo Krummrich wrote:
> Store the BAR reference in the TLB mutex and use a with_bar_locked()
> helper to serialize register access. This makes the locking requirement
> more explicit (e.g. when adding operations such as fault replay and
> cancellation).
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
The use of existential lifetime here looks okay to me.
Acked-by: Gary Guo <gary@xxxxxxxxxxx>
Please have Benno and me is the cc for use of "advanced feature of pin-init"
because we're keeping an eye on it's been used in the kernel. (As mentioned in
my PR to Miguel
https://lore.kernel.org/rust-for-linux/20261012184429.1613374-1-gary@xxxxxxxxxx/)
Best,
Gary
> ---
> drivers/gpu/nova-core/mm/tlb.rs | 70 ++++++++++++++++++---------------
> 1 file changed, 39 insertions(+), 31 deletions(-)