RE: [PATCH v4 1/3] drm/sched: Eliminate NOP dependencies at insertion time

From: Xianzhong Li

Date: Wed Dec 02 2026 - 21:05:44 EST


Hi Boris,

Thanks for your effort on pushing forward for this kernel approach,
I agree your idea to slow down a bit, actually, I want to track performance result on each iteration at the same time,

I made a small fix on patch v2 and finished patch verification with glmark2 just now, it improves 6.6% vs 7.15% (kernel patch with can_skip_dep),
diff --git a/drivers/gpu/drm/panthor/panthor_drv.c b/drivers/gpu/drm/panthor/panthor_drv.c
index 058551998aa0..3d3cc7918221 100644
--- a/drivers/gpu/drm/panthor/panthor_drv.c
+++ b/drivers/gpu/drm/panthor/panthor_drv.c
@@ -638,7 +638,11 @@ panthor_submit_ctx_add_sync_deps_to_job(struct panthor_submit_ctx *ctx,
* eliminate fences that are coming from the same queue.
*/
dma_fence_unwrap_for_each(inner_fence, &iter, fence) {
- ret = drm_sched_job_add_dependency(job, inner_fence);
+ /* drm_sched_job_add_dependency() consumes a reference,
+ * but dma_fence_unwrap_for_each() returns borrowed
+ * fence pointers.
+ */
+ ret = drm_sched_job_add_dependency(job, dma_fence_get(inner_fence));
if (ret) {
dma_fence_put(iter.chain);
return ret;

Of course, patch v2 is still better than the original sync-wait version(6.25%) in mesa driver, https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/46172
Since patch v4 is available now, I may skip v3 and continue patch v4 verification on NXP board with Mali GPU

Best Regards,
Xianzhong

NXP Confidential
-----Original Message-----
From: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
Sent: Wednesday, December 2, 2026 8:21 PM
To: Philipp Stanner <phasta@xxxxxxxxxxx>
Cc: phasta@xxxxxxxxxx; Steven Price <steven.price@xxxxxxx>; Liviu Dudau <liviu.dudau@xxxxxxx>; Akash Goel <akash.goel@xxxxxxx>; Karunika Choo <karunika.choo@xxxxxxx>; Lukas Zapolskas <lukas.zapolskas@xxxxxxx>; Chris Diamand <chris.diamand@xxxxxxx>; Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx>; Maxime Ripard <mripard@xxxxxxxxxx>; Thomas Zimmermann <tzimmermann@xxxxxxx>; David Airlie <airlied@xxxxxxxxx>; Simona Vetter <simona@xxxxxxxx>; Sumit Semwal <sumit.semwal@xxxxxxxxxx>; Christian König <christian.koenig@xxxxxxx>; dri-devel@xxxxxxxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; linux-media@xxxxxxxxxxxxxxx; linaro-mm-sig@xxxxxxxxxxxxxxxx; Xianzhong Li <xianzhong.li@xxxxxxx>
Subject: Re: [PATCH v4 1/3] drm/sched: Eliminate NOP dependencies at insertion time

Hi Philipp,

On Wed, 02 Dec 2026 12:44:39 +0100
Philipp Stanner <phasta@xxxxxxxxxxx> wrote:

> I don't want to appear overly nitty, but could we follow the "wait 24
> hours before submitting new revisions" rule?

Duly noted. I guess I'll go back to my other stuff and forget about this, again. Xianzhong, if this is blocker for you, can you or someone in your team push this forward?

Thanks,

Boris