From: Philipp Stanner <phasta@mailbox.org>
To: Danilo Krummrich <dakr@kernel.org>, Philipp Stanner <phasta@kernel.org>
Cc: "Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Matthew Brost" <matthew.brost@intel.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Tvrtko Ursulin" <tvrtko.ursulin@igalia.com>,
"Pierre-Eric Pelloux-Prayer" <pierre-eric.pelloux-prayer@amd.com>,
"Shahyan Soltani" <shahyan.soltani@amd.com>,
"Ruslan Vagner" <rusya92266@gmail.com>,
"Mario Limonciello (AMD)" <superm1@kernel.org>,
"Gustavo Padovan" <gustavo.padovan@collabora.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 0/3] dma-fence: Properly order timestamps
Date: Tue, 01 Dec 2026 15:46:05 +0100 [thread overview]
Message-ID: <5a133e6a9173715422baf2ad30e5036c9f53d70f.camel@mailbox.org> (raw)
In-Reply-To: <DN9GZLN9FOKT.3IESTSA0G3IRP@kernel.org>
On Tue, 2026-12-01 at 15:36 +0100, Danilo Krummrich wrote:
> On Tue Dec 1, 2026 at 10:17 AM CET, Philipp Stanner wrote:
> > - Avoid "hotfix" rhetoric. (Danilo)
>
> This wasn't about terminology. I'm questioning why this is needed as a late
> cycle fix.
>
> You pointed out that this gap already exists for a very long time and we don't
> have any reports for this causing issues in practice.
Yes, I have understood that already.
This series is about: this is a problem, so let's merge into into drm-
misc-fixes, some time in the near to mid future.
This is not intended as a "late cycle fix", just as a fix.
> Additionally, you mention below that you work on a proper solution that you will
> post soon.
>
> So, why do we need this as a quick late cycle fix? Why can't we just go with
> your proper fix? What does the proper fix look like?
https://lore.kernel.org/dri-devel/20261127101812.2706432-2-phasta@kernel.org/
> Now, of course the regression potential of this series is surveyable, but given
> that you say it is temporary and you send a proper fix soon, it seems
> unnecessary.
It's small and easy to backport.
The "proper solution", linked above, once again might not be so easy to
roll out, because (surprise /s):
- fence lock and fence context lock are shared, for example in
sync_file.
- Some parties call dma_fence_timestamp() from a fence callback,
thereby deadlocking because the fence callbacks are called with the
lock held. I guess these we *might* be able to port to just
ktime_get().
- Users have ossified the API, most notably i915. It could be that
removal of the TIMESTAMP bit would have to be reverted should i915
regress.
So same story as always. The toughest nut to crack for a cleaner
solution would be sync_file, which doesn't use inline_lock right now,
therefore is condemned to a manual test_bit().
I currently am inclined to think that dma_fence_timestamp() should work
with manual barriers for now, then the broken users be ported, and then
one day dma_fence_timestamp() can be locked. Maybe together with the
signaled-bit, depending on how our discussions there unfold.
Clear now?
P.
next prev parent reply other threads:[~2026-12-01 14:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 9:17 Philipp Stanner
2026-12-01 9:17 ` [PATCH v2 1/3] dma-buf: dma-fence: Fix timestamp misordering Philipp Stanner
2026-12-01 10:57 ` Tvrtko Ursulin
2026-12-01 13:43 ` Christian König
2026-12-01 9:17 ` [PATCH v2 2/3] drm/sched: Prevent overwrite of non-existing timestamp Philipp Stanner
2026-12-01 14:09 ` Christian König
2026-12-01 9:17 ` [PATCH v2 3/3] drm/amdgpu: Fix timestamp misordering Philipp Stanner
2026-12-01 14:10 ` Christian König
2026-12-01 14:18 ` Philipp Stanner
2026-12-01 14:43 ` Christian König
2026-12-01 14:36 ` [PATCH v2 0/3] dma-fence: Properly order timestamps Danilo Krummrich
2026-12-01 14:46 ` Philipp Stanner [this message]
2026-12-01 15:46 ` 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=5a133e6a9173715422baf2ad30e5036c9f53d70f.camel@mailbox.org \
--to=phasta@mailbox.org \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=chris@chris-wilson.co.uk \
--cc=christian.koenig@amd.com \
--cc=dakr@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gustavo.padovan@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matthew.brost@intel.com \
--cc=mripard@kernel.org \
--cc=phasta@kernel.org \
--cc=pierre-eric.pelloux-prayer@amd.com \
--cc=rusya92266@gmail.com \
--cc=shahyan.soltani@amd.com \
--cc=simona@ffwll.ch \
--cc=sumit.semwal@linaro.org \
--cc=superm1@kernel.org \
--cc=tvrtko.ursulin@igalia.com \
--cc=tzimmermann@suse.de \
/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®