drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset
Subsystems (2)
PATCH 1/1 drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset
Starting with Xe_LP+, GFX_MSTR_IRQ contains status bits that have W1C behavior. If we do not properly reset them, we would miss delivery of interrupts if a pending bit is set when enabling IRQs.
As an example, the display part of our probe routine contains paths where we wait for vblank interrupts. If a display interrupt was already pending when enabling IRQs, we would time out waiting for the vblank.
Avoid the potential issue by clearing GFX_MSTR_IRQ as part of the IRQ reset.
BSpec: 50875, 54028
--- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/i915/gt/intel_gt_irq.c +3 -0
@@ -214,6 +214,9 @@ void gen11_gt_irq_reset(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore; +if (gt->type !=GT_MEDIA &&GRAPHICS_VER_FULL (gt->i915) >=IP_VER (12 ,10 )) +intel_uncore_write (uncore,GEN11_GFX_MSTR_IRQ , ~0 ); +/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 );
Signature · 1 line
2.42.0
Quoting Gustavo Sousa (2023-09-19 14:49:53-03:00)
Quoted 8 lines
Starting with Xe_LP+,
GFX_MSTR_IRQcontains status bits that have W1C behavior. If we do not properly reset them, we would miss delivery of interrupts if a pending bit is set when enabling IRQs.As an example, the display part of our probe routine contains paths where we wait for vblank interrupts. If a display interrupt was already pending when enabling IRQs, we would time out waiting for the vblank.
Quoted 5 lines
Avoid the potential issue by clearing
GFX_MSTR_IRQas part of the IRQ reset.BSpec: 50875, 54028
Signed-off-by Gustavo Sousa <[email protected]>
FYI: This is the i915 version of
https://patchwork.freedesktop.org/series/123920/ .
Gustavo Sousa
Quoted 21 lines
---
drivers/gpu/drm/i915/gt/intel_gt_irq.c| 3 +++1 file changed, 3 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_irq.c +3
-0@@ -214,6 +214,9 @@ void gen11_gt_irq_reset(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore; +if (gt->type !=GT_MEDIA &&GRAPHICS_VER_FULL (gt->i915) >=IP_VER (12 ,10 )) +intel_uncore_write (uncore,GEN11_GFX_MSTR_IRQ , ~0 ); +/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 );Signature · 1 line
2.42.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset
In reply to Gustavo Sousa== Series Details ==
== Series Details ==
Series: drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset
URL : https://patchwork.freedesktop.org/series/123928/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13651 -> Patchwork_123928v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_123928v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_123928v1, 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_123928v1/index.html
Participating hosts (38 -> 37)
------------------------------
Additional (2): fi-kbl-soraka bat-rpls-2
Missing (3): bat-dg2-11 bat-adlm-1 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_123928v1:
### IGT changes ###
#### Possible regressions ####
* igt@runner@aborted:
- bat-rpls-2: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/bat-rpls-2/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_123928v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#2190])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][3] ([fdo#109271] / [i915#4613]) +3 other tests skip
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][4] ([i915#1886] / [i915#7913])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_dsc@dsc-basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][5] ([fdo#109271]) +9 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-kbl-soraka/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [ABORT][6] ([i915#7913]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13651/fi-bsw-n3050/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-bsw-n3050/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_engines:
- bat-mtlp-8: [FAIL][8] ([i915#9278] / [i915#9290]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13651/bat-mtlp-8/igt@i915_selftest@live@gt_engines.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/bat-mtlp-8/igt@i915_selftest@live@gt_engines.html
* igt@i915_selftest@live@gt_pm:
- bat-mtlp-8: [DMESG-FAIL][10] ([i915#9270]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13651/bat-mtlp-8/igt@i915_selftest@live@gt_pm.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/bat-mtlp-8/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium_edid@hdmi-edid-read:
- {bat-dg2-13}: [DMESG-WARN][12] ([i915#7952]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13651/bat-dg2-13/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/bat-dg2-13/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-guc: [FAIL][14] ([IGT#3] / [i915#6121]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13651/fi-kbl-guc/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/fi-kbl-guc/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#3]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/3
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#6121]: https://gitlab.freedesktop.org/drm/intel/issues/6121
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7952]: https://gitlab.freedesktop.org/drm/intel/issues/7952
[i915#9270]: https://gitlab.freedesktop.org/drm/intel/issues/9270
[i915#9278]: https://gitlab.freedesktop.org/drm/intel/issues/9278
[i915#9290]: https://gitlab.freedesktop.org/drm/intel/issues/9290
Build changes
-------------
* Linux: CI_DRM_13651 -> Patchwork_123928v1
CI-20190529: 20190529
CI_DRM_13651: 61b71c3f061a44a6ab1dcf756918886aa03a5480 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7493: 2517e42d612e0c1ca096acf8b5f6177f7ef4bce7 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_123928v1: 61b71c3f061a44a6ab1dcf756918886aa03a5480 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
425b78e29251 drm/i915/irq: Clear GFX_MSTR_IRQ as part of IRQ reset
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_123928v1/index.html
Quoted 22 lines · Gustavo Sousa
Starting with Xe_LP+,
GFX_MSTR_IRQcontains status bits that have W1C behavior. If we do not properly reset them, we would miss delivery of interrupts if a pending bit is set when enabling IRQs.As an example, the display part of our probe routine contains paths where we wait for vblank interrupts. If a display interrupt was already pending when enabling IRQs, we would time out waiting for the vblank.
Avoid the potential issue by clearing
GFX_MSTR_IRQas part of the IRQ reset.BSpec: 50875, 54028
Signed-off-by Gustavo Sousa <[email protected]>--- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0
drivers/gpu/drm/i915/gt/intel_gt_irq.c void gen11_gt_irq_reset(struct intel_gt *gt) · line 219
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +3
-0@@ -214,6 +214,9 @@ void gen11_gt_irq_reset(struct intel_gt *gt) {struct intel_uncore *uncore = gt->uncore; +if (gt->type !=GT_MEDIA &&GRAPHICS_VER_FULL (gt->i915) >=IP_VER (12 ,10 )) +intel_uncore_write (uncore,GEN11_GFX_MSTR_IRQ , ~0 ); +
These bits are more tied to the tile than to the GT (even though i915 still conflates the two concepts a bit), so I'm not sure gen11_gt_irq_reset is the best place to do this; gen11_gt_irq_reset should generally be focused on things that are GT-centric in the hardware sense rather than in the i915 sense. Maybe taking care of this in dg1_irq_reset() would be a better spot?
Matt
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_irq.c +0
-0/* Disable RCS, BCS, VCS and VECS class engines. */ intel_uncore_write (uncore,GEN11_RENDER_COPY_INTR_ENABLE ,0 );intel_uncore_write (uncore,GEN11_VCS_VECS_INTR_ENABLE ,0 );Signature · 1 line
2.42.0
Signature · 4 lines
Matt Roper Graphics Software Engineer Linux GPU Platform Enablement Intel Corporation