drm/i915/execlists: Lock the request while validating it during promotion
Subsystems (2)
PATCH 1/1 drm/i915/execlists: Lock the request while validating it during promotion
Since the request is already on the HW as we perform its validation, it and even its subsequent barrier may be concurrently retired before we process the assertions. If it is retired already and so off the HW, our assertions become void and we need to ignore them.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112363
--- drivers/gpu/drm/i915/gt/intel_lrc.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_lrc.c +19 -5
@@ -1291,38 +1291,52 @@ assert_pending_valid(const struct intel_engine_execlists *execlists, }for (port = execlists->pending; (rq = *port); port++) { +unsigned long flags; +bool ok = true; +if (ce == rq->hw_context) {GEM_TRACE_ERR ("Dup context:%llx in pending[%zd]\n" , ce->timeline->fence_context, port - execlists->pending);return false; } - ce = rq->hw_context; + +/* Hold tightly onto the lock to prevent concurrent retires! */ +spin_lock_irqsave (&rq->lock, flags); +if (i915_request_completed (rq)) -continue ; + goto unlock;if (i915_active_is_idle (&ce->active) && !i915_gem_context_is_kernel (ce->gem_context)) {GEM_TRACE_ERR ("Inactive context:%llx in pending[%zd]\n" , ce->timeline->fence_context, port - execlists->pending); -return false; + ok = false; + goto unlock; }if (!i915_vma_is_pinned (ce->state)) {GEM_TRACE_ERR ("Unpinned context:%llx in pending[%zd]\n" , ce->timeline->fence_context, port - execlists->pending); -return false; + ok = false; + goto unlock; }if (!i915_vma_is_pinned (ce->ring->vma)) {GEM_TRACE_ERR ("Unpinned ring:%llx in pending[%zd]\n" , ce->timeline->fence_context, port - execlists->pending); -return false; + ok = false; + goto unlock; } + +unlock: +spin_unlock_irqrestore (&rq->lock, flags); +if (!ok) +return false; }return ce;
Signature · 6 lines
2.24.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Chris Wilson (2019-11-21 10:20:12)
Quoted 7 lines
Since the request is already on the HW as we perform its validation, it and even its subsequent barrier may be concurrently retired before we process the assertions. If it is retired already and so off the HW, our assertions become void and we need to ignore them.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112363
Signed-off-by Chris Wilson <[email protected]>
Regards, Joonas
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915/execlists: Lock the request while validating it during promotion
In reply to Chris Wilson== Series Details ==
== Series Details ==
Series: drm/i915/execlists: Lock the request while validating it during promotion
URL : https://patchwork.freedesktop.org/series/69815/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7397 -> Patchwork_15369
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_15369 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_15369, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_15369:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_fence@basic-await-default:
- fi-skl-lmem: [PASS][1] -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-skl-lmem/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-skl-lmem/igt@[email protected]
- fi-skl-6600u: [PASS][3] -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-skl-6600u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-skl-6600u/igt@[email protected]
- fi-skl-6770hq: [PASS][5] -> [DMESG-WARN][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-skl-6770hq/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-skl-6770hq/igt@[email protected]
- fi-cml-s: [PASS][7] -> [DMESG-WARN][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-cml-s/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-cml-s/igt@[email protected]
- fi-icl-dsi: [PASS][9] -> [DMESG-WARN][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-dsi/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-dsi/igt@[email protected]
- fi-cml-u2: [PASS][11] -> [DMESG-WARN][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-cml-u2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-cml-u2/igt@[email protected]
- fi-icl-y: [PASS][13] -> [DMESG-WARN][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-y/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-y/igt@[email protected]
- fi-kbl-8809g: [PASS][15] -> [DMESG-WARN][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-8809g/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-8809g/igt@[email protected]
- fi-kbl-guc: [PASS][17] -> [DMESG-WARN][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-guc/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-guc/igt@[email protected]
- fi-kbl-7500u: [PASS][19] -> [DMESG-WARN][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-7500u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-7500u/igt@[email protected]
- fi-icl-u3: [PASS][21] -> [DMESG-WARN][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-u3/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-u3/igt@[email protected]
- fi-kbl-x1275: [PASS][23] -> [DMESG-WARN][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-x1275/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-x1275/igt@[email protected]
- fi-glk-dsi: [PASS][25] -> [DMESG-WARN][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-glk-dsi/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-glk-dsi/igt@[email protected]
- fi-whl-u: [PASS][27] -> [DMESG-WARN][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-whl-u/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-whl-u/igt@[email protected]
- fi-cfl-guc: [PASS][29] -> [DMESG-WARN][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-cfl-guc/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-cfl-guc/igt@[email protected]
- fi-icl-u2: [PASS][31] -> [DMESG-WARN][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-u2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-u2/igt@[email protected]
- fi-cfl-8700k: [PASS][33] -> [DMESG-WARN][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-cfl-8700k/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-cfl-8700k/igt@[email protected]
- fi-kbl-r: [PASS][35] -> [DMESG-WARN][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-r/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-r/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [DMESG-WARN][37]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-bdw-gvtdvm/igt@[email protected]
- fi-skl-guc: [PASS][38] -> [DMESG-WARN][39]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-skl-guc/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-skl-guc/igt@[email protected]
- fi-bdw-5557u: [PASS][40] -> [DMESG-WARN][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-bdw-5557u/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-bdw-5557u/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_exec_fence@basic-await-default:
- {fi-kbl-7560u}: [PASS][42] -> [DMESG-WARN][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-7560u/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-7560u/igt@[email protected]
- {fi-tgl-u}: [PASS][44] -> [DMESG-WARN][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-tgl-u/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-tgl-u/igt@[email protected]
* igt@runner@aborted:
- {fi-kbl-7560u}: NOTRUN -> [FAIL][46]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-7560u/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_15369 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fence@basic-await-default:
- fi-bxt-dsi: [PASS][47] -> [DMESG-WARN][48] ([fdo#109385])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-bxt-dsi/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-bxt-dsi/igt@[email protected]
* igt@gem_exec_suspend@basic-s0:
- fi-bsw-kefka: [PASS][49] -> [DMESG-WARN][50] ([fdo#112120])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-bsw-kefka/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-bsw-kefka/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][51] -> [FAIL][52] ([fdo#111045] / [fdo#111096])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-7500u/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-dsi: [PASS][53] -> [FAIL][54] ([fdo#103167])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-dsi/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-dsi/igt@[email protected]
#### Possible fixes ####
* igt@i915_module_load@reload:
- fi-icl-u2: [DMESG-WARN][55] ([fdo#110595]) -> [PASS][56] +2 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-u2/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-u2/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- {fi-kbl-7560u}: [INCOMPLETE][57] ([fdo#109964] / [fdo#112298]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-kbl-7560u/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-kbl-7560u/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-skl-lmem: [DMESG-WARN][59] ([fdo#112261]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-skl-lmem/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-skl-lmem/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-peppy: [DMESG-FAIL][61] ([fdo#112147]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-hsw-peppy/igt@i915_selftest@live_blt.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-hsw-peppy/igt@i915_selftest@live_blt.html
#### Warnings ####
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-icl-u2: [DMESG-WARN][63] ([fdo#102505] / [fdo#110390]) -> [FAIL][64] ([fdo#111045])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7397/fi-icl-u2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/fi-icl-u2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#109385]: https://bugs.freedesktop.org/show_bug.cgi?id=109385
[fdo#109964]: https://bugs.freedesktop.org/show_bug.cgi?id=109964
[fdo#110390]: https://bugs.freedesktop.org/show_bug.cgi?id=110390
[fdo#110595]: https://bugs.freedesktop.org/show_bug.cgi?id=110595
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#112120]: https://bugs.freedesktop.org/show_bug.cgi?id=112120
[fdo#112147]: https://bugs.freedesktop.org/show_bug.cgi?id=112147
[fdo#112261]: https://bugs.freedesktop.org/show_bug.cgi?id=112261
[fdo#112298]: https://bugs.freedesktop.org/show_bug.cgi?id=112298
Participating hosts (50 -> 39)
------------------------------
Missing (11): fi-kbl-soraka fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-gdg-551 fi-pnv-d510 fi-bdw-samus fi-icl-guc fi-byt-clapper fi-bsw-nick fi-skl-6700k2
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7397 -> Patchwork_15369
CI-20190529: 20190529
CI_DRM_7397: fbec270656a873c25d05a69d40c5335bedd68a67 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5299: 65fed6a79adea14f7bef6d55530da47d7731d370 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15369: 6303deea018adde727c01b0c02bbb8e70fe68eaa @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6303deea018a drm/i915/execlists: Lock the request while validating it during promotion
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15369/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx