Skip to contentSkip to conversation

Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

PATCH In review Chris Wilson 2 participants 6 messages Jun 3, 2020

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

PATCH 1/1 Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

This restores 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") by reverting commit 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"").

Our CI machines are recording a rare error where the CS events are out of order, leading to a machine death. Restoring the Wa_1607138340 (i.e. forcing a full restore on every context switch) prevents it. Whether or not is it the same root cause remains to be seen, but since the machine death is quite easy to hit on B0, it is unresolved.

Fixes 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"")

References: 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

Cc Mika Kuoppala <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Francesco Balestrieri <[email protected]>
---
 drivers/gpu/drm/i915/gt/intel_lrc.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/gt/intel_lrc.c +4 -0
index aac8da18694f..e5e709dccef4 100644
@@ -1520,6 +1520,10 @@ static u64 execlists_update_context(struct i915_request *rq)
 	 */
 	wmb();
 
+	/* Wa_1607138340:tgl */
+	if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
+		desc |= CTX_DESC_FORCE_RESTORE;
+
 	ce->lrc.desc &= ~CTX_DESC_FORCE_RESTORE;
 	return desc;
 }
Signature · 6 lines
2.20.1

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

[Intel-gfx] ✗ Fi.CI.BUILD: failure for Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

== Series Details ==

== Series Details ==

Series: Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")
URL : https://patchwork.freedesktop.org/series/77959/
State : failure

== Summary ==

CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/i915/gt/intel_lrc.o
In file included from drivers/gpu/drm/i915/gt/intel_lrc.c:136:0:
drivers/gpu/drm/i915/gt/intel_lrc.c: In function ‘execlists_update_context’:
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:21: error: ‘struct i915_request’ has no member named ‘i915’
if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))

                     ^
./drivers/gpu/drm/i915/i915_drv.h:1421:44: note: in definition of macro ‘IS_TIGERLAKE’
 #define IS_TIGERLAKE(dev_priv) IS_PLATFORM(dev_priv, INTEL_TIGERLAKE)
                                            ^~~~~~~~
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:6: note: in expansion of macro ‘IS_TGL_REVID’
  if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
      ^~~~~~~~~~~~
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:21: error: ‘struct i915_request’ has no member named ‘i915’
  if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
                     ^
./drivers/gpu/drm/i915/i915_drv.h:1297:33: note: in definition of macro ‘INTEL_REVID’
 #define INTEL_REVID(dev_priv) ((dev_priv)->drm.pdev->revision)
                                 ^~~~~~~~
./drivers/gpu/drm/i915/i915_drv.h:1542:22: note: in expansion of macro ‘IS_REVID’
  (IS_TIGERLAKE(p) && IS_REVID(p, since, until))
                      ^~~~~~~~
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:6: note: in expansion of macro ‘IS_TGL_REVID’
  if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
      ^~~~~~~~~~~~
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:21: error: ‘struct i915_request’ has no member named ‘i915’
  if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
                     ^
./drivers/gpu/drm/i915/i915_drv.h:1297:33: note: in definition of macro ‘INTEL_REVID’
 #define INTEL_REVID(dev_priv) ((dev_priv)->drm.pdev->revision)
                                 ^~~~~~~~
./drivers/gpu/drm/i915/i915_drv.h:1542:22: note: in expansion of macro ‘IS_REVID’
  (IS_TIGERLAKE(p) && IS_REVID(p, since, until))
                      ^~~~~~~~
drivers/gpu/drm/i915/gt/intel_lrc.c:1524:6: note: in expansion of macro ‘IS_TGL_REVID’
  if (IS_TGL_REVID(rq->i915, TGL_REVID_A0, TGL_REVID_B0))
      ^~~~~~~~~~~~

scripts/Makefile.build:266: recipe for target 'drivers/gpu/drm/i915/gt/intel_lrc.o' failed make[4]: *** [drivers/gpu/drm/i915/gt/intel_lrc.o] Error 1 scripts/Makefile.build:488: recipe for target 'drivers/gpu/drm/i915' failed make[3]: *** [drivers/gpu/drm/i915] Error 2
scripts/Makefile.build:488: recipe for target 'drivers/gpu/drm' failed make[2]: *** [drivers/gpu/drm] Error 2
scripts/Makefile.build:488: recipe for target 'drivers/gpu' failed
make[1]: *** [drivers/gpu] Error 2
Makefile:1729: recipe for target 'drivers' failed
make: *** [drivers] Error 2

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

#2 lore raw

PATCH 1/1 Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

In reply to Chris Wilson

This restores 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") by reverting commit 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"").

Our CI machines are recording a rare error where the CS events are out of order, leading to a machine death. Restoring the Wa_1607138340 (i.e. forcing a full restore on every context switch) prevents it. Whether or not is it the same root cause remains to be seen, but since the machine death is quite easy to hit on B0, it is unresolved.

Fixes 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"")

References: 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

Cc Mika Kuoppala <[email protected]>
Cc Tvrtko Ursulin <[email protected]>
Cc Francesco Balestrieri <[email protected]>
---
 drivers/gpu/drm/i915/gt/intel_lrc.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/i915/gt/intel_lrc.c +4 -0
index aac8da18694f..b28ea01375ba 100644
@@ -1520,6 +1520,10 @@ static u64 execlists_update_context(struct i915_request *rq)
 	 */
 	wmb();
 
+	/* Wa_1607138340:tgl */
+	if (IS_TGL_REVID(ce->engine->i915, TGL_REVID_A0, TGL_REVID_B0))
+		desc |= CTX_DESC_FORCE_RESTORE;
+
 	ce->lrc.desc &= ~CTX_DESC_FORCE_RESTORE;
 	return desc;
 }
Signature · 6 lines
2.20.1

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

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)
URL : https://patchwork.freedesktop.org/series/77959/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
86cd48e787fe Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")
-:6: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")'
#6: 
This restores 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") by reverting

-:7: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"")' #7:
commit 921f0c47f228 ("drm/i915: Revert "drm/i915/tgl: Wa_1607138340"").

-:16: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")' #16:
References: 08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

total: 3 errors, 0 warnings, 0 checks, 10 lines checked

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

#4 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)

In reply to Chris Wilson
== Series Details ==

== Series Details ==

Series: Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)
URL : https://patchwork.freedesktop.org/series/77959/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_8579 -> Patchwork_17855
====================================================

Summary
-------

**FAILURE**

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

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

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@hangcheck:
- fi-tgl-y: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-y/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-y/igt@i915_selftest@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_selftest@live@hangcheck:
- {fi-tgl-u}: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-u/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-u/igt@i915_selftest@[email protected]
- {fi-tgl-dsi}: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-dsi/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-dsi/igt@i915_selftest@[email protected]

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

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

### IGT changes ###

#### Possible fixes ####

* igt@i915_module_load@reload:
- fi-byt-n2820: [DMESG-WARN][7] ([i915#1982]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-byt-n2820/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-byt-n2820/igt@[email protected]

* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-tgl-dsi}: [DMESG-WARN][9] ([i915#1982]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-dsi/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-dsi/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-kefka: [DMESG-WARN][11] ([i915#1982]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-bsw-kefka/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-bsw-kefka/igt@[email protected]

* {igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1}:
- fi-icl-u2: [DMESG-WARN][13] ([i915#1982]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-icl-u2/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-icl-u2/igt@kms_flip@[email protected]

#### Warnings ####

* igt@gem_exec_suspend@basic-s0:
- fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][16] ([i915#1982] / [i915#62] / [i915#92])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-kbl-x1275/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-before-cursor-varying-size:
- fi-kbl-x1275: [DMESG-WARN][17] ([i915#62] / [i915#92]) -> [DMESG-WARN][18] ([i915#62] / [i915#92] / [i915#95]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-kbl-x1275/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-kbl-x1275/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
- fi-kbl-x1275: [DMESG-WARN][19] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][20] ([i915#62] / [i915#92]) +3 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-kbl-x1275/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/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).

[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95

Participating hosts (51 -> 43)
------------------------------

Missing (8): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-bwr-2160 fi-kbl-7560u fi-byt-clapper fi-bdw-samus

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

* Linux: CI_DRM_8579 -> Patchwork_17855

CI-20190529: 20190529
CI_DRM_8579: 289eb12c88c49a4ac8d325dc457d8878c7f5bdc0 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5694: a9b6c4c74bfddf7d3d2da3be08804fe315945cea @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17855: 86cd48e787fedad887373f1d9eabf80342fd8afe @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

86cd48e787fe Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340")

== Logs ==

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

#5 lore raw

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)

Quoting Patchwork (2020-06-03 17:51:43)

Quoted 45 lines

== Series Details ==

Series: Restore "08fff7aeddc9 ("drm/i915/tgl: Wa_1607138340") (rev2)
URL : https://patchwork.freedesktop.org/series/77959/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_8579 -> Patchwork_17855
====================================================

Summary
-------

**FAILURE**

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

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

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@hangcheck:
- fi-tgl-y: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-y/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-y/igt@i915_selftest@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

Quoted 7 lines

* igt@i915_selftest@live@hangcheck:
- {fi-tgl-u}: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-u/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-u/igt@i915_selftest@[email protected]
- {fi-tgl-dsi}: [PASS][5] -> [INCOMPLETE][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8579/fi-tgl-dsi/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17855/fi-tgl-dsi/igt@i915_selftest@[email protected]

Well that would be a compelling reason not to.

Let's just wait for working HW.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx