drm/i915/guc: Enable DUAL_QUEUE_WA for newer platforms
Subsystems (2)
PATCH v2 1/1 drm/i915/guc: Enable DUAL_QUEUE_WA for newer platforms
For newer platforms (post DG2) hardware intentionally stalls on submisstion of concurrent RCS and CCS of different address spaces. With this workaround GuC will never schedule such conlicting contexts; preventing detection of a stall as a hang.
GuC specs recommend to enable this for all platforms starting from MTL supporting CCS.
v2: Use existing macros for version check. (Jani)
--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc.c +6 -3
@@ -313,8 +313,12 @@ static u32 guc_ctl_wa_flags(struct intel_guc *guc)* * The same WA bit is used for both and 22011391025 is applicable to * all DG2. +* +* Platforms post DG2 prevent behavior in hardware. This is implicitly +* enabled to give guc management over CCS scheduling. */ -if (IS_DG2 (gt->i915)) +if (IS_DG2 (gt->i915) || + (CCS_MASK (gt) &&GRAPHICS_VER_FULL ((gt)->i915) >=IP_VER (12 ,70 ))) flags |=GUC_WA_DUAL_QUEUE ;/* Wa_22011802037: graphics version 11/12 */
@@ -322,8 +326,7 @@ static u32 guc_ctl_wa_flags(struct intel_guc *guc) flags |=GUC_WA_PRE_PARSER ;/* -* Wa_22012727170 -* Wa_22012727685 +* Wa_22012727170 Wa_22012727685 */ if (IS_DG2_G11 (gt->i915)) flags |=GUC_WA_CONTEXT_ISOLATION ;
Signature · 1 line
2.49.0
Patchwork
CI✗ i915.CI.BAT: failure for drm/i915/guc: Enable DUAL_QUEUE_WA for newer platforms (rev2)
== Series Details ==
== Series Details ==
Series: drm/i915/guc: Enable DUAL_QUEUE_WA for newer platforms (rev2)
URL : https://patchwork.freedesktop.org/series/147987/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_16471 -> Patchwork_147987v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_147987v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_147987v2, 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_147987v2/index.html
Participating hosts (43 -> 43)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_147987v2:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@ring_submission:
- bat-dg2-14: [PASS][1] -> [ABORT][2] +1 other test abort
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-dg2-14/igt@i915_selftest@live@ring_submission.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-dg2-14/igt@i915_selftest@live@ring_submission.html
Known issues
------------
Here are the changes found in Patchwork_147987v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@workarounds:
- bat-mtlp-9: [PASS][3] -> [DMESG-FAIL][4] ([i915#12061]) +1 other test dmesg-fail
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-mtlp-9/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-mtlp-9/igt@i915_selftest@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@module-reload:
- fi-kbl-guc: [ABORT][5] ([i915#13571]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/fi-kbl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/fi-kbl-guc/igt@[email protected]
* igt@i915_selftest@live:
- bat-mtlp-8: [DMESG-FAIL][7] ([i915#12061]) -> [PASS][8] +1 other test pass
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-mtlp-8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-mtlp-8/igt@[email protected]
- bat-arlh-3: [INCOMPLETE][9] -> [PASS][10] +1 other test pass
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-arlh-3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-arlh-3/igt@[email protected]
* igt@i915_selftest@live@workarounds:
- bat-arlh-2: [DMESG-FAIL][11] ([i915#12061]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-arlh-2/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-arlh-2/igt@i915_selftest@[email protected]
- bat-arls-6: [DMESG-FAIL][13] ([i915#12061]) -> [PASS][14] +1 other test pass
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16471/bat-arls-6/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/bat-arls-6/igt@i915_selftest@[email protected]
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13571]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13571
Build changes
-------------
* Linux: CI_DRM_16471 -> Patchwork_147987v2
CI-20190529: 20190529
CI_DRM_16471: 5752a8bfd947553d8006307e10d1bd5abdfc8039 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8342: 8342
Patchwork_147987v2: 5752a8bfd947553d8006307e10d1bd5abdfc8039 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_147987v2/index.html
Quoted 2 lines · Julia Filipchuk
For newer platforms (post DG2) hardware intentionally stalls on submisstion of concurrent RCS and CCS of different address spaces. With
typo submisstion
Quoted 18 lines
this workaround GuC will never schedule such conlicting contexts; preventing detection of a stall as a hang.
GuC specs recommend to enable this for all platforms starting from MTL supporting CCS.
v2: Use existing macros for version check. (Jani)
Signed-off-by Julia Filipchuk <[email protected]>--- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/gt/uc/intel_guc.c +0
-0
drivers/gpu/drm/i915/gt/uc/intel_guc.c static u32 guc_ctl_wa_flags(struct intel_guc *guc) · line 318
Quoted 6 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +3
-0@@ -313,8 +313,12 @@ static u32 guc_ctl_wa_flags(struct intel_guc *guc)* * The same WA bit is used for both and 22011391025 is applicable to * all DG2. +* +* Platforms post DG2 prevent behavior in hardware. This is implicitly +* enabled to give guc management over CCS scheduling.
Saying "implicitly enabled" here is a bit confusing, since we're doing an explicit enabling of the flag. Also, GuC already has management over CCS scheduling, we just want to change the way it does the scheduling. Maybe just say something like:
"Platforms post DG2 fix this issue in hardware by stalling submissions; to have the GuC avoid such stalls, we enable this flag on those platforms as well."
drivers/gpu/drm/i915/gt/uc/intel_guc.c static u32 guc_ctl_wa_flags(struct intel_guc *guc) · line 321
Quoted 4 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +2
-1*/ -if (IS_DG2 (gt->i915)) +if (IS_DG2 (gt->i915) || + (CCS_MASK (gt) &&GRAPHICS_VER_FULL ((gt)->i915) >=IP_VER (12 ,70 )))
Unneeded parentheses around the gt variable
drivers/gpu/drm/i915/gt/uc/intel_guc.c static u32 guc_ctl_wa_flags(struct intel_guc *guc) · line 329
Quoted 10 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +1
-2flags |=GUC_WA_DUAL_QUEUE ;/* Wa_22011802037: graphics version 11/12 */ @@ -322,8 +326,7 @@ static u32 guc_ctl_wa_flags(struct intel_guc *guc) flags |=GUC_WA_PRE_PARSER ;/* -* Wa_22012727170 -* Wa_22012727685 +* Wa_22012727170 Wa_22012727685
unneeded change.
Daniele
Quoted 3 lines
drivers/gpu/drm/i915/gt/uc/intel_guc.c +0
-0*/ if (IS_DG2_G11 (gt->i915)) flags |=GUC_WA_CONTEXT_ISOLATION ;