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

From: Xianzhong Li

Date: Thu Dec 03 2026 - 05:39:06 EST


Hi Boris,

I finished patch v4 patch verification with glmark2 on NXP i.MX952(GPU: Mali-G310-V2@1GHz, CPU: 4xA55@1.7GHz),
There is 7.33% improvement with patch v4, a little better than patch v1 and v2, see per-scene improvement as below

TOTAL: [1591,1596,1593.50] -> [1708,1712,1710.25], +7.33%
[build] use-vbo=false: [1512,1544,1528.00] -> [1497,1523,1510.00], -1.18%
[build] use-vbo=true: [2797,2818,2807.50] -> [2877,2945,2909.25], +3.62%
[texture] nearest: [2813,2835,2824.00] -> [2907,2966,2941.75], +4.17%
[texture] linear: [2794,2798,2796.00] -> [2905,2972,2947.00], +5.40%
[texture] mipmap: [2848,2860,2854.00] -> [2931,3032,2977.50], +4.33%
[shading] gouraud: [2131,2138,2134.50] -> [2416,2431,2423.00], +13.52%
[shading] blinn-phong-inf: [1939,1941,1940.00] -> [2209,2211,2210.00], +13.92%
[shading] phong: [1497,1502,1499.50] -> [1671,1676,1674.00], +11.64%
[shading] cel: [1355,1358,1356.50] -> [1496,1501,1499.50], +10.54%
[bump] high-poly: [873,874,873.50] -> [936,938,937.25], +7.30%
[bump] normals: [2914,2950,2932.00] -> [3021,3084,3057.25], +4.27%
[bump] height: [2773,2843,2808.00] -> [2880,2906,2893.25], +3.04%
[effect2d] 3x3: [1115,1116,1115.50] -> [1214,1220,1217.75], +9.17%
[effect2d] 5x5: [418,419,418.50] -> [433,434,433.75], +3.64%
[pulsar]: [2392,2425,2408.50] -> [2507,2540,2521.00], +4.67%
[desktop] blur: [326,326,326.00] -> [423,425,424.00], +30.06%
[desktop] shadow: [1067,1073,1070.00] -> [1189,1219,1203.00], +12.43%
[buffer] map (non-interleave): [204,208,206.00] -> [205,207,206.00], +0.00%
[buffer] subdata (non-interleave): [202,206,204.00] -> [207,208,207.25], +1.59%
[buffer] map (interleave): [324,330,327.00] -> [321,323,322.50], -1.38%
[ideas]: [577,580,578.50] -> [559,563,560.75], -3.07%
[jellyfish]: [760,760,760.00] -> [800,807,804.50], +5.86%
[terrain]: [56,57,56.50] -> [58,61,60.25], +6.64%
[shadow]: [1169,1175,1172.00] -> [1387,1395,1391.75], +18.75%
[refract]: [163,163,163.00] -> [174,177,176.00], +7.98%
[conditionals] 0/0: [2678,2702,2690.00] -> [2788,2863,2829.75], +5.20%
[conditionals] 5/0: [1934,1934,1934.00] -> [2194,2201,2197.25], +13.61%
[conditionals] 0/5: [2679,2705,2692.00] -> [2799,2842,2819.75], +4.75%
[function] low: [2384,2387,2385.50] -> [2565,2596,2578.75], +8.10%
[function] medium: [1501,1502,1501.50] -> [1669,1677,1674.25], +11.51%
[loop] fragment-loop=false: [2351,2355,2353.00] -> [2558,2573,2565.75], +9.04%
[loop] fragment-uniform=false: [2354,2359,2356.50] -> [2553,2576,2562.00], +8.72%
[loop] fragment-uniform=true: [1562,1562,1562.00] -> [1746,1752,1749.50], +12.00%

Best Regards,
Xianzhong

NXP Confidential
-----Original Message-----
From: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
Sent: Thursday, December 3, 2026 6:17 PM
To: Tvrtko Ursulin <tursulin@xxxxxxxxxxx>
Cc: 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>; Philipp Stanner <phasta@xxxxxxxxxx>; 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

On Thu, 3 Dec 2026 10:38:33 +0100
Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> wrote:

> > I guess I need to come up with a different benchmark and look at
> > different metrics. Like (soft)irq/s, power, not sure.
>
> Well, the thing is, it probably varies between drivers and depends on
> different factors:
>
> 1. how HW -> CPU signaling works, and how long it takes to process
> the IRQ, schedule the work and push a job to the FW ring buffer 2.
> how deep the ring buffer is 3. how likely we are to have queueX ->
> queueX deps with no other deps
> (you seem to prove that this almost never happens on the amdgpu
> stack, but I'm sure that's true on panfrost/panthor), or even how
> external/internal deps are ordered in the chain/array 4. what the
> UMD does (internal timeline_syncobj, export/import SYNC_FD
> dances, ...)

Forgot

5. How beefy your CPU is => I've tested on an rk3588, which I guess
is more powerful (more cores, higher freq) than the NXP platform
Xianzhong is testing on, and I don't see such a huge difference
between wrapped and unwrapped (~1.5% improvement, which is close to
the noise we usually get between glmark runs). The tests were done
with both devfreq and cpufreq governor set to performance, and RPM
disabled.