drm/i915/guc: re-enable ARAT expired interrupt when using GuC
Subsystems (2)
PATCH 1/2 drm/i915/guc: re-enable ARAT expired interrupt when using GuC
This is required for GuC to be able to handle timeouts. This is mainly needed when using GuC submission, but there is no rule saying this won't be used to handle HuC-related actions so turn it always on when using the GuC. The routing bit name has also been renamed to indicate what it actually does, i.e. setting the bit enables the routing to GuC (the bit name was flipped because we use it in a mbz mask, in which we set the bits we don't want to be set in the register).
Note that the ARAT interrupt used to be enabled in GuC submission mode, but was then removed in commit 1cdc2330e8d3 ("drm/i915/guc: Properly capture & release GuC interrupts on Gen11+"). While it is true that, as stated in that patch, the host and the GuC have independent masks for the interrupts, the PM interrupts still need to be additionally globally unmasked in the PMINTRMSK register.
--- drivers/gpu/drm/i915/gt/intel_rps.c | 21 +++++++++++++++++++-- drivers/gpu/drm/i915/i915_reg.h | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/gt/intel_rps.c +19 -2
@@ -1684,8 +1684,25 @@ void intel_rps_init(struct intel_rps *rps)if (INTEL_GEN (i915) <=7 ) rps->pm_intrmsk_mbz |=GEN6_PM_RP_UP_EI_EXPIRED ; -if (INTEL_GEN (i915) >=8 &&INTEL_GEN (i915) <11 ) - rps->pm_intrmsk_mbz |=GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC ; +if (INTEL_GEN (i915) >=8 ) { +/* +* The PMINTRMSK is not replicated on the GuC side, even on +* gen11+ where GuC has additional control over its own +* interrupts. The GuC does update the register during load to +* unmask the ARAT interrupt, but we still need to make sure our +* handler doesn't overwrite the setting. +* On Gen11+ the ARAT interrupt is sent only to the GuC, while +* on older gens we need to explicitly redirect it using the +* GEN8_PMINTR_REDIRECT_TO_GUC bit; this bit is on the same +* register, but it is not a mask and therefore we need to make +* sure we leave it to one after GuC sets it (i.e. it is not a +* mbz bit when GuC is enabled). +*/ +if (intel_uc_uses_guc (&rps_to_gt (rps)->uc)) + rps->pm_intrmsk_mbz |=ARAT_EXPIRED_INTRMSK ; +else if (INTEL_GEN (i915) <11 ) + rps->pm_intrmsk_mbz |=GEN8_PMINTR_REDIRECT_TO_GUC ; + } }u32 intel_rps_get_cagf (struct intel_rps *rps,u32 rpstat)
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -9010,7 +9010,7 @@ enum {#define VLV_RCEDATA _MMIO(0xA0BC)#define GEN6_RC6pp_THRESHOLD _MMIO(0xA0C0)#define GEN6_PMINTRMSK _MMIO(0xA168) -#define GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC (1 << 31) +#define GEN8_PMINTR_REDIRECT_TO_GUC (1 << 31)#define ARAT_EXPIRED_INTRMSK (1 << 9)#define GEN8_MISC_CTRL0 _MMIO(0xA180)#define VLV_PWRDWNUPCTL _MMIO(0xA294)
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 HAX: drm/i915: default to enable_guc=2
To enable GuC and HuC loading on all gen9+ CI machines.
--- drivers/gpu/drm/i915/i915_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_params.h +1 -1
@@ -56,7 +56,7 @@ struct drm_printer; param(int, disable_power_well, -1, 0400) \ param(int, enable_ips, 1, 0600) \ param(int, invert_brightness, 0, 0600) \ - param(int, enable_guc, 0, 0400) \ + param(int, enable_guc, 2, 0400) \ param(int, guc_log_level, -1, 0400) \ param(char *, guc_firmware_path, NULL, 0400) \ param(char *, huc_firmware_path, NULL, 0400) \
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/guc: re-enable ARAT expired interrupt when using GuC
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/guc: re-enable ARAT expired interrupt when using GuC
URL : https://patchwork.freedesktop.org/series/75715/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8281 -> Patchwork_17261
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/index.html
Known issues
------------
Here are the changes found in Patchwork_17261 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2] ([i915#262])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@module-reload:
- fi-icl-dsi: [INCOMPLETE][3] ([i915#189]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/fi-icl-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/fi-icl-dsi/igt@[email protected]
[i915#189]: https://gitlab.freedesktop.org/drm/intel/issues/189
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
Participating hosts (51 -> 46)
------------------------------
Additional (1): fi-skl-6770hq
Missing (6): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8281 -> Patchwork_17261
CI-20190529: 20190529
CI_DRM_8281: 4d6c69198d6840226f92f2c4645e2c8260ca3e83 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5581: ab0620e555119ec55f12ba9ab9e6e9246d407648 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17261: 2b775979212a30032975bf16c18001c9b228626b @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2b775979212a HAX: drm/i915: default to enable_guc=2 950b8648892c drm/i915/guc: re-enable ARAT expired interrupt when using GuC
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915/guc: re-enable ARAT expired interrupt when using GuC
In reply to Daniele Ceraolo Spurio== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915/guc: re-enable ARAT expired interrupt when using GuC
URL : https://patchwork.freedesktop.org/series/75715/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8281_full -> Patchwork_17261_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_17261_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@sysfs_heartbeat_interval@mixed@bcs0}:
- shard-skl: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl4/igt@sysfs_heartbeat_interval@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl8/igt@sysfs_heartbeat_interval@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_8281_full and Patchwork_17261_full:
### New IGT tests (2) ###
* igt@gem_exec_store@cachelines:
- Statuses :
- Exec time: [None] s
* igt@gem_exec_store@pages:
- Statuses :
- Exec time: [None] s
Known issues
------------
Here are the changes found in Patchwork_17261_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@legacy-engines-mixed-process@blt:
- shard-apl: [PASS][3] -> [FAIL][4] ([i915#1528])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl2/igt@gem_ctx_persistence@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-apl1/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_whisper@basic-queues-priority:
- shard-skl: [PASS][5] -> [INCOMPLETE][6] ([i915#1318])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl9/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl8/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][7] -> [DMESG-WARN][8] ([i915#716])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-glk8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-glk4/igt@[email protected]
- shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([i915#716])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl7/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-kbl1/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- shard-skl: [PASS][11] -> [TIMEOUT][12] ([i915#1418])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl1/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-64x64-sliding:
- shard-apl: [PASS][13] -> [FAIL][14] ([i915#54] / [i915#95])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-apl7/igt@[email protected]
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#109349])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-iclb3/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-apl: [PASS][17] -> [FAIL][18] ([i915#79])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-apl1/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate:
- shard-skl: [PASS][19] -> [FAIL][20] ([i915#34])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl3/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-skl: [PASS][21] -> [FAIL][22] ([i915#49])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl10/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-pwrite.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl3/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_hdr@bpc-switch-dpms:
- shard-skl: [PASS][23] -> [FAIL][24] ([i915#1188])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [PASS][25] -> [FAIL][26] ([fdo#108145] / [i915#265]) +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl10/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl3/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_persistence@engines-mixed-process@vcs0:
- shard-skl: [FAIL][27] ([i915#1528]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl1/igt@gem_ctx_persistence@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl7/igt@gem_ctx_persistence@[email protected]
* igt@gem_exec_params@invalid-bsd-ring:
- shard-iclb: [SKIP][29] ([fdo#109276]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb3/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-iclb1/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][31] ([i915#454]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-iclb4/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-apl: [DMESG-WARN][33] ([i915#180]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-apl7/igt@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][35] ([i915#1188]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl10/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl2/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][37] ([fdo#108145] / [i915#265]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-skl5/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][39] ([fdo#109441]) -> [PASS][40] +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb8/igt@kms_psr@psr2_sprite_plane_move.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [DMESG-WARN][41] ([i915#180]) -> [PASS][42] +3 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-kbl4/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc6-psr:
- shard-tglb: [FAIL][43] ([i915#454]) -> [SKIP][44] ([i915#468]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-tglb5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-tglb2/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-snb: [SKIP][45] ([fdo#109271]) -> [INCOMPLETE][46] ([i915#82])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-snb4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-snb5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-opaque-fb:
- shard-apl: [FAIL][47] ([fdo#108145] / [i915#265]) -> [FAIL][48] ([fdo#108145] / [i915#265] / [i915#95])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-apl3/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-apl1/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][49] ([fdo#109642] / [fdo#111068]) -> [FAIL][50] ([i915#608])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-iclb8/igt@kms_psr2_su@page_flip.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@runner@aborted:
- shard-kbl: [FAIL][51] ([i915#1423] / [i915#92]) -> ([FAIL][52], [FAIL][53]) ([i915#1423] / [i915#716] / [i915#92])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8281/shard-kbl2/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-kbl6/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/shard-kbl1/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#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#1318]: https://gitlab.freedesktop.org/drm/intel/issues/1318
[i915#1418]: https://gitlab.freedesktop.org/drm/intel/issues/1418
[i915#1423]: https://gitlab.freedesktop.org/drm/intel/issues/1423
[i915#1528]: https://gitlab.freedesktop.org/drm/intel/issues/1528
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#34]: https://gitlab.freedesktop.org/drm/intel/issues/34
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#608]: https://gitlab.freedesktop.org/drm/intel/issues/608
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8281 -> Patchwork_17261
CI-20190529: 20190529
CI_DRM_8281: 4d6c69198d6840226f92f2c4645e2c8260ca3e83 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5581: ab0620e555119ec55f12ba9ab9e6e9246d407648 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17261: 2b775979212a30032975bf16c18001c9b228626b @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17261/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx