drm/i915/dsi: Fix TE pin configuration for dual-link DSI
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 2/3 drm/i915/dsi: Fix hsync readout for dual-link command mode
From: Yu Zhang <[email protected]>
gen11_dsi_get_timings() only doubles hsync_start/end for dual-link DSI in video mode. For command mode dual-link, the hardware stores per-link values (e.g. hsync_start=1380 instead of 2762), but the readout does not compensate, causing:
[drm] *ERROR* hw.pipe_mode.crtc_hsync_start (expected 2762, found 1380)
Fix this by applying the dual-link hsync doubling unconditionally, matching the SET side where hsync is now halved for all modes.
--- drivers/gpu/drm/i915/display/icl_dsi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/display/icl_dsi.c +3 -5
@@ -1527,11 +1527,9 @@ static void gen11_dsi_get_timings(struct intel_encoder *encoder, adjusted_mode->crtc_hblank_start = adjusted_mode->crtc_hdisplay; adjusted_mode->crtc_hblank_end = adjusted_mode->crtc_htotal; -if (intel_dsi->operation_mode ==INTEL_DSI_VIDEO_MODE ) { -if (intel_dsi->dual_link) { - adjusted_mode->crtc_hsync_start *=2 ; - adjusted_mode->crtc_hsync_end *=2 ; - } +if (intel_dsi->dual_link) { + adjusted_mode->crtc_hsync_start *=2 ; + adjusted_mode->crtc_hsync_end *=2 ; } adjusted_mode->crtc_vblank_start = adjusted_mode->crtc_vdisplay; adjusted_mode->crtc_vblank_end = adjusted_mode->crtc_vtotal;
Signature · 1 line
2.43.0
PATCH 3/3 drm/i915/dsi: Fix TE pin configuration for dual-link DSI
In reply to a message not in the archiveFrom: Yu Zhang <[email protected]>
gen11_dsi_config_util_pin() skips UTIL_PIN configuration for any port mask that includes PORT_B. For dual-link (PORT_A | PORT_B), PORT_A still needs UTIL_PIN as TE (Tearing Effect) input. Without it, vblank interrupts never fire and flip_done operations time out on command mode dual-link panels.
Only PORT_B-only configurations should skip this step, as TE comes from the slave DSI1 through GPIO in that case.
--- drivers/gpu/drm/i915/display/icl_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/icl_dsi.c +1 -1
@@ -1113,7 +1113,7 @@ static void gen11_dsi_config_util_pin(struct intel_encoder *encoder,* for dual link/DSI1 TE is from slave DSI1 * through GPIO. */ -if (is_vid_mode (intel_dsi) || (intel_dsi->ports &BIT (PORT_B ))) +if (is_vid_mode (intel_dsi) || intel_dsi->ports ==BIT (PORT_B ))return ; tmp =intel_de_read (display,UTIL_PIN_CTL );
Signature · 1 line
2.43.0