Skip to contentSkip to conversation

drm/i915/selftests: Re-enable power gating after live_selftest

PATCH New [email protected] 2 participants 3 messages Feb 20, 2025 – Mar 7, 2025

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

PATCH 1/1 drm/i915/selftests: Re-enable power gating after live_selftest

From: Sk Anirban <[email protected]>

The current implementation of live_rc6_manual disables power gating after execution due to the deactivation of RC6.
This update aims to re-enable power gating following the completion of the self-test. However, as a temporary workaround
for forcewake timeouts, power gating will remain disabled for MTL.

---
 drivers/gpu/drm/i915/gt/selftest_rc6.c | 36 ++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
drivers/gpu/drm/i915/gt/selftest_rc6.c +36 -0
index 908483ab0bc8..cca81231045a 100644
@@ -33,15 +33,18 @@ int live_rc6_manual(void *arg)
 {
 	struct intel_gt *gt = arg;
 	struct intel_rc6 *rc6 = &gt->rc6;
+	struct intel_uncore *uncore = rc6_to_uncore(rc6);
 	u64 rc0_power, rc6_power;
 	intel_wakeref_t wakeref;
 	bool has_power;
+	u32 pg_enable;
 	ktime_t dt;
 	u64 res[2];
 	int err = 0;
 	u32 rc0_freq = 0;
 	u32 rc6_freq = 0;
 	struct intel_rps *rps = &gt->rps;
+	int i;
 
 	/*
 	 * Our claim is that we can "encourage" the GPU to enter rc6 at will.
@@ -129,6 +132,39 @@ int live_rc6_manual(void *arg)
 	intel_rc6_unpark(rc6);
 
 out_unlock:
+	if (GRAPHICS_VER(gt->i915) >= 9) {
+		if (!intel_guc_rc_enable(gt_to_guc(gt)))
+			rc6->ctl_enable = GEN6_RC_CTL_RC6_ENABLE;
+		else
+			rc6->ctl_enable =
+				GEN6_RC_CTL_HW_ENABLE |
+				GEN6_RC_CTL_RC6_ENABLE |
+				GEN6_RC_CTL_EI_MODE(1);
+
+		if (IS_GFX_GT_IP_RANGE(gt, IP_VER(12, 70), IP_VER(12, 74)))
+			pg_enable =
+				GEN9_MEDIA_PG_ENABLE |
+				GEN11_MEDIA_SAMPLER_PG_ENABLE;
+		else
+			pg_enable =
+				GEN9_RENDER_PG_ENABLE |
+				GEN9_MEDIA_PG_ENABLE |
+				GEN11_MEDIA_SAMPLER_PG_ENABLE;
+
+		if (GRAPHICS_VER(gt->i915) >= 12 && !IS_DG1(gt->i915)) {
+			for (i = 0; i < I915_MAX_VCS; i++)
+				if (HAS_ENGINE(gt, _VCS(i)))
+					pg_enable |= (VDN_HCP_POWERGATE_ENABLE(i) |
+								VDN_MFX_POWERGATE_ENABLE(i));
+		}
+
+		if (!NEEDS_WaRsDisableCoarsePowerGating(rc6_to_i915(rc6)) &&
+		    GRAPHICS_VER(gt->i915) < 11)
+			intel_uncore_write_fw(uncore, GEN9_PG_ENABLE,
+					      GEN9_RENDER_PG_ENABLE | GEN9_MEDIA_PG_ENABLE);
+		else
+			intel_uncore_write_fw(uncore, GEN9_PG_ENABLE, pg_enable);
+	}
 	intel_runtime_pm_put(gt->uncore->rpm, wakeref);
 	return err;
 }
Signature · 1 line
2.34.1
#1 lore raw

✗ i915.CI.BAT: failure for drm/i915/selftests: Re-enable power gating after live_selftest (rev2)

== Series Details ==

== Series Details ==

Series: drm/i915/selftests: Re-enable power gating after live_selftest (rev2)
URL : https://patchwork.freedesktop.org/series/145144/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_16162 -> Patchwork_145144v2
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (41 -> 42)
------------------------------

Additional (2): fi-rkl-11600 bat-adls-6
Missing (1): fi-pnv-d510

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_flip@basic-flip-vs-dpms@b-dp1:
- fi-kbl-7567u: [PASS][1] -> [DMESG-WARN][2] +1 other test dmesg-warn
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/fi-kbl-7567u/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-kbl-7567u/igt@kms_flip@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-adls-6: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][4] ([i915#9318])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-rkl-11600: NOTRUN -> [SKIP][5] ([i915#2190])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- fi-rkl-11600: NOTRUN -> [SKIP][6] ([i915#4613]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-adls-6: NOTRUN -> [SKIP][7] ([i915#4613]) +3 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]

* igt@gem_tiled_pread_basic:
- fi-rkl-11600: NOTRUN -> [SKIP][8] ([i915#3282])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@gem_tiled_pread_basic.html
- bat-adls-6: NOTRUN -> [SKIP][9] ([i915#3282])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rpm@module-reload:
- bat-dg2-11: [PASS][10] -> [FAIL][11] ([i915#13633])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/bat-dg2-11/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-dg2-11/igt@[email protected]
- bat-dg1-7: [PASS][12] -> [FAIL][13] ([i915#13633])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/bat-dg1-7/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-dg1-7/igt@[email protected]

* igt@i915_selftest@live:
- bat-arlh-3: [PASS][14] -> [DMESG-FAIL][15] ([i915#12061] / [i915#12435])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/bat-arlh-3/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-arlh-3/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-arlh-3: [PASS][16] -> [DMESG-FAIL][17] ([i915#12061])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/bat-arlh-3/igt@i915_selftest@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-arlh-3/igt@i915_selftest@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-adls-6: NOTRUN -> [SKIP][18] ([i915#4103]) +1 other test skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][19] ([i915#4103]) +1 other test skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- fi-rkl-11600: NOTRUN -> [SKIP][20] ([i915#3555] / [i915#3840])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]
- bat-adls-6: NOTRUN -> [SKIP][21] ([i915#3555] / [i915#3840])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-adls-6: NOTRUN -> [SKIP][22]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][23]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@kms_pm_backlight@basic-brightness:
- bat-adls-6: NOTRUN -> [SKIP][24] ([i915#5354])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]
- fi-rkl-11600: NOTRUN -> [SKIP][25] ([i915#5354])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt:
- bat-adls-6: NOTRUN -> [SKIP][26] ([i915#1072] / [i915#9732]) +3 other tests skip
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]

* igt@kms_psr@psr-primary-page-flip:
- fi-rkl-11600: NOTRUN -> [SKIP][27] ([i915#1072] / [i915#9732]) +3 other tests skip
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- fi-rkl-11600: NOTRUN -> [SKIP][28] ([i915#3555])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]
- bat-adls-6: NOTRUN -> [SKIP][29] ([i915#3555])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-adls-6: NOTRUN -> [SKIP][30] ([i915#3291]) +2 other tests skip
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-adls-6/igt@[email protected]

* igt@prime_vgem@basic-read:
- fi-rkl-11600: NOTRUN -> [SKIP][31] ([i915#3291] / [i915#3708]) +2 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/fi-rkl-11600/igt@[email protected]

#### Warnings ####

* igt@i915_selftest@live@mman:
- bat-atsm-1: [ABORT][32] ([i915#13465] / [i915#13679]) -> [ABORT][33] ([i915#13679]) +1 other test abort
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16162/bat-atsm-1/igt@i915_selftest@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/bat-atsm-1/igt@i915_selftest@[email protected]

[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#12435]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12435
[i915#13465]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13465
[i915#13633]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13633
[i915#13679]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13679
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#3282]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#3840]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3840
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732

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

* Linux: CI_DRM_16162 -> Patchwork_145144v2

CI-20190529: 20190529
CI_DRM_16162: 1d579c3706d3698c87fddca8cf001e46e22efe0c @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8241: 983ffca5ff96fd67c937691337f4488e28948aa7 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_145144v2: 1d579c3706d3698c87fddca8cf001e46e22efe0c @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v2/index.html

#2 lore raw

✗ i915.CI.BAT: failure for drm/i915/selftests: Re-enable power gating after live_selftest (rev3)

In reply to [email protected]
== Series Details ==

== Series Details ==

Series: drm/i915/selftests: Re-enable power gating after live_selftest (rev3)
URL : https://patchwork.freedesktop.org/series/145144/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_16245 -> Patchwork_145144v3
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (44 -> 42)
------------------------------

Missing (2): bat-arlh-2 fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_flip@basic-flip-vs-modeset@a-dp1:
- bat-apl-1: [PASS][1] -> [DMESG-WARN][2] +1 other test dmesg-warn
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-apl-1/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-apl-1/igt@kms_flip@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@fbdev@info:
- fi-kbl-8809g: NOTRUN -> [SKIP][3] ([i915#1849])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/fi-kbl-8809g/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-kbl-8809g: NOTRUN -> [SKIP][4] ([i915#2190])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/fi-kbl-8809g/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- fi-kbl-8809g: NOTRUN -> [SKIP][5] ([i915#4613]) +3 other tests skip
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/fi-kbl-8809g/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- bat-adls-6: [PASS][6] -> [FAIL][7] ([i915#13633])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-adls-6/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-adls-6/igt@[email protected]
- bat-dg1-7: [PASS][8] -> [FAIL][9] ([i915#13633])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-dg1-7/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-dg1-7/igt@[email protected]
- bat-rpls-4: [PASS][10] -> [FAIL][11] ([i915#13633])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-rpls-4/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-rpls-4/igt@[email protected]

* igt@i915_selftest@live:
- bat-mtlp-8: [PASS][12] -> [DMESG-FAIL][13] ([i915#12061]) +1 other test dmesg-fail
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-mtlp-8/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-mtlp-8/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- fi-kbl-8809g: NOTRUN -> [SKIP][14] +34 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/fi-kbl-8809g/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: [PASS][15] -> [SKIP][16] ([i915#9197]) +3 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16245/bat-dg2-11/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/bat-dg2-11/igt@[email protected]

[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13633]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13633
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197

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

* Linux: CI_DRM_16245 -> Patchwork_145144v3

CI-20190529: 20190529
CI_DRM_16245: 066c46f28642479869d2d1dd27cc6ae476de4abc @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8264: 8264
Patchwork_145144v3: 066c46f28642479869d2d1dd27cc6ae476de4abc @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_145144v3/index.html