From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Danilo Krummrich <dakr@redhat.com>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
arunpravin.paneerselvam@amd.com
Subject: Re: [PATCH 1/9] drm: execution context for GEM buffers v3
Date: Thu, 2 Mar 2023 08:49:38 +0100 [thread overview]
Message-ID: <656afdb6-8326-0fea-e965-39c8051eff50@gmail.com> (raw)
In-Reply-To: <873a0702-56be-6277-c86f-8bb73a4805fd@redhat.com>
Am 28.02.23 um 20:13 schrieb Danilo Krummrich:
> [SNIP]
>> + if (exec->prelocked) {
>> + dma_resv_unlock(exec->prelocked->resv);
>> + drm_gem_object_put(exec->prelocked);
>> + exec->prelocked = NULL;
>> + }
>
> Let's say we try to lock 3 objects A, B and C in chronological order
> and in the first "drm_exec_cleanup() iteration" C is contended.
> Firstly, we lock C in the next iteration. If now A or B is contended,
> we never set exec->prelocked to NULL in drm_exec_prepare_obj(), since
> we did not yet reach C.
>
> Hence, this causes a double unlock, since the prelocked object is also
> unlocked in the above loop.
>
> Maybe I miss a detail, but to me it looks like setting exec->prelocked
> to NULL and dropping the reference should be enough.
Ah, yes of course. That wasn't correct and my test cases didn't covered it.
Going to fix this and all the comments you pointed out and update the
test cases, should be done by next week.
Thanks,
Christian.
next prev parent reply other threads:[~2023-03-02 7:49 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-28 8:33 Common DRM execution context v3 Christian König
2023-02-28 8:33 ` [PATCH 1/9] drm: execution context for GEM buffers v3 Christian König
2023-02-28 19:13 ` Danilo Krummrich
2023-03-02 7:49 ` Christian König [this message]
2023-03-03 13:45 ` Luben Tuikov
2023-03-03 14:11 ` Luben Tuikov
2023-03-10 10:42 ` Thomas Hellström (Intel)
2023-04-14 14:29 ` Francois Dugast
2023-02-28 8:33 ` [PATCH 2/9] drm: add drm_exec selftests Christian König
2023-02-28 8:34 ` [PATCH 3/9] drm/amdkfd: switch over to using drm_exec Christian König
2023-04-21 21:28 ` Felix Kuehling
2023-02-28 8:34 ` [PATCH 4/9] drm/amdgpu: use drm_exec for GEM and CSA handling Christian König
2023-02-28 8:34 ` [PATCH 5/9] drm/amdgpu: use drm_exec for MES testing Christian König
2023-02-28 8:34 ` [PATCH 6/9] drm/amdgpu: use the new drm_exec object for CS v2 Christian König
2023-02-28 8:34 ` [PATCH 7/9] drm/radeon: switch over to drm_exec Christian König
2023-02-28 16:45 ` kernel test robot
2023-02-28 16:45 ` kernel test robot
2023-02-28 8:34 ` [PATCH 8/9] drm/qxl: switch to using drm_exec Christian König
2023-02-28 16:03 ` kernel test robot
2023-02-28 16:03 ` kernel test robot
2023-02-28 16:34 ` kernel test robot
2023-02-28 16:34 ` kernel test robot
2023-02-28 8:34 ` [PATCH 9/9] drm: move ttm_execbuf_util into vmwgfx Christian König
2023-03-08 5:14 ` Zack Rusin
2023-03-08 9:10 ` Christian König
2023-03-09 5:14 ` Zack Rusin
2023-03-09 8:35 ` Thomas Hellström (Intel)
2023-03-09 8:26 ` Thomas Hellström (Intel)
2023-02-28 19:11 ` Common DRM execution context v3 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=656afdb6-8326-0fea-e965-39c8051eff50@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=arunpravin.paneerselvam@amd.com \
--cc=dakr@redhat.com \
--cc=dri-devel@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.