[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0a548dc5-72c0-4f73-be0d-808606707924@kernel.org>
Date: Fri, 22 Aug 2025 13:09:53 +0200
From: Danilo Krummrich <dakr@...nel.org>
To: Alice Ryhl <aliceryhl@...gle.com>
Cc: Boris Brezillon <boris.brezillon@...labora.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Daniel Almeida <daniel.almeida@...labora.com>,
Steven Price <steven.price@....com>, Liviu Dudau <liviu.dudau@....com>,
Rob Clark <robin.clark@....qualcomm.com>, Rob Herring <robh@...nel.org>,
Miguel Ojeda <ojeda@...nel.org>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, Benno Lossin <lossin@...nel.org>,
Andreas Hindborg <a.hindborg@...nel.org>, Trevor Gross <tmgross@...ch.edu>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
rust-for-linux@...r.kernel.org
Subject: Re: [PATCH v2 1/3] drm_gem: add mutex to drm_gem_object.gpuva
On 8/22/25 12:57 PM, Alice Ryhl wrote:
> On Fri, Aug 22, 2025 at 11:52:21AM +0200, Boris Brezillon wrote:
>> On Fri, 22 Aug 2025 09:28:24 +0000
>>
>> Maybe it's time we start moving some bits of the gpuva field docs next
>> to the fields they describe:
>>
>> /**
>> * @gpuva: Fields used by GPUVM to manage mappings pointing to this GEM object.
>> */
>> struct {
>> /**
>> * @gpuva.list: list of GPU VAs attached to this GEM object.
>> *
>> * Drivers should lock list accesses with the GEMs &dma_resv lock
>> * (&drm_gem_object.resv) or &drm_gem_object.gpuva.lock if the
>> * list is being updated in places where the resv lock can't be
>> * acquired (fence signalling path).
>> */
>> struct list_head list;
>
> This isn't a new issue, but it's somewhat confusing to call it a list of
> VAs when it's a list of vm_bos.
Yes, I already suggested (don't remember where though) to change the name of the
anonymous accordingly. I think I forgot to rename it back when I introduced
struct drm_gpuvm_bo.
If you want, please add a patch for this in the next version. But it's also fine
to leave as is for your series of course. I can also fix it up. :)
Powered by blists - more mailing lists