drm/i915: Include fence-hint for timeout warning
Subsystems (2)
If an asynchronous wait on a foriegn fence, we print a warning indicating which fence was not signaled. As i915_sw_fences become more common, include the debug hint (the symbol-name of the target) to help identify the waiter. E.g.
[ 31.968144] Asynchronous wait on fence sw_sync:gem_eio:1 timed out (hint:submit_notify [i915])
We also want to downgrade from a warning to a notice (normal but significant condition) as the timeout is imposed and controlled by the caller (i.e. it is deliberate) and can be provoked by userspace.
--- drivers/gpu/drm/i915/i915_sw_fence.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/i915_sw_fence.c +7 -6
@@ -24,13 +24,13 @@ enum { DEBUG_FENCE_NOTIFY, }; -#ifdef CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS -static void *i915_sw_fence_debug_hint (void *addr) {return (void *)(((struct i915_sw_fence *)addr)->flags &I915_SW_FENCE_MASK ); } +#ifdef CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS +static struct debug_obj_descr i915_sw_fence_debug_descr = { .name ="i915_sw_fence" , .debug_hint = i915_sw_fence_debug_hint,
@@ -393,10 +393,11 @@ static void timer_i915_sw_fence_wake(struct timer_list *t)if (!fence)return ; -pr_warn ("asynchronous wait on fence %s:%s:%x timed out\n" , - cb->dma->ops->get_driver_name (cb->dma), - cb->dma->ops->get_timeline_name (cb->dma), - cb->dma->seqno); +pr_notice ("Asynchronous wait on fence %s:%s:%x timed out (hint:%pS)\n" , + cb->dma->ops->get_driver_name (cb->dma), + cb->dma->ops->get_timeline_name (cb->dma), + cb->dma->seqno, +i915_sw_fence_debug_hint (fence));i915_sw_fence_complete (fence); }
Signature · 6 lines
2.16.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Include fence-hint for timeout warning (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915: Include fence-hint for timeout warning (rev2)
URL : https://patchwork.freedesktop.org/series/20264/
State : success
== Summary ==
Series 20264v2 drm/i915: Include fence-hint for timeout warning
https://patchwork.freedesktop.org/api/1.0/series/20264/revisions/2/mbox/
Test gem_mmap_gtt:
Subgroup basic-small-bo-tiledx:
pass -> FAIL (fi-gdg-551) fdo#102575fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:414s fi-bdw-gvtdvm total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:423s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:371s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:482s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:282s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:475s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:482s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:464s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:451s fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:562s fi-elk-e7500 total:288 pass:229 dwarn:0 dfail:0 fail:0 skip:59 time:412s fi-gdg-551 total:288 pass:179 dwarn:0 dfail:0 fail:1 skip:108 time:282s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:505s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:384s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:408s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:444s fi-ivb-3770 total:288 pass:255 dwarn:0 dfail:0 fail:0 skip:33 time:408s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:451s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:493s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:447s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:495s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:585s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:428s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:500s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:515s fi-skl-6700k2 total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:484s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:476s fi-skl-guc total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:403s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:427s fi-snb-2520m total:245 pass:211 dwarn:0 dfail:0 fail:0 skip:33 fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:389s
6697b76215fde36745a73b95453febbdb8c63991 drm-tip: 2018y-02m-20d-16h-40m-48s UTC integration manifest d9c1d55790c8 drm/i915: Include fence-hint for timeout warning
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8086/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: warning for drm/i915: Include fence-hint for timeout warning (rev2)
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: drm/i915: Include fence-hint for timeout warning (rev2)
URL : https://patchwork.freedesktop.org/series/20264/
State : warning
== Summary ==
Test kms_busy:
Subgroup extended-modeset-hang-newfb-render-c:
pass -> DMESG-WARN (shard-apl)
Subgroup extended-pageflip-hang-newfb-render-a:
pass -> DMESG-WARN (shard-apl)
Subgroup extended-pageflip-modeset-hang-oldfb-render-c:
pass -> DMESG-WARN (shard-hsw)
pass -> DMESG-WARN (shard-apl)
Subgroup extended-pageflip-modeset-hang-oldfb-render-a:
pass -> DMESG-WARN (shard-snb)
Test kms_flip:
Subgroup plain-flip-ts-check:
pass -> FAIL (shard-hsw) fdo#100368
Subgroup 2x-flip-vs-expired-vblank:
pass -> FAIL (shard-hsw) fdo#102887
Subgroup flip-vs-panning-vs-hang:
pass -> DMESG-WARN (shard-snb) fdo#103821
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-c:
pass -> FAIL (shard-apl) fdo#103927
Test gem_eio:
Subgroup in-flight-external:
pass -> FAIL (shard-hsw) fdo#104676
Test perf:
Subgroup blocking:
pass -> FAIL (shard-hsw) fdo#102252
Subgroup buffer-fill:
pass -> FAIL (shard-apl) fdo#103755fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103821 https://bugs.freedesktop.org/show_bug.cgi?id=103821
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#104676 https://bugs.freedesktop.org/show_bug.cgi?id=104676
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#103755 https://bugs.freedesktop.org/show_bug.cgi?id=103755
shard-apl total:3367 pass:1760 dwarn:4 dfail:0 fail:10 skip:1592 time:11990s shard-hsw total:3429 pass:1754 dwarn:2 dfail:0 fail:7 skip:1665 time:11533s shard-snb total:3429 pass:1348 dwarn:3 dfail:0 fail:2 skip:2076 time:6561s
Blacklisted hosts:
shard-kbl total:3429 pass:1926 dwarn:2 dfail:0 fail:9 skip:1492 time:9660s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_8086/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx