From: "Gary Guo" <gary@garyguo.net>
To: "Danilo Krummrich" <dakr@kernel.org>, <acourbot@nvidia.com>
Cc: <nova-gpu@lists.linux.dev>, <dri-devel@lists.freedesktop.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] gpu: nova-core: mm: move TLB register access behind the mutex
Date: Thu, 03 Dec 2026 22:13:17 +0000 [thread overview]
Message-ID: <DNBFYSV4GLT2.1FCAE4NGEB1UF@garyguo.net> (raw)
In-Reply-To: <20261203215019.2870117-2-dakr@kernel.org>
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@kernel.org>
The use of existential lifetime here looks okay to me.
Acked-by: Gary Guo <gary@garyguo.net>
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@kernel.org/)
Best,
Gary
> ---
> drivers/gpu/nova-core/mm/tlb.rs | 70 ++++++++++++++++++---------------
> 1 file changed, 39 insertions(+), 31 deletions(-)
next prev parent reply other threads:[~2026-12-03 22:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 21:50 [PATCH 1/2] gpu: nova-core: mm: document fence signalling lock dependencies Danilo Krummrich
2026-12-03 21:50 ` [PATCH 2/2] gpu: nova-core: mm: move TLB register access behind the mutex Danilo Krummrich
2026-12-03 22:13 ` Gary Guo [this message]
2026-12-03 22:13 ` [PATCH 1/2] gpu: nova-core: mm: document fence signalling lock dependencies Gary Guo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNBFYSV4GLT2.1FCAE4NGEB1UF@garyguo.net \
--to=gary@garyguo.net \
--cc=acourbot@nvidia.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nova-gpu@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®