* [PATCH v2] drm/i915/panel: Restrict highest mode to DRRS-compatible modes
@ 2026-11-18 1:49 Fred Gao
0 siblings, 0 replies; only message in thread
From: Fred Gao @ 2026-11-18 1:49 UTC (permalink / raw)
To: intel-gfx
Cc: intel-xe, dri-devel, linux-kernel, jani.nikula, rodrigo.vivi,
joonas.lahtinen, tursulin, ville.syrjala, Fred Gao,
Chenchen Wang
intel_dp_mode_clock() uses intel_panel_highest_mode() when seamless M/N
updates are supported so the link configuration can accommodate every
seamless DRRS refresh rate.
The panel fixed mode list can also contain modes with the same active
size but different blanking timings. Such modes require a full modeset
and cannot participate in a seamless M/N switch. Letting them affect the
highest clock can unnecessarily reduce the selected bpp.
On a 5120x2160 panel, the preferred DisplayID mode uses 717260 kHz, while a
CTA mode with different blanking uses 742500 kHz. HBR2 x4 can carry the
preferred mode at 24 bpp, but not the CTA clock. The latter therefore makes
the link configuration fall back to 18 bpp. The firmware state is 24 bpp,
so the mismatch forces a full modeset and an eDP backlight and panel power
cycle during driver takeover.
Use is_alt_drrs_mode() to consider only fixed modes whose timings and flags
match the adjusted mode. This preserves bandwidth reservation for genuine
seamless DRRS alternatives while excluding modes that would require a full
modeset.
Fixes: 74d6f31fa427 ("drm/i915: Add intel_panel_highest_mode()")
Signed-off-by: Fred Gao <fred.gao@intel.com>
Reviewed-by: Chenchen Wang <chenchen.wang@intel.com>
---
v2:
- Resubmit as requested by the CI team to trigger a fresh CI run.
No code changes. The previous IGT failures were caused by unrelated
patches.
drivers/gpu/drm/i915/display/intel_panel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_panel.c b/drivers/gpu/drm/i915/display/intel_panel.c
index 81e638d0c7b3..e82082adb4c0 100644
--- a/drivers/gpu/drm/i915/display/intel_panel.c
+++ b/drivers/gpu/drm/i915/display/intel_panel.c
@@ -192,7 +192,8 @@ intel_panel_highest_mode(struct intel_connector *connector,
/* pick the fixed_mode that has the highest clock */
list_for_each_entry(fixed_mode, &connector->panel.fixed_modes, head) {
- if (fixed_mode->clock > best_mode->clock)
+ if (is_alt_drrs_mode(fixed_mode, adjusted_mode) &&
+ fixed_mode->clock > best_mode->clock)
best_mode = fixed_mode;
}
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-18 1:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18 1:49 [PATCH v2] drm/i915/panel: Restrict highest mode to DRRS-compatible modes Fred Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®