lib/gt: Always eat the unwanted error state
PATCH 1/1 lib/gt: Always eat the unwanted error state
We only suppress the error state from the context, iff we triggering the GPU reset by hangcheck (igt_hang_ring). If we trigger an immediate reset via igt_force_gpu_reset(), we will populate the error-state but not free it because we thought we have it suppressed by the context parameter. Always eat the error after we expect a GPU reset, and have not specified that we want to keep it.
The side-effect of keeping the error-state around after we deliberately created it is that subsequent GPU hangs are not prominently recorded, as the kernel believes they are secondary hangs (and we only announce the first).
--- lib/igt_gt.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-)
lib/igt_gt.c +16 -15
@@ -194,17 +194,18 @@ igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags)void igt_disallow_hang (int fd,igt_hang_t arg) { -struct local_i915_gem_context_param param;context_set_ban (fd, arg.ctx, arg.ban);if ((arg.flags &HANG_ALLOW_CAPTURE ) ==0 ) { - param.context = arg.ctx; - param.size =0 ; - param.param =LOCAL_CONTEXT_PARAM_NO_ERROR_CAPTURE ; - param.value =0 ; -if (__gem_context_set_param (fd, ¶m)) -eat_error_state (fd); +struct local_i915_gem_context_param param = { + .context = arg.ctx, + .param =LOCAL_CONTEXT_PARAM_NO_ERROR_CAPTURE , + .value =0 , + }; +__gem_context_set_param (fd, ¶m); + +eat_error_state (fd); } }
@@ -360,8 +361,6 @@ igt_hang_t igt_hang_ring(int fd, int ring)*/ void igt_post_hang_ring (int fd,igt_hang_t arg) { -struct local_i915_gem_context_param param; -if (arg.handle ==0 )return ;
@@ -372,12 +371,14 @@ void igt_post_hang_ring(int fd, igt_hang_t arg)context_set_ban (fd, arg.ctx, arg.ban);if ((arg.flags &HANG_ALLOW_CAPTURE ) ==0 ) { - param.context = arg.ctx; - param.size =0 ; - param.param =LOCAL_CONTEXT_PARAM_NO_ERROR_CAPTURE ; - param.value =0 ; -if (__gem_context_set_param (fd, ¶m)) -eat_error_state (fd); +struct local_i915_gem_context_param param = { + .context = arg.ctx, + .param =LOCAL_CONTEXT_PARAM_NO_ERROR_CAPTURE , + .value =0 , + }; +__gem_context_set_param (fd, ¶m); + +eat_error_state (fd); } }
Signature · 6 lines
2.15.0.rc1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for lib/gt: Always eat the unwanted error state
== Series Details ==
== Series Details ==
Series: lib/gt: Always eat the unwanted error state
URL : https://patchwork.freedesktop.org/series/32364/
State : failure
== Summary ==
IGT patchset tested on top of latest successful build 9ba736aecc2a3cb34a2aeec8d417f66390e0c82b tools/intel_vbt_decode: abstract child devices printing more
with latest DRM-Tip kernel build CI_DRM_326975b85b0dce2f drm-tip: 2017y-10m-20d-10h-07m-16s UTC integration manifest
No testlist changes.
Test kms_pipe_crc_basic:
Subgroup nonblocking-crc-pipe-c:
pass -> INCOMPLETE (fi-skl-6700hq)
Test prime_vgem:
Subgroup basic-fence-flip:
dmesg-warn -> PASS (fi-kbl-7567u) fdo#103165 +1fdo#103165 https://bugs.freedesktop.org/show_bug.cgi?id=103165
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:443s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:458s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:371s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:524s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:264s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:504s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:498s fi-byt-j1900 total:289 pass:253 dwarn:1 dfail:0 fail:0 skip:35 time:492s fi-byt-n2820 total:289 pass:249 dwarn:1 dfail:0 fail:0 skip:39 time:492s fi-cfl-s total:289 pass:253 dwarn:4 dfail:0 fail:0 skip:32 time:551s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:420s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:250s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:578s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:451s fi-hsw-4770r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:422s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:436s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:483s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:460s fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:488s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:571s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:481s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:583s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:547s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:451s fi-skl-6700hq total:237 pass:212 dwarn:0 dfail:0 fail:0 skip:24 fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:522s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:501s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:463s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:563s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:422s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_396/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Chris Wilson
We only suppress the error state from the context, iff we triggering the GPU reset by hangcheck (
igt_hang_ring). If we trigger an immediate reset viaigt_force_gpu_reset(), we will populate the error-state but not free it because we thought we have it suppressed by the context parameter. Always eat the error after we expect a GPU reset, and have not specified that we want to keep it.
Quoted 6 lines
The side-effect of keeping the error-state around after we deliberately created it is that subsequent GPU hangs are not prominently recorded, as the kernel believes they are secondary hangs (and we only announce the first).
Signed-off-by Chris Wilson <[email protected]>
-Michał
Quoted 3 lines
--- lib/igt_gt.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for lib/gt: Always eat the unwanted error state
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: lib/gt: Always eat the unwanted error state
URL : https://patchwork.freedesktop.org/series/32364/
State : failure
== Summary ==
Series 32364 revision 1 was fully merged or fully failed: no git log
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_396/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx