From: Danilo Krummrich <dakr@redhat.com>
To: Donald Robson <Donald.Robson@imgtec.com>,
"corbet@lwn.net" <corbet@lwn.net>,
"jason@jlekstrand.net" <jason@jlekstrand.net>,
"willy@infradead.org" <willy@infradead.org>,
"christian.koenig@amd.com" <christian.koenig@amd.com>,
"tzimmermann@suse.de" <tzimmermann@suse.de>,
"bagasdotme@gmail.com" <bagasdotme@gmail.com>,
"mripard@kernel.org" <mripard@kernel.org>,
"matthew.brost@intel.com" <matthew.brost@intel.com>,
"bskeggs@redhat.com" <bskeggs@redhat.com>,
"ogabbay@kernel.org" <ogabbay@kernel.org>,
"boris.brezillon@collabora.com" <boris.brezillon@collabora.com>,
"Liam.Howlett@oracle.com" <Liam.Howlett@oracle.com>,
"daniel@ffwll.ch" <daniel@ffwll.ch>,
"alexdeucher@gmail.com" <alexdeucher@gmail.com>,
"airlied@gmail.com" <airlied@gmail.com>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"nouveau@lists.freedesktop.org" <nouveau@lists.freedesktop.org>,
"airlied@redhat.com" <airlied@redhat.com>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"thomas.hellstrom@linux.intel.com"
<thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH drm-next v7 02/13] drm: manager to keep track of GPUs VA mappings
Date: Tue, 18 Jul 2023 13:38:48 +0200 [thread overview]
Message-ID: <51968407-c87a-e565-28f7-868a1b923d5c@redhat.com> (raw)
In-Reply-To: <f5957892c4fb41becd7084ac93310aae3a6e091a.camel@imgtec.com>
On 7/17/23 12:00, Donald Robson wrote:
> Hi Danilo,
> The below part of the documentation is out of date now.
> Thanks,
> Donald
Thanks Donald for pointing this out.
If there aren't any further objections in general I will fix up the
comment and then push the GPUVA Manager parts of the series to
drm-misc-next.
- Danilo
>
> On Thu, 2023-07-13 at 19:03 +0200, Danilo Krummrich wrote:
>>
>> +
>> +/**
>> + * DOC: Locking
>> + *
>> + * Generally, the GPU VA manager does not take care of locking itself, it is
>> + * the drivers responsibility to take care about locking. Drivers might want to
>> + * protect the following operations: inserting, removing and iterating
>> + * &drm_gpuva objects as well as generating all kinds of operations, such as
>> + * split / merge or prefetch.
>> + *
>> + * The GPU VA manager also does not take care of the locking of the backing
>> + * &drm_gem_object buffers GPU VA lists by itself; drivers are responsible to
>> + * enforce mutual exclusion using either the GEMs dma_resv lock or alternatively
>> + * a driver specific external lock by setting the @DRM_GPUVA_MANAGER_LOCK_EXTERN
>> + * flag.
>> + *
>> + * For the latter, functions such as drm_gpuva_link() or drm_gpuva_unlink()
>> + * contain lockdep checks to indicate locking issues. For this to work drivers
>> + * must provide (in case the @DRM_GPUVA_MANAGER_LOCK_EXTERN flag is set) their
>> + * external lock with drm_gpuva_manager_set_ext_lock() after initialization.
>> + */
>>
next prev parent reply other threads:[~2023-07-18 13:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 17:03 [PATCH drm-next v7 00/13] [RFC] DRM GPUVA Manager & Nouveau VM_BIND UAPI Danilo Krummrich
2023-07-13 17:03 ` [PATCH drm-next v7 01/13] drm: execution context for GEM buffers v7 Danilo Krummrich
2023-07-13 17:03 ` [PATCH drm-next v7 02/13] drm: manager to keep track of GPUs VA mappings Danilo Krummrich
2023-07-17 10:00 ` Donald Robson
2023-07-18 11:38 ` Danilo Krummrich [this message]
2023-07-13 17:03 ` [PATCH drm-next v7 03/13] drm: debugfs: provide infrastructure to dump a DRM GPU VA space Danilo Krummrich
2023-07-13 17:03 ` [PATCH drm-next v7 04/13] drm/nouveau: new VM_BIND uapi interfaces Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 05/13] drm/nouveau: get vmm via nouveau_cli_vmm() Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 06/13] drm/nouveau: bo: initialize GEM GPU VA interface Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 07/13] drm/nouveau: move usercopy helpers to nouveau_drv.h Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 08/13] drm/nouveau: fence: separate fence alloc and emit Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 09/13] drm/nouveau: fence: fail to emit when fence context is killed Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 10/13] drm/nouveau: chan: provide nouveau_channel_kill() Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 11/13] drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 12/13] drm/nouveau: implement new VM_BIND uAPI Danilo Krummrich
2023-07-13 17:04 ` [PATCH drm-next v7 13/13] drm/nouveau: debugfs: implement DRM GPU VA debugfs Danilo Krummrich
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=51968407-c87a-e565-28f7-868a1b923d5c@redhat.com \
--to=dakr@redhat.com \
--cc=Donald.Robson@imgtec.com \
--cc=Liam.Howlett@oracle.com \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=alexdeucher@gmail.com \
--cc=bagasdotme@gmail.com \
--cc=boris.brezillon@collabora.com \
--cc=bskeggs@redhat.com \
--cc=christian.koenig@amd.com \
--cc=corbet@lwn.net \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jason@jlekstrand.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.brost@intel.com \
--cc=mripard@kernel.org \
--cc=nouveau@lists.freedesktop.org \
--cc=ogabbay@kernel.org \
--cc=thomas.hellstrom@linux.intel.com \
--cc=tzimmermann@suse.de \
--cc=willy@infradead.org \
/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®