From: Fei Yu <fei.yu@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: dri-devel@lists.freedesktop.org, kernel-dev@igalia.com,
"Christian König" <christian.koenig@amd.com>,
"Maíra Canal" <mcanal@igalia.com>
Subject: Re: [PATCH 0/7] DRM syncobj scoped cleanup and fast path
Date: Fri, 27 Nov 2026 15:58:58 +0800 [thread overview]
Message-ID: <20261127075858.1868896-1-fei.yu@intel.com> (raw)
In-Reply-To: <20261126111117.67342-1-tvrtko.ursulin@igalia.com>
On Thu, Nov 26, 2026 at 11:11:10AM +0000, Tvrtko Ursulin wrote:
> Syncobj IGT pass, light gaming and light desktop as well, and there are no
> kmemleak reports. Nevertheless this version is a bit more invasive so if the
> approach is looking good a careful review will be required.
Tested patches 1-6 plus v2 of 7/7 on v7.4-rc4 (x86_64, KASAN +
KASAN_STACK, lockdep, kmemleak, failslab/fail_page_alloc/fail_usercopy,
virtio-gpu in QEMU), base and patched with the same config:
- IGT syncobj_basic, syncobj_wait, syncobj_timeline: 202/202 on both,
identical per subtest, dmesg clean.
- The targeted test from the previous version, 1..8 handles on all
six array ioctls (success, -ENOENT at every position, -EFAULT for
bad / partially unmapped handle and point arrays, sw_sync and
WAIT_FOR_SUBMIT wake-ups, -ETIME / -EINTR followed by late
signalling, 20 s stress), and 1M handles OK / 1M + 1 -EINVAL:
all pass on both, no splats, kmemleak clean.
- Since the error paths are what changed most, I also ran every
ioctl with n = 1, 2, 4, 5, 8 under fail-nth, failing each
allocation / user copy in turn (~340 injected faults on the
patched kernel, among them partial dma_fence_chain_alloc() in
timeline_signal and the kvzalloc / vmemdup fallbacks above 4
entries), plus blocking WAIT_FOR_SUBMIT waits the same way. Every
call returns -ENOMEM / -EFAULT or succeeds, each syncobj can be
destroyed exactly once afterwards, no KASAN report, kmemleak
clean. Same on base. A NULL handles pointer still gives -EFAULT,
and a NULL points pointer behaves the same as before for n = 1..8.
- Every patch builds with W=1 and sparse clean, i386 too.
So whatever the outcome of the discussion on 2-5, the scoped
conversion did not introduce any error path bug in my testing.
On points when user_points is NULL (2/7 and 4/7): with 7/7 that is
a memset of at most 32 bytes on the stack for n <= 4, so skipping
it only matters for the slow path.
Stack (KASAN build, so inflated): the wait path goes from 640 to
1160 bytes (wait_ioctl 184 -> 296, array_wait_timeout 280 -> 688),
timeline_signal_ioctl 224 -> 472, the other ioctls +104..+112,
array_find 88 -> 224.
Tested-by: Fei Yu <fei.yu@intel.com>
Thanks,
Fei
prev parent reply other threads:[~2026-11-27 7:53 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 11:11 [PATCH 0/7] DRM syncobj scoped cleanup and fast path Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 1/7] drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_find Tvrtko Ursulin
2026-11-26 11:59 ` Christian König
2026-11-26 11:11 ` [PATCH 2/7] drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout points Tvrtko Ursulin
2026-11-26 12:09 ` Christian König
2026-11-26 14:22 ` Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 3/7] drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout syncobjs Tvrtko Ursulin
2026-11-26 11:17 ` sashiko-bot
2026-11-26 12:11 ` Christian König
2026-11-26 14:33 ` Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 4/7] drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl points Tvrtko Ursulin
2026-11-26 12:15 ` Christian König
2026-11-26 11:11 ` [PATCH 5/7] drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl chains Tvrtko Ursulin
2026-11-26 11:21 ` sashiko-bot
2026-11-26 12:19 ` Christian König
2026-11-26 11:11 ` [PATCH 6/7] drm/syncobj: Use scoped cleanup in drm_syncobj_array_find and callers Tvrtko Ursulin
2026-11-26 11:19 ` sashiko-bot
2026-11-26 11:11 ` [PATCH 7/7] drm/syncobj: Add temporary array allocation fast paths Tvrtko Ursulin
2026-11-26 11:22 ` sashiko-bot
2026-11-26 11:49 ` [PATCH v2 " Tvrtko Ursulin
2026-11-27 7:59 ` Fei Yu
2026-11-27 7:58 ` Fei Yu [this message]
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=20261127075858.1868896-1-fei.yu@intel.com \
--to=fei.yu@intel.com \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-dev@igalia.com \
--cc=mcanal@igalia.com \
--cc=tvrtko.ursulin@igalia.com \
/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.