All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/cdclk: Ignore the DPLL0 override bit on SKL/derivatives
@ 2026-12-04 23:17 Ville Syrjala
  2026-12-04 23:32 ` sashiko-bot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ville Syrjala @ 2026-12-04 23:17 UTC (permalink / raw)
  To: intel-gfx; +Cc: stable, Mateusz Jończyk

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Apparently the GOP fails to set the DPLL0 override bit on
some systems (eg. HP 17-by0001nw). Based on additional local
testing that bit doesn't actually seem to do anything for DPLL0.

Ignore the override bit during readout. This avoids triggering
the WARN and CDCLK sanitization (with outputs still enabled)
on affected systems. Continue setting the override bit during
normal CDCLK programming just to keep the code otherwise fully
in line with the spec.

Cc: stable@vger.kernel.org
Tested-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Fixes: a6e9767ca2e3 ("drm/i915/cdclk: Ignore SWF18 in SKL CDCLK sanitization")
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/17997
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_cdclk.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/intel_cdclk.c
index 0f2f693c78d4..525b37e68fd8 100644
--- a/drivers/gpu/drm/i915/display/intel_cdclk.c
+++ b/drivers/gpu/drm/i915/display/intel_cdclk.c
@@ -1019,11 +1019,14 @@ static void skl_dpll0_update(struct intel_display *display,
 
 	val = intel_de_read(display, DPLL_CTRL1);
 
+	/*
+	 * DPLL_CTRL1_OVERRIDE doesn't seem to do anything
+	 * for DPLL0, and the firmware fails to set it on
+	 * some systems (eg. HP 17-by0001nw). Ignore it.
+	 */
 	if (drm_WARN_ON(display->drm,
-			(val & (DPLL_CTRL1_HDMI_MODE(SKL_DPLL0) |
-				DPLL_CTRL1_SSC(SKL_DPLL0) |
-				DPLL_CTRL1_OVERRIDE(SKL_DPLL0))) !=
-			DPLL_CTRL1_OVERRIDE(SKL_DPLL0)))
+			val & (DPLL_CTRL1_HDMI_MODE(SKL_DPLL0) |
+			       DPLL_CTRL1_SSC(SKL_DPLL0))))
 		return;
 
 	switch (val & DPLL_CTRL1_LINK_RATE_MASK(SKL_DPLL0)) {
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-05 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 23:17 [PATCH] drm/i915/cdclk: Ignore the DPLL0 override bit on SKL/derivatives Ville Syrjala
2026-12-04 23:32 ` sashiko-bot
2026-12-05  0:14 ` ✓ i915.CI.BAT: success for " Patchwork
2026-12-05 13:37 ` ✓ i915.CI.Full: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.