Skip to contentSkip to conversation

drm/i915/gt: Set vm again after MI_SET_CONTEXT

Intel-gfx Chris Wilson 2 participants 2 messages Dec 12, 2019

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

Reloading the PD after MI_SET_CONTEXT, along with copious amounts of flushes, so far is making Baytrail more content.

---
 .../gpu/drm/i915/gt/intel_ring_submission.c   | 25 +++++++++++++++----
 1 file changed, 20 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/gt/intel_ring_submission.c +20 -5
index 5c22ca6f998a..336eb3f864c9 100644
@@ -1609,11 +1609,7 @@ static int switch_context(struct i915_request *rq)
 		 * post-sync op, this extra pass appears vital before a
 		 * mm switch!
 		 */
-		ret = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
-		if (ret)
-			return ret;
-
-		ret = flush_tlb(rq);
+		ret = rq->engine->emit_flush(rq, EMIT_FLUSH);
 		if (ret)
 			return ret;
 
@@ -1632,6 +1628,7 @@ static int switch_context(struct i915_request *rq)
 		ret = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
 		if (ret)
 			return ret;
+
 	}
 
 	if (ce->state) {
@@ -1645,6 +1642,24 @@ static int switch_context(struct i915_request *rq)
 			return ret;
 	}
 
+	if (vm) {
+		ret = rq->engine->emit_flush(rq, EMIT_FLUSH);
+		if (ret)
+			return ret;
+
+		ret = load_pd_dir(rq, i915_vm_to_ppgtt(vm), PP_DIR_DCLV_2G);
+		if (ret)
+			return ret;
+
+		ret = flush_tlb(rq);
+		if (ret)
+			return ret;
+
+		ret = rq->engine->emit_flush(rq, EMIT_INVALIDATE);
+		if (ret)
+			return ret;
+	}
+
 	ret = remap_l3(rq);
 	if (ret)
 		return ret;
Signature · 6 lines
2.24.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gt: Set vm again after MI_SET_CONTEXT

== Series Details ==

== Series Details ==

Series: drm/i915/gt: Set vm again after MI_SET_CONTEXT
URL : https://patchwork.freedesktop.org/series/70839/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_7552 -> Patchwork_15726
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_15726, 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_15726/index.html

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_close_race@basic-threads:
- fi-byt-n2820: [PASS][1] -> [TIMEOUT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-byt-n2820/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-byt-n2820/igt@[email protected]

* igt@runner@aborted:
- fi-byt-n2820: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-byt-n2820/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_module_load@reload-no-display:
- fi-kbl-x1275: [PASS][4] -> [DMESG-WARN][5] ([i915#62] / [i915#92])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-kbl-x1275/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-kbl-x1275/igt@[email protected]
- fi-skl-lmem: [PASS][6] -> [DMESG-WARN][7] ([i915#592])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-skl-lmem/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-skl-lmem/igt@[email protected]

* igt@i915_selftest@live_blt:
- fi-byt-j1900: [PASS][8] -> [DMESG-FAIL][9] ([i915#725])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-byt-j1900/igt@i915_selftest@live_blt.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-byt-j1900/igt@i915_selftest@live_blt.html

* igt@i915_selftest@live_gem_contexts:
- fi-hsw-peppy: [PASS][10] -> [INCOMPLETE][11] ([i915#694])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
- fi-cfl-guc: [PASS][12] -> [DMESG-FAIL][13] ([i915#730])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][14] -> [FAIL][15] ([fdo#111407])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-kbl-7500u/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-kbl-7500u/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_gttfill@basic:
- {fi-tgl-u}: [INCOMPLETE][16] ([fdo#111593]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-tgl-u/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-tgl-u/igt@[email protected]

* igt@gem_wait@basic-busy-all:
- fi-ivb-3770: [FAIL][18] -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-ivb-3770/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-ivb-3770/igt@[email protected]

* igt@i915_module_load@reload:
- fi-kbl-x1275: [DMESG-WARN][20] ([i915#62] / [i915#92]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-kbl-x1275/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-kbl-x1275/igt@[email protected]

* igt@i915_selftest@live_requests:
- fi-ivb-3770: [INCOMPLETE][22] ([i915#773]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-ivb-3770/igt@i915_selftest@live_requests.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-ivb-3770/igt@i915_selftest@live_requests.html

#### Warnings ####

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][24] ([i915#62] / [i915#92]) -> [DMESG-WARN][25] ([i915#62] / [i915#92] / [i915#95]) +3 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-kbl-x1275/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-kbl-x1275/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- fi-kbl-x1275: [DMESG-WARN][26] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][27] ([i915#62] / [i915#92]) +3 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7552/fi-kbl-x1275/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/fi-kbl-x1275/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#110943]: https://bugs.freedesktop.org/show_bug.cgi?id=110943
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111593]: https://bugs.freedesktop.org/show_bug.cgi?id=111593
[i915#584]: https://gitlab.freedesktop.org/drm/intel/issues/584
[i915#592]: https://gitlab.freedesktop.org/drm/intel/issues/592
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
[i915#730]: https://gitlab.freedesktop.org/drm/intel/issues/730
[i915#773]: https://gitlab.freedesktop.org/drm/intel/issues/773
[i915#781]: https://gitlab.freedesktop.org/drm/intel/issues/781
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95

Participating hosts (53 -> 45)
------------------------------

Missing (8): fi-icl-1065g7 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-gdg-551 fi-byt-clapper fi-bdw-samus

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

* CI: CI-20190529 -> None
* Linux: CI_DRM_7552 -> Patchwork_15726

CI-20190529: 20190529
CI_DRM_7552: 491a86a34502ffa5da51c110638b9cbc7dbd25c6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5346: 466b0e6cbcbaccff012b484d1fd7676364b37b93 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15726: eed32677c7af3ef0b59c39cfd657e3669f0cc196 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

eed32677c7af drm/i915/gt: Set vm again after MI_SET_CONTEXT

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15726/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx