Skip to contentSkip to conversation

FOR-CI: drm/i915/guc: Move destroy context at end of reset prepare

PATCH New Zhanjun Dong 2 participants 3 messages Oct 21, 2024 – Oct 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover FOR-CI: drm/i915/guc: Move destroy context at end of reset prepare

During GuC reset prepare, interrupt disabled before hardware reset, although interrupt disabled, the ct is still enabled, the host-GuC communication is still active.
Move the destroy part to the end of reset preparation to avoid the situation of host processing G2H messages about an context, but the context already been destroyed.

Zhanjun Dong (1):
drm/i915/guc: Move destroy context at end of reset prepare

 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/1 drm/i915/guc: Move destroy context at end of reset prepare

During GuC reset prepare, interrupt disabled before hardware reset, although interrupt disabled, the ct is still enabled, the host-GuC communication is still active.
Move the destroy part to the end of reset preparation to avoid the situation of host processing G2H messages about an context, but the context already been destroyed.

---
 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +2 -1
index 9ede6f240d79..858756eb4eb9 100644
@@ -1689,10 +1689,11 @@ void intel_guc_submission_reset_prepare(struct intel_guc *guc)
 	spin_unlock_irq(guc_to_gt(guc)->irq_lock);
 
 	guc_flush_submissions(guc);
-	guc_flush_destroyed_contexts(guc);
 	flush_work(&guc->ct.requests.worker);
 
 	scrub_guc_desc_for_outstanding_g2h(guc);
+	guc_flush_destroyed_contexts(guc);
+
 }
 
 static struct intel_engine_cs *
Signature · 1 line
2.34.1
#2 lore raw

✗ Fi.CI.BAT: failure for FOR-CI: drm/i915/guc: Move destroy context at end of reset prepare

In reply to Zhanjun Dong
== Series Details ==

== Series Details ==

Series: FOR-CI: drm/i915/guc: Move destroy context at end of reset prepare
URL : https://patchwork.freedesktop.org/series/140284/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_15574 -> Patchwork_140284v1
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_140284v1 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_140284v1, please notify your bug team ([email protected]) 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_140284v1/index.html

Participating hosts (44 -> 41)
------------------------------

Additional (1): bat-arls-2
Missing (4): bat-dg2-14 bat-dg2-8 bat-dg2-11 fi-snb-2520m

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_140284v1:

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_gttfill@basic:
- bat-arls-1: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15574/bat-arls-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-1/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_140284v1 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-arls-2: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- bat-arls-2: NOTRUN -> [SKIP][4] ([i915#10213] / [i915#11671]) +3 other tests skip
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@gem_mmap@basic:
- bat-arls-2: NOTRUN -> [SKIP][5] ([i915#11343] / [i915#4083])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@gem_mmap_gtt@basic:
- bat-arls-2: NOTRUN -> [SKIP][6] ([i915#10196] / [i915#4077]) +2 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-arls-2: NOTRUN -> [SKIP][7] ([i915#10197] / [i915#10211] / [i915#4079])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-arls-2: NOTRUN -> [SKIP][8] ([i915#10206] / [i915#4079])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rps@basic-api:
- bat-arls-2: NOTRUN -> [SKIP][9] ([i915#10209] / [i915#11681])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@i915_selftest@live:
- bat-arlh-2: [PASS][10] -> [ABORT][11] ([i915#12133])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15574/bat-arlh-2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arlh-2/igt@[email protected]
- bat-arls-2: NOTRUN -> [DMESG-FAIL][12] ([i915#10262] / [i915#10341] / [i915#12133])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@i915_selftest@live@evict:
- bat-arls-2: NOTRUN -> [DMESG-WARN][13] ([i915#10341])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@late_gt_pm:
- bat-arls-2: NOTRUN -> [DMESG-FAIL][14] ([i915#10262]) +14 other tests dmesg-fail
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@i915_selftest@live@late_gt_pm.html

* igt@i915_selftest@live@workarounds:
- bat-arlh-2: [PASS][15] -> [ABORT][16] ([i915#12061])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15574/bat-arlh-2/igt@i915_selftest@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arlh-2/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-arls-2: NOTRUN -> [SKIP][17] ([i915#10200] / [i915#12203])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- bat-arls-2: NOTRUN -> [SKIP][18] ([i915#10200]) +8 other tests skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-arls-2: NOTRUN -> [SKIP][19] ([i915#10202] / [i915#11346]) +1 other test skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-arls-2: NOTRUN -> [SKIP][20] ([i915#11346] / [i915#9886])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-arls-2: NOTRUN -> [SKIP][21] ([i915#10207] / [i915#11346])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt:
- bat-arls-2: NOTRUN -> [SKIP][22] ([i915#11346] / [i915#4077] / [i915#9688])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt@edp-1:
- bat-arls-2: NOTRUN -> [SKIP][23] ([i915#10196] / [i915#4077] / [i915#9688])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@kms_psr@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-arls-2: NOTRUN -> [SKIP][24] ([i915#10208] / [i915#8809])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@prime_vgem@basic-fence-mmap:
- bat-arls-2: NOTRUN -> [SKIP][25] ([i915#10196] / [i915#3708] / [i915#4077]) +1 other test skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-arls-2: NOTRUN -> [SKIP][26] ([i915#10212] / [i915#3708])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-arls-2: NOTRUN -> [SKIP][27] ([i915#10214] / [i915#3708])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-arls-2: NOTRUN -> [SKIP][28] ([i915#10216] / [i915#3708])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-arls-2/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live:
- bat-mtlp-8: [ABORT][29] ([i915#12216]) -> [PASS][30] +1 other test pass
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_15574/bat-mtlp-8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/bat-mtlp-8/igt@[email protected]

[i915#10196]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10196
[i915#10197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10200
[i915#10202]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10202
[i915#10206]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10206
[i915#10207]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10207
[i915#10208]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10211]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10211
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#10262]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10262
[i915#10341]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10341
[i915#11343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11343
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11671]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11671
[i915#11681]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11681
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12133]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12133
[i915#12203]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12203
[i915#12216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12216
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318
[i915#9688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9688
[i915#9886]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9886

Build changes
-------------

* Linux: CI_DRM_15574 -> Patchwork_140284v1

CI-20190529: 20190529
CI_DRM_15574: aa0898115bcff3eda6d021cc66eb8a1c3b264c56 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8080: 20fcbc59241a16c84d12f4f6ba390fb46fd65a36 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_140284v1: aa0898115bcff3eda6d021cc66eb8a1c3b264c56 @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_140284v1/index.html