* [PATCH 0/3] dma-fence: Properly order timestamps
@ 2026-11-26 17:20 Philipp Stanner
2026-11-26 17:20 ` [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering Philipp Stanner
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Philipp Stanner @ 2026-11-26 17:20 UTC (permalink / raw)
To: Sumit Semwal, Christian König, Philipp Stanner, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Tvrtko Ursulin, Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx
I propose stuffing these hotfixes into the stable kernel / misc-fixes
while we move on on misc-next with a more proper solution. I'll post a
series for that soonish, too.
P.
Philipp Stanner (3):
dma-buf: dma-fence: Hot-fix timestamp misordering
drm/sched: Hot-fix timestamp misordering
drm/amdgpu: Hot-fix timestamp misordering
drivers/dma-buf/dma-fence.c | 9 +++++++++
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 4 ++--
drivers/gpu/drm/scheduler/sched_main.c | 12 ++++++++++--
include/linux/dma-fence.h | 8 ++++++--
4 files changed, 27 insertions(+), 6 deletions(-)
base-commit: bf57105b00e32d37b666c029c8c6b8708391da20
--
2.56.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering
2026-11-26 17:20 [PATCH 0/3] dma-fence: Properly order timestamps Philipp Stanner
@ 2026-11-26 17:20 ` Philipp Stanner
2026-11-27 9:43 ` Tvrtko Ursulin
2026-11-26 17:20 ` [PATCH 2/3] drm/sched: " Philipp Stanner
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Philipp Stanner @ 2026-11-26 17:20 UTC (permalink / raw)
To: Sumit Semwal, Christian König, Philipp Stanner, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Tvrtko Ursulin, Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
fence timestamps can be written and read without any memory ordering
since, presumably, forever. This can cause real bugs, other than false
accounting, for parties whose algorithms depend on the timestamp.
Hot-fix the problem for now so that it can be backported until we found
a suitable way forward for mainline.
Cc: stable@vger.kernel.org
Fixes: 76250f2b743b ("dma-buf/fence: Avoid use of uninitialised timestamp")
Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
drivers/dma-buf/dma-fence.c | 9 +++++++++
include/linux/dma-fence.h | 8 ++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index bd58688b81a7..8a842fc8168f 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -378,6 +378,15 @@ void dma_fence_signal_timestamp_locked(struct dma_fence *fence,
list_replace(&fence->cb_list, &cb_list);
fence->timestamp = timestamp;
+ /*
+ * TODO:
+ * This is a temporary hotfix to prevent misordering until we
+ * can completely remove the TIMESTAMP bit.
+ *
+ * The counterpart of this barrier are the test_bit_acquire()s in
+ * dma_fence_timestamp().
+ */
+ smp_mb__before_atomic();
set_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags);
list_for_each_entry_safe(cur, tmp, &cb_list, node) {
diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h
index 64330bf52561..6b16095e8521 100644
--- a/include/linux/dma-fence.h
+++ b/include/linux/dma-fence.h
@@ -715,10 +715,14 @@ static inline void dma_fence_set_error(struct dma_fence *fence,
*/
static inline ktime_t dma_fence_timestamp(struct dma_fence *fence)
{
- if (WARN_ON(!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)))
+ /*
+ * The test_bit_acquire() calls order against the
+ * smp_mb__before_atomic() in dma_fence_signal_timestamp_locked().
+ */
+ if (WARN_ON(!test_bit_acquire(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)))
return ktime_get();
- while (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags))
+ while (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags))
cpu_relax();
return fence->timestamp;
--
2.56.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/3] drm/sched: Hot-fix timestamp misordering
2026-11-26 17:20 [PATCH 0/3] dma-fence: Properly order timestamps Philipp Stanner
2026-11-26 17:20 ` [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering Philipp Stanner
@ 2026-11-26 17:20 ` Philipp Stanner
2026-11-27 9:55 ` Tvrtko Ursulin
2026-11-26 17:20 ` [PATCH 3/3] drm/amdgpu: " Philipp Stanner
2026-11-27 11:34 ` [PATCH 0/3] dma-fence: Properly order timestamps Danilo Krummrich
3 siblings, 1 reply; 11+ messages in thread
From: Philipp Stanner @ 2026-11-26 17:20 UTC (permalink / raw)
To: Sumit Semwal, Christian König, Philipp Stanner, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Tvrtko Ursulin, Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
dma_fence timestamps could so far be written and read without any memory
ordering, a bug that presumably got overlooked because x86 is strongly
ordered.
Hot-fix the scheduler's manual timestamp evaluation until we found a
more suitable solution for mainline linux.
Cc: stable@vger.kernel.org
Fixes: f7fe64ad0f22 ("drm/sched: Split free_job into own work item")
Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
drivers/gpu/drm/scheduler/sched_main.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c
index 99252674e266..3d26a48ff1c3 100644
--- a/drivers/gpu/drm/scheduler/sched_main.c
+++ b/drivers/gpu/drm/scheduler/sched_main.c
@@ -928,8 +928,16 @@ drm_sched_get_finished_job(struct drm_gpu_scheduler *sched)
next = list_first_entry_or_null(&sched->pending_list,
typeof(*next), list);
if (next) {
- /* make the scheduled timestamp more accurate */
- if (test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT,
+ /* Make the scheduled timestamp more accurate.
+ *
+ * TODO
+ * The test_bit_acquire() is a hotfix against timestamp
+ * misordering. Replace it with something better.
+ *
+ * The counter-part of the barrier is located in
+ * dma_fence_signal_timestamp_locked().
+ */
+ if (test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT,
&next->s_fence->scheduled.flags))
next->s_fence->scheduled.timestamp =
dma_fence_timestamp(&job->s_fence->finished);
--
2.56.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/3] drm/amdgpu: Hot-fix timestamp misordering
2026-11-26 17:20 [PATCH 0/3] dma-fence: Properly order timestamps Philipp Stanner
2026-11-26 17:20 ` [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering Philipp Stanner
2026-11-26 17:20 ` [PATCH 2/3] drm/sched: " Philipp Stanner
@ 2026-11-26 17:20 ` Philipp Stanner
2026-11-27 9:57 ` Tvrtko Ursulin
2026-11-27 11:34 ` [PATCH 0/3] dma-fence: Properly order timestamps Danilo Krummrich
3 siblings, 1 reply; 11+ messages in thread
From: Philipp Stanner @ 2026-11-26 17:20 UTC (permalink / raw)
To: Sumit Semwal, Christian König, Philipp Stanner, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Tvrtko Ursulin, Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
dma_fence timestamps could so far be written and read without any memory
ordering, a bug that presumably got overlooked because x86 is strongly
ordered.
Hot-fix amdgpu's manual timestamp evaluation until we found a more
suitable solution for mainline linux.
Cc: stable@vger.kernel.org
Fixes: af0b54167009 ("drm/amdgpu: Convert to common fdinfo format v5")
Signed-off-by: Philipp Stanner <phasta@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index 2f0349233695..415f23aa08a0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -177,11 +177,11 @@ static ktime_t amdgpu_ctx_fence_time(struct dma_fence *fence)
/* When the fence is not even scheduled it can't have spend time */
s_fence = to_drm_sched_fence(fence);
- if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->scheduled.flags))
+ if (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->scheduled.flags))
return ns_to_ktime(0);
/* When it is still running account how much already spend */
- if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->finished.flags))
+ if (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->finished.flags))
return ktime_sub(ktime_get(), s_fence->scheduled.timestamp);
return ktime_sub(s_fence->finished.timestamp,
--
2.56.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering
2026-11-26 17:20 ` [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering Philipp Stanner
@ 2026-11-27 9:43 ` Tvrtko Ursulin
0 siblings, 0 replies; 11+ messages in thread
From: Tvrtko Ursulin @ 2026-11-27 9:43 UTC (permalink / raw)
To: Philipp Stanner, Sumit Semwal, Christian König, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
On 26/11/2026 17:20, Philipp Stanner wrote:
> fence timestamps can be written and read without any memory ordering
> since, presumably, forever. This can cause real bugs, other than false
> accounting, for parties whose algorithms depend on the timestamp.
>
> Hot-fix the problem for now so that it can be backported until we found
> a suitable way forward for mainline.
>
> Cc: stable@vger.kernel.org
> Fixes: 76250f2b743b ("dma-buf/fence: Avoid use of uninitialised timestamp")
> Signed-off-by: Philipp Stanner <phasta@kernel.org>
> ---
> drivers/dma-buf/dma-fence.c | 9 +++++++++
> include/linux/dma-fence.h | 8 ++++++--
> 2 files changed, 15 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
> index bd58688b81a7..8a842fc8168f 100644
> --- a/drivers/dma-buf/dma-fence.c
> +++ b/drivers/dma-buf/dma-fence.c
> @@ -378,6 +378,15 @@ void dma_fence_signal_timestamp_locked(struct dma_fence *fence,
> list_replace(&fence->cb_list, &cb_list);
>
> fence->timestamp = timestamp;
> + /*
> + * TODO:
> + * This is a temporary hotfix to prevent misordering until we
> + * can completely remove the TIMESTAMP bit.
> + *
> + * The counterpart of this barrier are the test_bit_acquire()s in
> + * dma_fence_timestamp().
> + */
> + smp_mb__before_atomic();
> set_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags);
>
> list_for_each_entry_safe(cur, tmp, &cb_list, node) {
> diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h
> index 64330bf52561..6b16095e8521 100644
> --- a/include/linux/dma-fence.h
> +++ b/include/linux/dma-fence.h
> @@ -715,10 +715,14 @@ static inline void dma_fence_set_error(struct dma_fence *fence,
> */
> static inline ktime_t dma_fence_timestamp(struct dma_fence *fence)
> {
> - if (WARN_ON(!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)))
> + /*
> + * The test_bit_acquire() calls order against the
> + * smp_mb__before_atomic() in dma_fence_signal_timestamp_locked().
> + */
> + if (WARN_ON(!test_bit_acquire(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)))
> return ktime_get();
This one I think could stay as is since there is no point to have two
barriers in sequence.
>
> - while (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags))
> + while (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &fence->flags))
> cpu_relax();
>
> return fence->timestamp;
The rest looks good to me.
I would also probably expand the commit message to actually explain what
practical bugs and races the patch on its own fixes. Which would be all
callers of dma_fence_timestamp, right? AFAIU they are all vulnerable to
observing missing/torn timestamp on weakly ordered architectures.
Regards,
Tvrtko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 2/3] drm/sched: Hot-fix timestamp misordering
2026-11-26 17:20 ` [PATCH 2/3] drm/sched: " Philipp Stanner
@ 2026-11-27 9:55 ` Tvrtko Ursulin
0 siblings, 0 replies; 11+ messages in thread
From: Tvrtko Ursulin @ 2026-11-27 9:55 UTC (permalink / raw)
To: Philipp Stanner, Sumit Semwal, Christian König, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
On 26/11/2026 17:20, Philipp Stanner wrote:
> dma_fence timestamps could so far be written and read without any memory
> ordering, a bug that presumably got overlooked because x86 is strongly
> ordered.
Perhaps say that this particular patch fixes the store ordering of the
timestamp overwrite. IIUC at least.
> Hot-fix the scheduler's manual timestamp evaluation until we found a
> more suitable solution for mainline linux.
>
> Cc: stable@vger.kernel.org
> Fixes: f7fe64ad0f22 ("drm/sched: Split free_job into own work item")
> Signed-off-by: Philipp Stanner <phasta@kernel.org>
> ---
> drivers/gpu/drm/scheduler/sched_main.c | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c
> index 99252674e266..3d26a48ff1c3 100644
> --- a/drivers/gpu/drm/scheduler/sched_main.c
> +++ b/drivers/gpu/drm/scheduler/sched_main.c
> @@ -928,8 +928,16 @@ drm_sched_get_finished_job(struct drm_gpu_scheduler *sched)
> next = list_first_entry_or_null(&sched->pending_list,
> typeof(*next), list);
> if (next) {
> - /* make the scheduled timestamp more accurate */
> - if (test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT,
> + /* Make the scheduled timestamp more accurate.
> + *
> + * TODO
> + * The test_bit_acquire() is a hotfix against timestamp
> + * misordering. Replace it with something better.
> + *
> + * The counter-part of the barrier is located in
> + * dma_fence_signal_timestamp_locked().
Instead of more or less duplicating the TODO perhaps putting a link to
dma_fence_timestamp_locked somehow would be better. Up to you.
> + */
> + if (test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT,
> &next->s_fence->scheduled.flags))
> next->s_fence->scheduled.timestamp =
> dma_fence_timestamp(&job->s_fence->finished);
With the improved commit message:
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Regards,
Tvrtko
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/3] drm/amdgpu: Hot-fix timestamp misordering
2026-11-26 17:20 ` [PATCH 3/3] drm/amdgpu: " Philipp Stanner
@ 2026-11-27 9:57 ` Tvrtko Ursulin
2026-11-27 10:30 ` Philipp Stanner
0 siblings, 1 reply; 11+ messages in thread
From: Tvrtko Ursulin @ 2026-11-27 9:57 UTC (permalink / raw)
To: Philipp Stanner, Sumit Semwal, Christian König, Alex Deucher,
David Airlie, Simona Vetter, Matthew Brost, Danilo Krummrich,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
On 26/11/2026 17:20, Philipp Stanner wrote:
> dma_fence timestamps could so far be written and read without any memory
> ordering, a bug that presumably got overlooked because x86 is strongly
> ordered.
>
> Hot-fix amdgpu's manual timestamp evaluation until we found a more
> suitable solution for mainline linux.
>
> Cc: stable@vger.kernel.org
> Fixes: af0b54167009 ("drm/amdgpu: Convert to common fdinfo format v5")
Not sure the fixes target is strictly correct since timestamp access
goes even further back, but I guess it is good enough for GPU stats.
Please just add some sort of an impact assessment and bug description to
the commit text. With that:
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Regards,
Tvrtko
> Signed-off-by: Philipp Stanner <phasta@kernel.org>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> index 2f0349233695..415f23aa08a0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
> @@ -177,11 +177,11 @@ static ktime_t amdgpu_ctx_fence_time(struct dma_fence *fence)
>
> /* When the fence is not even scheduled it can't have spend time */
> s_fence = to_drm_sched_fence(fence);
> - if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->scheduled.flags))
> + if (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->scheduled.flags))
> return ns_to_ktime(0);
>
> /* When it is still running account how much already spend */
> - if (!test_bit(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->finished.flags))
> + if (!test_bit_acquire(DMA_FENCE_FLAG_TIMESTAMP_BIT, &s_fence->finished.flags))
> return ktime_sub(ktime_get(), s_fence->scheduled.timestamp);
>
> return ktime_sub(s_fence->finished.timestamp,
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/3] drm/amdgpu: Hot-fix timestamp misordering
2026-11-27 9:57 ` Tvrtko Ursulin
@ 2026-11-27 10:30 ` Philipp Stanner
2026-11-27 11:45 ` Danilo Krummrich
0 siblings, 1 reply; 11+ messages in thread
From: Philipp Stanner @ 2026-11-27 10:30 UTC (permalink / raw)
To: Tvrtko Ursulin, Philipp Stanner, Sumit Semwal,
Christian König, Alex Deucher, David Airlie, Simona Vetter,
Matthew Brost, Danilo Krummrich, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo
Cc: linux-media, dri-devel, linux-kernel, amd-gfx, stable
On Fri, 2026-11-27 at 09:57 +0000, Tvrtko Ursulin wrote:
> Not sure the fixes target is strictly correct since timestamp access
> goes even further back, but I guess it is good enough for GPU stats.
>
> Please just add some sort of an impact assessment and bug description to
> the commit text. With that:
>
> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thx for your review
I was considering, though, to minimize churn by not fixing amdgpu for
old kernels and simply take it aboard with the misc-next series.
Reason would be that amdgpu only ever runs on x86, which doesn't
reorder loads with loads, so this should in practice never be broken -
right @AMD?
P.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] dma-fence: Properly order timestamps
2026-11-26 17:20 [PATCH 0/3] dma-fence: Properly order timestamps Philipp Stanner
` (2 preceding siblings ...)
2026-11-26 17:20 ` [PATCH 3/3] drm/amdgpu: " Philipp Stanner
@ 2026-11-27 11:34 ` Danilo Krummrich
2026-11-27 11:43 ` Philipp Stanner
3 siblings, 1 reply; 11+ messages in thread
From: Danilo Krummrich @ 2026-11-27 11:34 UTC (permalink / raw)
To: Philipp Stanner
Cc: Sumit Semwal, Christian König, Alex Deucher, David Airlie,
Simona Vetter, Matthew Brost, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Tvrtko Ursulin, Mario Limonciello (AMD),
Aurabindo Pillai, Pierre-Eric Pelloux-Prayer, Gustavo Padovan,
Chris Wilson, Luben Tuikov, Shashank Sharma, Paul E . McKenney,
Gary Guo, linux-media, dri-devel, linux-kernel, amd-gfx
On Thu Nov 26, 2026 at 6:20 PM CET, Philipp Stanner wrote:
> I propose stuffing these hotfixes into the stable kernel / misc-fixes
> while we move on on misc-next with a more proper solution. I'll post a
> series for that soonish, too.
"Hotfix" kind of implies that it causes serious issues for "live" users.
One of the patches says "fence timestamps can be written and read without any
memory ordering since, presumably, forever."
What has changed that this now became an issue that needs a hotfix? Do we have
broken users?
If so, it would be good link a report if there's one publicly available.
Otherwise, I'd suggest to just go ahead with the proper solution you work on.
Thanks,
Danilo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 0/3] dma-fence: Properly order timestamps
2026-11-27 11:34 ` [PATCH 0/3] dma-fence: Properly order timestamps Danilo Krummrich
@ 2026-11-27 11:43 ` Philipp Stanner
0 siblings, 0 replies; 11+ messages in thread
From: Philipp Stanner @ 2026-11-27 11:43 UTC (permalink / raw)
To: Danilo Krummrich, Philipp Stanner
Cc: Sumit Semwal, Christian König, Alex Deucher, David Airlie,
Simona Vetter, Matthew Brost, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Tvrtko Ursulin, Mario Limonciello (AMD),
Aurabindo Pillai, Pierre-Eric Pelloux-Prayer, Gustavo Padovan,
Chris Wilson, Luben Tuikov, Shashank Sharma, Paul E . McKenney,
Gary Guo, linux-media, dri-devel, linux-kernel, amd-gfx
On Fri, 2026-11-27 at 12:34 +0100, Danilo Krummrich wrote:
> On Thu Nov 26, 2026 at 6:20 PM CET, Philipp Stanner wrote:
> > I propose stuffing these hotfixes into the stable kernel / misc-fixes
> > while we move on on misc-next with a more proper solution. I'll post a
> > series for that soonish, too.
>
> What has changed that this now became an issue that needs a hotfix? Do we have
> broken users?
We don't know. But we have no reports, no.
It's literally UB. Can explode any time, or after 5 years, or never.
>
> If so, it would be good link a report if there's one publicly available.
> Otherwise, I'd suggest to just go ahead with the proper solution you work on.
What do you mean with that, like not backporting it?
P.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/3] drm/amdgpu: Hot-fix timestamp misordering
2026-11-27 10:30 ` Philipp Stanner
@ 2026-11-27 11:45 ` Danilo Krummrich
0 siblings, 0 replies; 11+ messages in thread
From: Danilo Krummrich @ 2026-11-27 11:45 UTC (permalink / raw)
To: Philipp Stanner
Cc: phasta, Tvrtko Ursulin, Sumit Semwal, Christian König,
Alex Deucher, David Airlie, Simona Vetter, Matthew Brost,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Mario Limonciello (AMD), Aurabindo Pillai,
Pierre-Eric Pelloux-Prayer, Gustavo Padovan, Chris Wilson,
Luben Tuikov, Shashank Sharma, Paul E . McKenney, Gary Guo,
linux-media, dri-devel, linux-kernel, amd-gfx, stable
On Fri Nov 27, 2026 at 11:30 AM CET, Philipp Stanner wrote:
> Reason would be that amdgpu only ever runs on x86
I think nothing prevents plugging an AMD card into a system with a weakly
ordered architecture using amdgpu.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-11-27 11:45 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 17:20 [PATCH 0/3] dma-fence: Properly order timestamps Philipp Stanner
2026-11-26 17:20 ` [PATCH 1/3] dma-buf: dma-fence: Hot-fix timestamp misordering Philipp Stanner
2026-11-27 9:43 ` Tvrtko Ursulin
2026-11-26 17:20 ` [PATCH 2/3] drm/sched: " Philipp Stanner
2026-11-27 9:55 ` Tvrtko Ursulin
2026-11-26 17:20 ` [PATCH 3/3] drm/amdgpu: " Philipp Stanner
2026-11-27 9:57 ` Tvrtko Ursulin
2026-11-27 10:30 ` Philipp Stanner
2026-11-27 11:45 ` Danilo Krummrich
2026-11-27 11:34 ` [PATCH 0/3] dma-fence: Properly order timestamps Danilo Krummrich
2026-11-27 11:43 ` Philipp Stanner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox