Skip to contentSkip to conversation

drm/i915/display/tgl: Do not program clockgating

PATCH Superseded José Roberto de Souza 3 participants 6 messages Dec 2, 2019 – Dec 4, 2019

Subsystems (3)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/display/tgl: Do not program clockgating

Talked with HW team and this is a left over, driver should not program clockgating, dekel firmware will be reponsible for any clockgating programing.

v2:
Added WARN_ON

BSpec issue: 20885
BSpec: 49292

---
 drivers/gpu/drm/i915/display/intel_ddi.c | 54 +++++++-----------------
 1 file changed, 15 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +15 -39
index a976606d21c7..66052a9f1474 100644
@@ -3167,6 +3167,10 @@ icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable)
 	u32 val, bits;
 	int ln;
 
+	/* See "PHY Clockgating programming" note */
+	if (WARN_ON(INTEL_GEN(dev_priv) >= 12))
+		return;
+
 	if (tc_port == PORT_TC_NONE)
 		return;
 
@@ -3175,39 +3179,26 @@ icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable)
 	       MG_DP_MODE_CFG_GAONPWR_GATING;
 
 	for (ln = 0; ln < 2; ln++) {
-		if (INTEL_GEN(dev_priv) >= 12) {
-			I915_WRITE(HIP_INDEX_REG(tc_port), HIP_INDEX_VAL(tc_port, ln));
-			val = I915_READ(DKL_DP_MODE(tc_port));
-		} else {
-			val = I915_READ(MG_DP_MODE(ln, tc_port));
-		}
+		val = I915_READ(MG_DP_MODE(ln, tc_port));
 
 		if (enable)
 			val |= bits;
 		else
 			val &= ~bits;
 
-		if (INTEL_GEN(dev_priv) >= 12)
-			I915_WRITE(DKL_DP_MODE(tc_port), val);
-		else
-			I915_WRITE(MG_DP_MODE(ln, tc_port), val);
+		I915_WRITE(MG_DP_MODE(ln, tc_port), val);
 	}
 
-	if (INTEL_GEN(dev_priv) == 11) {
-		bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |
-		       MG_MISC_SUS0_CFG_CL2PWR_GATING |
-		       MG_MISC_SUS0_CFG_GAONPWR_GATING |
-		       MG_MISC_SUS0_CFG_TRPWR_GATING |
-		       MG_MISC_SUS0_CFG_CL1PWR_GATING |
-		       MG_MISC_SUS0_CFG_DGPWR_GATING;
+	bits = MG_MISC_SUS0_CFG_TR2PWR_GATING | MG_MISC_SUS0_CFG_CL2PWR_GATING |
+	       MG_MISC_SUS0_CFG_GAONPWR_GATING | MG_MISC_SUS0_CFG_TRPWR_GATING |
+	       MG_MISC_SUS0_CFG_CL1PWR_GATING | MG_MISC_SUS0_CFG_DGPWR_GATING;
 
-		val = I915_READ(MG_MISC_SUS0(tc_port));
-		if (enable)
-			val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
-		else
-			val &= ~(bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);
-		I915_WRITE(MG_MISC_SUS0(tc_port), val);
-	}
+	val = I915_READ(MG_MISC_SUS0(tc_port));
+	if (enable)
+		val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
+	else
+		val &= ~(bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);
+	I915_WRITE(MG_MISC_SUS0(tc_port), val);
 }
 
 static void
@@ -3508,12 +3499,6 @@ static void tgl_ddi_pre_enable_dp(struct intel_encoder *encoder,
 	 * down this function.
 	 */
 
-	/*
-	 * 7.d Type C with DP alternate or fixed/legacy/static connection -
-	 * Disable PHY clock gating per Type-C DDI Buffer page
-	 */
-	icl_phy_set_clock_gating(dig_port, false);
-
 	/* 7.e Configure voltage swing and related IO settings */
 	tgl_ddi_vswing_sequence(encoder, crtc_state->port_clock, level,
 				encoder->type);
@@ -3565,15 +3550,6 @@ static void tgl_ddi_pre_enable_dp(struct intel_encoder *encoder,
 	if (!is_trans_port_sync_mode(crtc_state))
 		intel_dp_stop_link_train(intel_dp);
 
-	/*
-	 * TODO: enable clock gating
-	 *
-	 * It is not written in DP enabling sequence but "PHY Clockgating
-	 * programming" states that clock gating should be enabled after the
-	 * link training but doing so causes all the following trainings to fail
-	 * so not enabling it for now.
-	 */
-
 	/* 7.l Configure and enable FEC if needed */
 	intel_ddi_enable_fec(encoder, crtc_state);
 	intel_dsc_enable(encoder, crtc_state);
Signature · 6 lines
2.24.0

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

✓ Fi.CI.BAT: success for drm/i915/display/tgl: Do not program clockgating (rev2)

== Series Details ==

== Series Details ==

Series: drm/i915/display/tgl: Do not program clockgating (rev2)
URL : https://patchwork.freedesktop.org/series/70076/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_7467 -> Patchwork_15547
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/index.html

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_module_load@reload:
- fi-bwr-2160: [PASS][1] -> [INCOMPLETE][2] ([i915#695])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-bwr-2160/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-bwr-2160/igt@[email protected]

* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-hsw-4770: [PASS][3] -> [SKIP][4] ([fdo#109271]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-hsw-4770/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-hsw-4770/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][5] -> [FAIL][6] ([fdo#111407])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-kbl-7500u/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [PASS][7] -> [FAIL][8] ([i915#49])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-icl-u2/igt@[email protected]

#### Possible fixes ####

* igt@i915_pm_rpm@module-reload:
- fi-skl-6770hq: [DMESG-WARN][9] ([i915#592]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-skl-6770hq/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-skl-6770hq/igt@[email protected]

* igt@i915_selftest@live_blt:
- fi-ivb-3770: [DMESG-FAIL][11] ([i915#563]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-ivb-3770/igt@i915_selftest@live_blt.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-ivb-3770/igt@i915_selftest@live_blt.html
- fi-hsw-4770: [DMESG-FAIL][13] ([i915#563]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-hsw-4770/igt@i915_selftest@live_blt.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-hsw-4770/igt@i915_selftest@live_blt.html

* igt@i915_selftest@live_gem_contexts:
- fi-skl-lmem: [INCOMPLETE][15] ([i915#424]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-skl-lmem/igt@i915_selftest@live_gem_contexts.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-skl-lmem/igt@i915_selftest@live_gem_contexts.html
- fi-hsw-peppy: [DMESG-FAIL][17] ([fdo#111692]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html

* igt@kms_frontbuffer_tracking@basic:
- fi-icl-guc: [FAIL][19] ([i915#49]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-icl-guc/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-icl-guc/igt@[email protected]

#### Warnings ####

* igt@gem_exec_suspend@basic-s0:
- fi-kbl-x1275: [DMESG-WARN][21] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][22] ([i915#62] / [i915#92]) +5 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-kbl-x1275/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-kbl-x1275/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-pipe-b:
- fi-kbl-x1275: [DMESG-WARN][23] ([i915#62] / [i915#92]) -> [DMESG-WARN][24] ([i915#62] / [i915#92] / [i915#95]) +4 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/fi-kbl-x1275/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/fi-kbl-x1275/igt@[email protected]

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111692]: https://bugs.freedesktop.org/show_bug.cgi?id=111692
[i915#424]: https://gitlab.freedesktop.org/drm/intel/issues/424
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#563]: https://gitlab.freedesktop.org/drm/intel/issues/563
[i915#592]: https://gitlab.freedesktop.org/drm/intel/issues/592
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#695]: https://gitlab.freedesktop.org/drm/intel/issues/695
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95

Participating hosts (50 -> 45)
------------------------------

Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper

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

* CI: CI-20190529 -> None
* Linux: CI_DRM_7467 -> Patchwork_15547

CI-20190529: 20190529
CI_DRM_7467: 14954f24e7251b067b2081aaa09a7da6840da0d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5321: 9df50aef49e0da4413609d9866b41b82b725f2a0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15547: 79ee48ee9bc4a4c521e36b62e6df6905bc7b6e20 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

79ee48ee9bc4 drm/i915/display/tgl: Do not program clockgating

== Logs ==

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

#2 lore raw

✗ Fi.CI.IGT: failure for drm/i915/display/tgl: Do not program clockgating (rev2)

In reply to José Roberto de Souza
== Series Details ==

== Series Details ==

Series: drm/i915/display/tgl: Do not program clockgating (rev2)
URL : https://patchwork.freedesktop.org/series/70076/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_7467_full -> Patchwork_15547_full
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes introduced in Patchwork_15547_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_hdmi_inject@inject-4k:
- shard-tglb: NOTRUN -> [DMESG-WARN][1] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb1/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_async@concurrent-writes-bsd:
- shard-iclb: [PASS][2] -> [SKIP][3] ([fdo#112146])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb3/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb4/igt@[email protected]

* igt@gem_exec_gttfill@basic:
- shard-tglb: [PASS][4] -> [INCOMPLETE][5] ([fdo#111593])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb7/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb6/igt@[email protected]

* igt@gem_exec_parallel@vecs0-fds:
- shard-hsw: [PASS][6] -> [FAIL][7] ([i915#676]) +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw1/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw6/igt@[email protected]

* igt@gem_exec_schedule@preempt-contexts-bsd2:
- shard-iclb: [PASS][8] -> [SKIP][9] ([fdo#109276]) +3 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@[email protected]

* igt@gem_persistent_relocs@forked-thrash-inactive:
- shard-snb: [PASS][10] -> [INCOMPLETE][11] ([i915#530] / [i915#82])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-snb5/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-snb4/igt@[email protected]
- shard-hsw: [PASS][12] -> [INCOMPLETE][13] ([i915#530] / [i915#61])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw6/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw4/igt@[email protected]

* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [PASS][14] -> [FAIL][15] ([i915#644])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-glk4/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-glk7/igt@[email protected]

* igt@i915_suspend@forcewake:
- shard-skl: [PASS][16] -> [INCOMPLETE][17] ([i915#69])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl6/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl6/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-128x42-offscreen:
- shard-iclb: [PASS][18] -> [DMESG-WARN][19] ([IGT#6])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb8/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb3/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-hsw: [PASS][20] -> [FAIL][21] ([i915#96])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw1/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw6/igt@[email protected]

* igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled:
- shard-iclb: [PASS][22] -> [INCOMPLETE][23] ([i915#140])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb3/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb3/igt@[email protected]
- shard-skl: [PASS][24] -> [INCOMPLETE][25] ([fdo#112347] / [i915#646])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl4/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl4/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- shard-iclb: [PASS][26] -> [FAIL][27] ([i915#49]) +4 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb1/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-indfb-msflip-blt:
- shard-tglb: [PASS][28] -> [FAIL][29] ([i915#49]) +2 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb9/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb5/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary:
- shard-skl: [PASS][30] -> [INCOMPLETE][31] ([i915#123])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl10/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl5/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
- shard-tglb: [PASS][32] -> [INCOMPLETE][33] ([i915#456] / [i915#460]) +2 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb4/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb7/igt@[email protected]

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-kbl: [PASS][34] -> [INCOMPLETE][35] ([fdo#103665] / [i915#435])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-kbl2/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-kbl3/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
- shard-skl: [PASS][36] -> [FAIL][37] ([fdo#108145])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl6/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl7/igt@[email protected]

* igt@kms_setmode@basic:
- shard-skl: [PASS][38] -> [FAIL][39] ([i915#31])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl8/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl8/igt@[email protected]

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][40] -> [DMESG-WARN][41] ([i915#180]) +3 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-kbl2/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-kbl4/igt@[email protected]

* igt@perf_pmu@busy-no-semaphores-vcs1:
- shard-iclb: [PASS][42] -> [SKIP][43] ([fdo#112080]) +6 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb1/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_isolation@rcs0-s3:
- shard-tglb: [INCOMPLETE][44] ([i915#456]) -> [PASS][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb4/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb2/igt@[email protected]

* igt@gem_eio@kms:
- shard-snb: [INCOMPLETE][46] ([i915#82]) -> [PASS][47]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-snb6/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-snb1/igt@[email protected]

* igt@gem_exec_capture@capture-bsd:
- shard-iclb: [SKIP][48] ([fdo#112146]) -> [PASS][49]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb1/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@[email protected]

* igt@gem_exec_parallel@bcs0-contexts:
- shard-hsw: [FAIL][50] ([i915#676]) -> [PASS][51]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw6/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw5/igt@[email protected]

* igt@gem_exec_parallel@contexts:
- shard-tglb: [INCOMPLETE][52] ([i915#470]) -> [PASS][53]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb9/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb5/igt@[email protected]

* {igt@gem_exec_schedule@pi-shared-iova-bsd}:
- shard-iclb: [SKIP][54] ([i915#677]) -> [PASS][55]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb1/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-chain-vebox:
- shard-kbl: [INCOMPLETE][56] ([fdo#103665]) -> [PASS][57]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-kbl3/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-kbl1/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-contexts-chain-bsd1:
- shard-tglb: [INCOMPLETE][58] ([fdo#111677]) -> [PASS][59]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb6/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb3/igt@[email protected]

* igt@gem_userptr_blits@map-fixed-invalidate-busy:
- shard-snb: [DMESG-WARN][60] ([fdo#111870]) -> [PASS][61]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-snb7/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-snb2/igt@[email protected]

* igt@i915_pm_dc@dc5-dpms:
- shard-iclb: [FAIL][62] ([i915#447]) -> [PASS][63]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb3/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb4/igt@[email protected]

* igt@kms_big_fb@y-tiled-16bpp-rotate-180:
- shard-tglb: [INCOMPLETE][64] ([i915#667]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb1/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb7/igt@[email protected]
- shard-skl: [INCOMPLETE][66] ([fdo#112347] / [i915#655]) -> [PASS][67]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl2/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl5/igt@[email protected]

* igt@kms_big_fb@yf-tiled-16bpp-rotate-180:
- shard-glk: [INCOMPLETE][68] ([i915#58] / [k.org#198133]) -> [PASS][69] +1 similar issue
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-glk5/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-glk8/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-64x64-sliding:
- shard-apl: [INCOMPLETE][70] ([fdo#103927]) -> [PASS][71]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-apl8/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-apl4/igt@[email protected]

* igt@kms_cursor_legacy@cursor-vs-flip-toggle:
- shard-hsw: [FAIL][72] ([i915#57]) -> [PASS][73]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw4/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw1/igt@[email protected]

* igt@kms_fbcon_fbt@psr-suspend:
- shard-tglb: [INCOMPLETE][74] ([i915#456] / [i915#460]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb7/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb5/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [FAIL][76] ([i915#79]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl7/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl10/igt@[email protected]

* igt@kms_flip@flip-vs-suspend:
- shard-hsw: [INCOMPLETE][78] ([i915#61]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-hsw5/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-hsw1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [DMESG-WARN][80] ([i915#180]) -> [PASS][81] +4 similar issues
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-kbl4/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-kbl6/igt@[email protected]
- shard-apl: [DMESG-WARN][82] ([i915#180]) -> [PASS][83] +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-apl4/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-apl2/igt@[email protected]
- shard-tglb: [INCOMPLETE][84] ([i915#456] / [i915#460] / [i915#474]) -> [PASS][85]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb1/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render:
- shard-tglb: [FAIL][86] ([i915#49]) -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render.html
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-blt:
- shard-iclb: [FAIL][88] ([i915#49]) -> [PASS][89] +1 similar issue
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-blt.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-blt.html

* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][90] ([fdo#108145] / [i915#265]) -> [PASS][91]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl7/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl10/igt@[email protected]

* igt@prime_vgem@sync-bsd2:
- shard-iclb: [SKIP][92] ([fdo#109276]) -> [PASS][93] +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-iclb3/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-iclb4/igt@[email protected]

#### Warnings ####

* igt@kms_plane@pixel-format-pipe-b-planes:
- shard-skl: [INCOMPLETE][94] ([fdo#112391] / [i915#648]) -> [INCOMPLETE][95] ([i915#648])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl4/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl6/igt@[email protected]

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-skl: [INCOMPLETE][96] ([fdo#112347] / [i915#648]) -> [INCOMPLETE][97] ([fdo#112347] / [fdo#112391] / [i915#648])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-skl5/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-skl7/igt@[email protected]

* igt@kms_psr@psr2_suspend:
- shard-tglb: [INCOMPLETE][98] ([i915#456] / [i915#460]) -> [DMESG-WARN][99] ([i915#402])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7467/shard-tglb4/igt@kms_psr@psr2_suspend.html
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_15547/shard-tglb9/igt@kms_psr@psr2_suspend.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[IGT#6]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/6
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#111593]: https://bugs.freedesktop.org/show_bug.cgi?id=111593
[fdo#111677]: https://bugs.freedesktop.org/show_bug.cgi?id=111677
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112347]: https://bugs.freedesktop.org/show_bug.cgi?id=112347
[fdo#112391]: https://bugs.freedesktop.org/show_bug.cgi?id=112391
[i915#123]: https://gitlab.freedesktop.org/drm/intel/issues/123
[i915#140]: https://gitlab.freedesktop.org/drm/intel/issues/140
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#435]: https://gitlab.freedesktop.org/drm/intel/issues/435
[i915#447]: https://gitlab.freedesktop.org/drm/intel/issues/447
[i915#456]: https://gitlab.freedesktop.org/drm/intel/issues/456
[i915#460]: https://gitlab.freedesktop.org/drm/intel/issues/460
[i915#470]: https://gitlab.freedesktop.org/drm/intel/issues/470
[i915#474]: https://gitlab.freedesktop.org/drm/intel/issues/474
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#530]: https://gitlab.freedesktop.org/drm/intel/issues/530
[i915#57]: https://gitlab.freedesktop.org/drm/intel/issues/57
[i915#58]: https://gitlab.freedesktop.org/drm/intel/issues/58
[i915#61]: https://gitlab.freedesktop.org/drm/intel/issues/61
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#646]: https://gitlab.freedesktop.org/drm/intel/issues/646
[i915#648]: https://gitlab.freedesktop.org/drm/intel/issues/648
[i915#655]: https://gitlab.freedesktop.org/drm/intel/issues/655
[i915#667]: https://gitlab.freedesktop.org/drm/intel/issues/667
[i915#675]: https://gitlab.freedesktop.org/drm/intel/issues/675
[i915#676]: https://gitlab.freedesktop.org/drm/intel/issues/676
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#96]: https://gitlab.freedesktop.org/drm/intel/issues/96
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (11 -> 11)
------------------------------

No changes in participating hosts

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

* CI: CI-20190529 -> None
* Linux: CI_DRM_7467 -> Patchwork_15547

CI-20190529: 20190529
CI_DRM_7467: 14954f24e7251b067b2081aaa09a7da6840da0d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5321: 9df50aef49e0da4413609d9866b41b82b725f2a0 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_15547: 79ee48ee9bc4a4c521e36b62e6df6905bc7b6e20 @ 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_15547/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to José Roberto de Souza
Quoted 24 lines · José Roberto de Souza

Talked with HW team and this is a left over, driver should not program clockgating, dekel firmware will be reponsible for any clockgating programing.

v2:
Added WARN_ON

BSpec issue: 20885
BSpec: 49292

---
 drivers/gpu/drm/i915/display/intel_ddi.c | 54 +++++++-----------------
 1 file changed, 15 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +0 -0
index a976606d21c7..66052a9f1474 100644

drivers/gpu/drm/i915/display/intel_ddi.c icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable) · line 3170

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
@@ -3167,6 +3167,10 @@ icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable)
 	u32 val, bits;
 	int ln;
 
+	/* See "PHY Clockgating programming" note */

Where?

Quoted 86 lines
drivers/gpu/drm/i915/display/intel_ddi.c +14 -39
+	if (WARN_ON(INTEL_GEN(dev_priv) >= 12))
+		return;
+
 	if (tc_port == PORT_TC_NONE)
 		return;
 
@@ -3175,39 +3179,26 @@ icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable)
 	       MG_DP_MODE_CFG_GAONPWR_GATING;
 
 	for (ln = 0; ln < 2; ln++) {
-		if (INTEL_GEN(dev_priv) >= 12) {
-			I915_WRITE(HIP_INDEX_REG(tc_port), HIP_INDEX_VAL(tc_port, ln));
-			val = I915_READ(DKL_DP_MODE(tc_port));
-		} else {
-			val = I915_READ(MG_DP_MODE(ln, tc_port));
-		}
+		val = I915_READ(MG_DP_MODE(ln, tc_port));
 
 		if (enable)
 			val |= bits;
 		else
 			val &= ~bits;
 
-		if (INTEL_GEN(dev_priv) >= 12)
-			I915_WRITE(DKL_DP_MODE(tc_port), val);
-		else
-			I915_WRITE(MG_DP_MODE(ln, tc_port), val);
+		I915_WRITE(MG_DP_MODE(ln, tc_port), val);
 	}
 
-	if (INTEL_GEN(dev_priv) == 11) {
-		bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |
-		       MG_MISC_SUS0_CFG_CL2PWR_GATING |
-		       MG_MISC_SUS0_CFG_GAONPWR_GATING |
-		       MG_MISC_SUS0_CFG_TRPWR_GATING |
-		       MG_MISC_SUS0_CFG_CL1PWR_GATING |
-		       MG_MISC_SUS0_CFG_DGPWR_GATING;
+	bits = MG_MISC_SUS0_CFG_TR2PWR_GATING | MG_MISC_SUS0_CFG_CL2PWR_GATING |
+	       MG_MISC_SUS0_CFG_GAONPWR_GATING | MG_MISC_SUS0_CFG_TRPWR_GATING |
+	       MG_MISC_SUS0_CFG_CL1PWR_GATING | MG_MISC_SUS0_CFG_DGPWR_GATING;
 
-		val = I915_READ(MG_MISC_SUS0(tc_port));
-		if (enable)
-			val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
-		else
-			val &= ~(bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);
-		I915_WRITE(MG_MISC_SUS0(tc_port), val);
-	}
+	val = I915_READ(MG_MISC_SUS0(tc_port));
+	if (enable)
+		val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
+	else
+		val &= ~(bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);
+	I915_WRITE(MG_MISC_SUS0(tc_port), val);
 }
 
 static void
@@ -3508,12 +3499,6 @@ static void tgl_ddi_pre_enable_dp(struct intel_encoder *encoder,
 	 * down this function.
 	 */
 
-	/*
-	 * 7.d Type C with DP alternate or fixed/legacy/static connection -
-	 * Disable PHY clock gating per Type-C DDI Buffer page
-	 */
-	icl_phy_set_clock_gating(dig_port, false);
-
 	/* 7.e Configure voltage swing and related IO settings */
 	tgl_ddi_vswing_sequence(encoder, crtc_state->port_clock, level,
 				encoder->type);
@@ -3565,15 +3550,6 @@ static void tgl_ddi_pre_enable_dp(struct intel_encoder *encoder,
 	if (!is_trans_port_sync_mode(crtc_state))
 		intel_dp_stop_link_train(intel_dp);
 
-	/*
-	 * TODO: enable clock gating
-	 *
-	 * It is not written in DP enabling sequence but "PHY Clockgating
-	 * programming" states that clock gating should be enabled after the
-	 * link training but doing so causes all the following trainings to fail
-	 * so not enabling it for now.
-	 */
-
 	/* 7.l Configure and enable FEC if needed */
 	intel_ddi_enable_fec(encoder, crtc_state);
 	intel_dsc_enable(encoder, crtc_state);
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 32 lines · Jani Nikula
Quoted 30 lines · José Roberto de Souza

Talked with HW team and this is a left over, driver should not program clockgating, dekel firmware will be reponsible for any clockgating programing.

v2:
Added WARN_ON

BSpec issue: 20885
BSpec: 49292

---
 drivers/gpu/drm/i915/display/intel_ddi.c | 54 +++++++-------------
----
 1 file changed, 15 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +0 -0
index a976606d21c7..66052a9f1474 100644
@@ -3167,6 +3167,10 @@ icl_phy_set_clock_gating(struct
 intel_digital_port *dig_port, bool enable)
 	u32 val, bits;
 	int ln;
 
Quoted 3 lines

drivers/gpu/drm/i915/display/intel_ddi.c icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable) · line 3170

Quoted 1 line
drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	/* See "PHY Clockgating programming" note */

Where?

BSpec: 49292, PHY Clockgating programming: Display driver should not program the following bits.

Quoted 86 lines
Quoted 86 lines
drivers/gpu/drm/i915/display/intel_ddi.c +6 -17
+	if (WARN_ON(INTEL_GEN(dev_priv) >= 12))
+		return;
+
 	if (tc_port == PORT_TC_NONE)
 		return;
@@ -3175,39 +3179,26 @@ icl_phy_set_clock_gating(struct
 intel_digital_port *dig_port, bool enable)
 	       MG_DP_MODE_CFG_GAONPWR_GATING;
 
 	for (ln = 0; ln < 2; ln++) {
-		if (INTEL_GEN(dev_priv) >= 12) {
-			I915_WRITE(HIP_INDEX_REG(tc_port),
 HIP_INDEX_VAL(tc_port, ln));
-			val = I915_READ(DKL_DP_MODE(tc_port));
-		} else {
-			val = I915_READ(MG_DP_MODE(ln, tc_port));
-		}
+		val = I915_READ(MG_DP_MODE(ln, tc_port));
 
 		if (enable)
 			val |= bits;
 		else
 			val &= ~bits;
 
-		if (INTEL_GEN(dev_priv) >= 12)
-			I915_WRITE(DKL_DP_MODE(tc_port), val);
-		else
-			I915_WRITE(MG_DP_MODE(ln, tc_port), val);
+		I915_WRITE(MG_DP_MODE(ln, tc_port), val);
 	}
 
-	if (INTEL_GEN(dev_priv) == 11) {
-		bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |
-		       MG_MISC_SUS0_CFG_CL2PWR_GATING |
-		       MG_MISC_SUS0_CFG_GAONPWR_GATING |
-		       MG_MISC_SUS0_CFG_TRPWR_GATING |
-		       MG_MISC_SUS0_CFG_CL1PWR_GATING |
-		       MG_MISC_SUS0_CFG_DGPWR_GATING;
+	bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |

MG_MISC_SUS0_CFG_CL2PWR_GATING |

drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	       MG_MISC_SUS0_CFG_GAONPWR_GATING |

MG_MISC_SUS0_CFG_TRPWR_GATING |

drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	       MG_MISC_SUS0_CFG_CL1PWR_GATING |

MG_MISC_SUS0_CFG_DGPWR_GATING;

drivers/gpu/drm/i915/display/intel_ddi.c +0 -3
-		val = I915_READ(MG_MISC_SUS0(tc_port));
-		if (enable)
-			val |= (bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));

drivers/gpu/drm/i915/display/intel_ddi.c +0 -2
-		else
-			val &= ~(bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);

drivers/gpu/drm/i915/display/intel_ddi.c +5 -2
-		I915_WRITE(MG_MISC_SUS0(tc_port), val);
-	}
+	val = I915_READ(MG_MISC_SUS0(tc_port));
+	if (enable)
+		val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
+	else
+		val &= ~(bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);

drivers/gpu/drm/i915/display/intel_ddi.c +1 -2
+	I915_WRITE(MG_MISC_SUS0(tc_port), val);
 }
 
 static void
@@ -3508,12 +3499,6 @@ static void tgl_ddi_pre_enable_dp(struct
 intel_encoder *encoder,
 	 * down this function.
 	 */
 
-	/*
-	 * 7.d Type C with DP alternate or fixed/legacy/static

connection -

drivers/gpu/drm/i915/display/intel_ddi.c +0 -4
-	 * Disable PHY clock gating per Type-C DDI Buffer page
-	 */
-	icl_phy_set_clock_gating(dig_port, false);
-
 	/* 7.e Configure voltage swing and related IO settings */
 	tgl_ddi_vswing_sequence(encoder, crtc_state->port_clock, level,
 				encoder->type);
@@ -3565,15 +3550,6 @@ static void tgl_ddi_pre_enable_dp(struct
 intel_encoder *encoder,
 	if (!is_trans_port_sync_mode(crtc_state))
 		intel_dp_stop_link_train(intel_dp);
 
Quoted 15 lines
Quoted 9 lines
drivers/gpu/drm/i915/display/intel_ddi.c +0 -4
-	/*
-	 * TODO: enable clock gating
-	 *
-	 * It is not written in DP enabling sequence but "PHY

Clockgating

drivers/gpu/drm/i915/display/intel_ddi.c +0 -1
-	 * programming" states that clock gating should be enabled

after the

drivers/gpu/drm/i915/display/intel_ddi.c +0 -1
-	 * link training but doing so causes all the following

trainings to fail

drivers/gpu/drm/i915/display/intel_ddi.c static void tgl_ddi_pre_enable_dp(struct intel_encoder *encoder, · line 3555

Quoted 6 lines
drivers/gpu/drm/i915/display/intel_ddi.c +0 -3
-	 * so not enabling it for now.
-	 */
-
 	/* 7.l Configure and enable FEC if needed */
 	intel_ddi_enable_fec(encoder, crtc_state);
 	intel_dsc_enable(encoder, crtc_state);

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

#5 lore raw
Quoted 33 lines · Jose
Quoted 32 lines · Jani Nikula
Quoted 30 lines · José Roberto de Souza

Talked with HW team and this is a left over, driver should not program clockgating, dekel firmware will be reponsible for any clockgating programing.

v2:
Added WARN_ON

BSpec issue: 20885
BSpec: 49292

---
 drivers/gpu/drm/i915/display/intel_ddi.c | 54 +++++++-------------
----
 1 file changed, 15 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_ddi.c +0 -0
index a976606d21c7..66052a9f1474 100644
@@ -3167,6 +3167,10 @@ icl_phy_set_clock_gating(struct
 intel_digital_port *dig_port, bool enable)
 	u32 val, bits;
 	int ln;
 
Quoted 6 lines
Quoted 3 lines

drivers/gpu/drm/i915/display/intel_ddi.c icl_phy_set_clock_gating(struct intel_digital_port *dig_port, bool enable) · line 3170

Quoted 1 line
drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	/* See "PHY Clockgating programming" note */

Where?

BSpec: 49292, PHY Clockgating programming: Display driver should not program the following bits.

In a code comment, people would look for the note in the source. That's certainly what *I* did. And it's pretty rude to have a reference to internal documentation in a public source tree.

If you think we need to have the comment, please paraphrase the spec. For example, just "Per Bspec we shouldn't do this on gen12+" or something is better than an obscure reference.

BR,
Jani.

Quoted 102 lines
Quoted 102 lines
Quoted 102 lines
drivers/gpu/drm/i915/display/intel_ddi.c +6 -17
+	if (WARN_ON(INTEL_GEN(dev_priv) >= 12))
+		return;
+
 	if (tc_port == PORT_TC_NONE)
 		return;
@@ -3175,39 +3179,26 @@ icl_phy_set_clock_gating(struct
 intel_digital_port *dig_port, bool enable)
 	       MG_DP_MODE_CFG_GAONPWR_GATING;
 
 	for (ln = 0; ln < 2; ln++) {
-		if (INTEL_GEN(dev_priv) >= 12) {
-			I915_WRITE(HIP_INDEX_REG(tc_port),
 HIP_INDEX_VAL(tc_port, ln));
-			val = I915_READ(DKL_DP_MODE(tc_port));
-		} else {
-			val = I915_READ(MG_DP_MODE(ln, tc_port));
-		}
+		val = I915_READ(MG_DP_MODE(ln, tc_port));
 
 		if (enable)
 			val |= bits;
 		else
 			val &= ~bits;
 
-		if (INTEL_GEN(dev_priv) >= 12)
-			I915_WRITE(DKL_DP_MODE(tc_port), val);
-		else
-			I915_WRITE(MG_DP_MODE(ln, tc_port), val);
+		I915_WRITE(MG_DP_MODE(ln, tc_port), val);
 	}
 
-	if (INTEL_GEN(dev_priv) == 11) {
-		bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |
-		       MG_MISC_SUS0_CFG_CL2PWR_GATING |
-		       MG_MISC_SUS0_CFG_GAONPWR_GATING |
-		       MG_MISC_SUS0_CFG_TRPWR_GATING |
-		       MG_MISC_SUS0_CFG_CL1PWR_GATING |
-		       MG_MISC_SUS0_CFG_DGPWR_GATING;
+	bits = MG_MISC_SUS0_CFG_TR2PWR_GATING |

MG_MISC_SUS0_CFG_CL2PWR_GATING |

drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	       MG_MISC_SUS0_CFG_GAONPWR_GATING |

MG_MISC_SUS0_CFG_TRPWR_GATING |

drivers/gpu/drm/i915/display/intel_ddi.c +1 -0
+	       MG_MISC_SUS0_CFG_CL1PWR_GATING |

MG_MISC_SUS0_CFG_DGPWR_GATING;

drivers/gpu/drm/i915/display/intel_ddi.c +0 -3
-		val = I915_READ(MG_MISC_SUS0(tc_port));
-		if (enable)
-			val |= (bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));

drivers/gpu/drm/i915/display/intel_ddi.c +0 -2
-		else
-			val &= ~(bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);

drivers/gpu/drm/i915/display/intel_ddi.c +5 -2
-		I915_WRITE(MG_MISC_SUS0(tc_port), val);
-	}
+	val = I915_READ(MG_MISC_SUS0(tc_port));
+	if (enable)
+		val |= (bits | MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE(3));
+	else
+		val &= ~(bits |

MG_MISC_SUS0_SUSCLK_DYNCLKGATE_MODE_MASK);

drivers/gpu/drm/i915/display/intel_ddi.c +1 -2
+	I915_WRITE(MG_MISC_SUS0(tc_port), val);
 }
 
 static void
@@ -3508,12 +3499,6 @@ static void tgl_ddi_pre_enable_dp(struct
 intel_encoder *encoder,
 	 * down this function.
 	 */
 
-	/*
-	 * 7.d Type C with DP alternate or fixed/legacy/static

connection -

drivers/gpu/drm/i915/display/intel_ddi.c +0 -8
-	 * Disable PHY clock gating per Type-C DDI Buffer page
-	 */
-	icl_phy_set_clock_gating(dig_port, false);
-
 	/* 7.e Configure voltage swing and related IO settings */
 	tgl_ddi_vswing_sequence(encoder, crtc_state->port_clock, level,
 				encoder->type);
@@ -3565,15 +3550,6 @@ static void tgl_ddi_pre_enable_dp(struct
 intel_encoder *encoder,
 	if (!is_trans_port_sync_mode(crtc_state))
 		intel_dp_stop_link_train(intel_dp);
 
-	/*
-	 * TODO: enable clock gating
-	 *
-	 * It is not written in DP enabling sequence but "PHY

Clockgating

drivers/gpu/drm/i915/display/intel_ddi.c +0 -1
-	 * programming" states that clock gating should be enabled

after the

drivers/gpu/drm/i915/display/intel_ddi.c +0 -1
-	 * link training but doing so causes all the following

trainings to fail

drivers/gpu/drm/i915/display/intel_ddi.c +0 -3
-	 * so not enabling it for now.
-	 */
-
 	/* 7.l Configure and enable FEC if needed */
 	intel_ddi_enable_fec(encoder, crtc_state);
 	intel_dsc_enable(encoder, crtc_state);
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx