drm/i915/execlists: Peek at the next submission for error interrupts
Subsystems (2)
PATCH 1/2 drm/i915/execlists: Peek at the next submission for error interrupts
If we receive the error interrupt before the CS interrupt, we may find ourselves without an active request to reset, skipping the GPU reset. All because the attempt to reset was too early.
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 41 ++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +40 -1
@@ -2804,6 +2804,45 @@ static struct execlists_capture *capture_regs(struct intel_engine_cs *engine)return NULL ; } +static struct i915_request * +active_context (struct intel_engine_cs *engine,u32 ccid) +{ +const struct intel_engine_execlists *const el = &engine->execlists; +struct i915_request *const *port, *rq; + +/* +* Use the most recent result from process_csb(), but just in case +* we trigger an error (via interrupt) before the first CS event has +* been written, peek at the next submission. +*/ + +for (port = el->active; (rq = *port); port++) { +if (upper_32_bits (rq->context->lrc_desc) == ccid) { +ENGINE_TRACE (engine, +"ccid found at active:%zd\n" , + port - el->active); +return rq; + } + } + +for (port = el->pending; (rq = *port); port++) { +if (upper_32_bits (rq->context->lrc_desc) == ccid) { +ENGINE_TRACE (engine, +"ccid found at pending:%zd\n" , + port - el->pending); +return rq; + } + } + +ENGINE_TRACE (engine,"ccid:%x not found\n" , ccid); +return NULL ; +} + +static u32 active_ccid (struct intel_engine_cs *engine) +{ +return ENGINE_READ_FW (engine,RING_EXECLIST_STATUS_HI ); +} +static bool execlists_capture (struct intel_engine_cs *engine) {struct execlists_capture *cap;
@@ -2821,7 +2860,7 @@ static bool execlists_capture(struct intel_engine_cs *engine)return true;spin_lock_irq (&engine->active.lock); - cap->rq =execlists_active (&engine->execlists); + cap->rq =active_context (engine,active_ccid (engine));if (cap->rq) { cap->rq =active_request (cap->rq->context->timeline, cap->rq); cap->rq =i915_request_get_rcu (cap->rq);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915/execlists: Record the active CCID from before reset
If we cannot trust the reset will flush out the CS event queue such that process_csb() reports an accurate view of HW, we will need to search the active and pending contexts to determine which was actually running at the time we issued the reset.
--- drivers/gpu/drm/i915/gt/intel_engine_types.h | 5 +++++ drivers/gpu/drm/i915/gt/intel_lrc.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_engine_types.h +5 -0
@@ -166,6 +166,11 @@ struct intel_engine_execlists {*/ u32 error_interrupt; +/** +* @reset_ccid: Active CCID [EXECLISTS_STATUS_HI] at the time of reset +*/ +u32 reset_ccid; +/** * @no_priolist: priority lists disabled */
drivers/gpu/drm/i915/gt/intel_lrc.c +3 -1
@@ -3724,6 +3724,8 @@ static void execlists_reset_prepare(struct intel_engine_cs *engine)*/ ring_set_paused (engine,1 );intel_engine_stop_cs (engine); + + engine->execlists.reset_ccid =active_ccid (engine); }static void reset_csb_pointers (struct intel_engine_cs *engine)
@@ -3798,7 +3800,7 @@ static void __execlists_reset(struct intel_engine_cs *engine, bool stalled)* its request, it was still running at the time of the * reset and will have been clobbered. */ - rq =execlists_active (execlists); + rq =active_context (engine, engine->execlists.reset_ccid);if (!rq) goto unwind;
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 2/2] drm/i915/execlists: Record the active CCID from before reset
Quoted 6 lines · Chris Wilson
If we cannot trust the reset will flush out the CS event queue such that
process_csb()reports an accurate view of HW, we will need to search the active and pending contexts to determine which was actually running at the time we issued the reset.Signed-off-by Chris Wilson <[email protected]>
Quoted 50 lines
--- drivers/gpu/drm/i915/gt/intel_engine_types.h | 5 +++++ drivers/gpu/drm/i915/gt/intel_lrc.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/gt/intel_engine_types.h +5
-0@@ -166,6 +166,11 @@ struct intel_engine_execlists {*/ u32 error_interrupt; +/** +* @reset_ccid: Active CCID [EXECLISTS_STATUS_HI] at the time of reset +*/ +u32 reset_ccid; +/** * @no_priolist: priority lists disabled */ drivers/gpu/drm/i915/gt/intel_lrc.c +3
-1@@ -3724,6 +3724,8 @@ static void execlists_reset_prepare(struct intel_engine_cs *engine)*/ ring_set_paused (engine,1 );intel_engine_stop_cs (engine); + + engine->execlists.reset_ccid =active_ccid (engine); }static void reset_csb_pointers (struct intel_engine_cs *engine)@@ -3798,7 +3800,7 @@ static void __execlists_reset(struct intel_engine_cs *engine, bool stalled)* its request, it was still running at the time of the * reset and will have been clobbered. */ - rq =execlists_active (execlists); + rq =active_context (engine, engine->execlists.reset_ccid);if (!rq) goto unwind;Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/execlists: Peek at the next submission for error interrupts
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/execlists: Peek at the next submission for error interrupts
URL : https://patchwork.freedesktop.org/series/75362/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8231 -> Patchwork_17168
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/index.html
Known issues
------------
Here are the changes found in Patchwork_17168 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-cml-u2: [PASS][1] -> [DMESG-WARN][2] ([IGT#4])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/fi-cml-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/fi-cml-u2/igt@[email protected]
#### Possible fixes ####
* igt@gem_wait@basic-await-all:
- fi-byt-n2820: [FAIL][3] -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/fi-byt-n2820/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/fi-byt-n2820/igt@[email protected]
[IGT#4]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/4
Participating hosts (49 -> 43)
------------------------------
Additional (2): fi-skl-6770hq fi-tgl-dsi
Missing (8): fi-hsw-4200u fi-byt-j1900 fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-kbl-7560u fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8231 -> Patchwork_17168
CI-20190529: 20190529
CI_DRM_8231: e262993871d01ae0ee71477ffc92752305cd2bb5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5550: 98927dfde17aecaecfe67bb9853ceca326ca2b23 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17168: cfc4b332219941e947762ea13f2e25a88d86c734 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
cfc4b3322199 drm/i915/execlists: Record the active CCID from before reset c77a5b25db60 drm/i915/execlists: Peek at the next submission for error interrupts
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/2] drm/i915/execlists: Peek at the next submission for error interrupts
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/execlists: Peek at the next submission for error interrupts
URL : https://patchwork.freedesktop.org/series/75362/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8231_full -> Patchwork_17168_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_17168_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_17168_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_17168_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_eio@unwedge-stress:
- shard-hsw: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-hsw4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-hsw2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_17168_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_schedule@implicit-write-read-bsd:
- shard-iclb: [PASS][3] -> [SKIP][4] ([i915#677])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb8/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb2/igt@[email protected]
* igt@gem_exec_schedule@implicit-write-read-bsd2:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#109276] / [i915#677])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@preempt-queue-bsd1:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#109276]) +14 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb3/igt@[email protected]
* igt@gem_exec_schedule@wide-bsd:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#112146]) +6 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb1/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-apl: [PASS][11] -> [FAIL][12] ([i915#1595])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-apl4/igt@[email protected]
* igt@i915_selftest@live@execlists:
- shard-kbl: [PASS][13] -> [INCOMPLETE][14] ([CI#80] / [i915#656])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl3/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl7/igt@i915_selftest@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][15] -> [DMESG-WARN][16] ([i915#180]) +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: [PASS][17] -> [INCOMPLETE][18] ([i915#300])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl10/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-glk: [PASS][19] -> [FAIL][20] ([i915#72])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-glk5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-glk4/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [PASS][21] -> [DMESG-WARN][22] ([i915#180] / [i915#95]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl4/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-apl4/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-glk: [PASS][23] -> [FAIL][24] ([i915#899])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-glk6/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-glk1/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109441])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb7/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@perf_pmu@busy-vcs1:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#112080]) +7 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb4/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb3/igt@[email protected]
#### Possible fixes ####
* {igt@gem_ctx_isolation@preservation-s3@vcs0}:
- shard-skl: [INCOMPLETE][29] ([i915#198]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl6/igt@gem_ctx_isolation@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl3/igt@gem_ctx_isolation@[email protected]
* igt@gem_exec_schedule@implicit-both-bsd:
- shard-iclb: [SKIP][31] ([i915#677]) -> [PASS][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@implicit-read-write-bsd1:
- shard-iclb: [SKIP][33] ([fdo#109276] / [i915#677]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb8/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@in-order-bsd:
- shard-iclb: [SKIP][35] ([fdo#112146]) -> [PASS][36] +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb7/igt@[email protected]
* igt@gem_exec_schedule@pi-shared-iova-bsd2:
- shard-iclb: [SKIP][37] ([fdo#109276]) -> [PASS][38] +10 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb8/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb1/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-apl: [DMESG-WARN][39] ([i915#716]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl1/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-apl2/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][41] ([i915#454]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb6/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb8/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-glk: [FAIL][43] ([i915#1527]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-glk6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-glk1/igt@[email protected]
- shard-hsw: [FAIL][45] ([i915#1066]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-hsw1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-hsw7/igt@[email protected]
* igt@kms_atomic_transition@2x-modeset-transitions-nonblocking:
- shard-hsw: [SKIP][47] ([fdo#109271]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-hsw1/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-hsw4/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [DMESG-WARN][49] ([i915#180]) -> [PASS][50] +6 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl3/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [FAIL][51] ([i915#79]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl5/igt@[email protected]
* igt@kms_flip@flip-vs-rmfb-interruptible:
- shard-kbl: [DMESG-WARN][53] ([i915#1297]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl2/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl3/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-snb: [INCOMPLETE][55] ([i915#82]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-snb1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-snb5/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: [DMESG-WARN][57] ([i915#180]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl6/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-apl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [DMESG-WARN][59] ([i915#180] / [i915#93] / [i915#95]) -> [PASS][60] +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl4/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl6/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend:
- shard-skl: [FAIL][61] ([i915#1188]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl9/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl9/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [FAIL][63] ([fdo#108145] / [i915#265]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl9/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl10/igt@[email protected]
* igt@kms_setmode@basic:
- shard-hsw: [FAIL][65] ([i915#31]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-hsw1/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-hsw1/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-idle-hang:
- shard-skl: [INCOMPLETE][67] -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-skl5/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-skl6/igt@[email protected]
* {igt@perf@blocking-parameterized}:
- shard-hsw: [FAIL][69] ([i915#1542]) -> [PASS][70]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-hsw8/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-hsw7/igt@[email protected]
* igt@perf_pmu@busy-check-all-vcs1:
- shard-iclb: [SKIP][71] ([fdo#112080]) -> [PASS][72] +9 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb8/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc3co-vpb-simulation:
- shard-iclb: [SKIP][73] ([i915#588]) -> [SKIP][74] ([i915#658])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-iclb2/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-iclb7/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-tglb: [SKIP][75] ([i915#468]) -> [FAIL][76] ([i915#454])
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-tglb2/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-tglb1/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-kbl: [TIMEOUT][77] ([i915#1319]) -> [FAIL][78] ([fdo#110321] / [fdo#110336])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl3/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: [FAIL][79] ([i915#1423] / [i915#92]) -> [FAIL][80] ([i915#656])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-kbl3/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-kbl7/igt@[email protected]
- shard-apl: ([FAIL][81], [FAIL][82]) ([i915#1423] / [i915#716]) -> [FAIL][83] ([i915#1423])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl2/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8231/shard-apl1/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/shard-apl6/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[CI#80]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/80
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110321]: https://bugs.freedesktop.org/show_bug.cgi?id=110321
[fdo#110336]: https://bugs.freedesktop.org/show_bug.cgi?id=110336
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[i915#1066]: https://gitlab.freedesktop.org/drm/intel/issues/1066
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1297]: https://gitlab.freedesktop.org/drm/intel/issues/1297
[i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319
[i915#1423]: https://gitlab.freedesktop.org/drm/intel/issues/1423
[i915#1527]: https://gitlab.freedesktop.org/drm/intel/issues/1527
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#1595]: https://gitlab.freedesktop.org/drm/intel/issues/1595
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#198]: https://gitlab.freedesktop.org/drm/intel/issues/198
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#588]: https://gitlab.freedesktop.org/drm/intel/issues/588
[i915#656]: https://gitlab.freedesktop.org/drm/intel/issues/656
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#72]: https://gitlab.freedesktop.org/drm/intel/issues/72
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#93]: https://gitlab.freedesktop.org/drm/intel/issues/93
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8231 -> Patchwork_17168
CI-20190529: 20190529
CI_DRM_8231: e262993871d01ae0ee71477ffc92752305cd2bb5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5550: 98927dfde17aecaecfe67bb9853ceca326ca2b23 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17168: cfc4b332219941e947762ea13f2e25a88d86c734 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17168/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 4 lines · Chris Wilson
If we receive the error interrupt before the CS interrupt, we may find ourselves without an active request to reset, skipping the GPU reset. All because the attempt to reset was too early.
With the tracing, we will see the the out of sync situations so
Quoted 71 lines
Signed-off-by Chris Wilson <[email protected]>--- drivers/gpu/drm/i915/gt/intel_lrc.c | 41 ++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/gt/intel_lrc.c +40
-1@@ -2804,6 +2804,45 @@ static struct execlists_capture *capture_regs(struct intel_engine_cs *engine)return NULL ; } +static struct i915_request * +active_context (struct intel_engine_cs *engine,u32 ccid) +{ +const struct intel_engine_execlists *const el = &engine->execlists; +struct i915_request *const *port, *rq; + +/* +* Use the most recent result from process_csb(), but just in case +* we trigger an error (via interrupt) before the first CS event has +* been written, peek at the next submission. +*/ + +for (port = el->active; (rq = *port); port++) { +if (upper_32_bits (rq->context->lrc_desc) == ccid) { +ENGINE_TRACE (engine, +"ccid found at active:%zd\n" , + port - el->active); +return rq; + } + } + +for (port = el->pending; (rq = *port); port++) { +if (upper_32_bits (rq->context->lrc_desc) == ccid) { +ENGINE_TRACE (engine, +"ccid found at pending:%zd\n" , + port - el->pending); +return rq; + } + } + +ENGINE_TRACE (engine,"ccid:%x not found\n" , ccid); +return NULL ; +} + +static u32 active_ccid (struct intel_engine_cs *engine) +{ +return ENGINE_READ_FW (engine,RING_EXECLIST_STATUS_HI ); +} +static bool execlists_capture (struct intel_engine_cs *engine) {struct execlists_capture *cap;@@ -2821,7 +2860,7 @@ static bool execlists_capture(struct intel_engine_cs *engine)return true;spin_lock_irq (&engine->active.lock); - cap->rq =execlists_active (&engine->execlists); + cap->rq =active_context (engine,active_ccid (engine));if (cap->rq) { cap->rq =active_request (cap->rq->context->timeline, cap->rq); cap->rq =i915_request_get_rcu (cap->rq);Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Mika Kuoppala (2020-04-02 21:16:52)
Quoted 11 lines
Quoted 4 lines · Chris Wilson
If we receive the error interrupt before the CS interrupt, we may find ourselves without an active request to reset, skipping the GPU reset. All because the attempt to reset was too early.
With the tracing, we will see the the out of sync situations so
Reviewed-by Mika Kuoppala <[email protected]>
I think that's the main benefit and it makes sense to have this patch by itself so that we can get a bit more info perhaps next time. Then if it keeps on failing, that might justify trying the second patch. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx