From: "Yu, Fei" <fei.yu@intel.com>
To: tvrtko.ursulin@igalia.com
Cc: dri-devel@lists.freedesktop.org, kernel-dev@igalia.com,
mcanal@igalia.com, christian.koenig@amd.com, fei.yu@intel.com
Subject: Re: [PATCH 2/3] drm/syncobj: Add a fast path to drm_syncobj_array_wait_timeout
Date: Wed, 18 Nov 2026 16:06:26 +0800 [thread overview]
Message-ID: <20261118080626.180717-1-fei.yu@intel.com> (raw)
In-Reply-To: <20261117103916.9101-3-tvrtko.ursulin@igalia.com>
From: Fei Yu <fei.yu@intel.com>
On 11/17/26 10:39, Tvrtko Ursulin wrote:
> Running the Cyberpunk 2077 benchmark we can observe that waiting on DRM
> sycobjs is relatively hot, but the 96% of the calls are for a single
Nit: "sycobjs" -> "syncobjs".
> Therefore lets add a fast path to bypass the kcalloc/kfree and use a pre-
> allocated stack array for those cases.
These are kvmalloc_objs()/kvzalloc_objs() and kvfree() by now.
The stack entries are always unlinked in cleanup_entries before the
function returns, so their lifetime is the same as the kvfree'd array
before.
Reviewed-by: Fei Yu <fei.yu@intel.com>
Thanks,
Fei
next prev parent reply other threads:[~2026-11-18 8:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 10:39 [PATCH 0/3] drm/syncobj: Allocation avoiding fast path Tvrtko Ursulin
2026-11-17 10:39 ` [PATCH 1/3] drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_find Tvrtko Ursulin
2026-11-17 12:57 ` Maíra Canal
2026-11-17 13:23 ` Christian König
2026-11-17 10:39 ` [PATCH 2/3] drm/syncobj: Add a fast path to drm_syncobj_array_wait_timeout Tvrtko Ursulin
2026-11-18 8:06 ` Yu, Fei [this message]
2026-11-17 10:39 ` [PATCH 3/3] drm/syncobj: Add a fast path to drm_syncobj_array_find Tvrtko Ursulin
2026-11-18 8:06 ` Yu, Fei
2026-11-18 8:06 ` [PATCH 0/3] drm/syncobj: Allocation avoiding fast path Yu, Fei
-- strict thread matches above, loose matches on Subject: below --
2025-11-06 13:26 [PATCH 0/3] DRM syncobj wait " Tvrtko Ursulin
2025-11-06 13:26 ` [PATCH 2/3] drm/syncobj: Add a fast path to drm_syncobj_array_wait_timeout Tvrtko Ursulin
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=20261118080626.180717-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.