Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/psr: Fix for Panel Replay X granularity DPCD register handling

DP specification is saying value 0xff 0xff in PANEL REPLAY SELECTIVE UPDATE
X GRANULARITY CAPABILITY registers (0xb2 and 0xb3) means full-line
granularity. Take this into account when handling Panel Replay X
granularity informed by the panel.

Fixes: 1cc854647450 ("drm/i915/psr: Use SU granularity information available in intel_connector")
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/7284
Tested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patch.msgid.link/20260225074221.1744330-2-jouni.hogander@intel.com

+8 -3
+8 -3
drivers/gpu/drm/i915/display/intel_psr.c
··· 1306 1306 u16 sink_y_granularity = crtc_state->has_panel_replay ? 1307 1307 connector->dp.panel_replay_caps.su_y_granularity : 1308 1308 connector->dp.psr_caps.su_y_granularity; 1309 - u16 sink_w_granularity = crtc_state->has_panel_replay ? 1310 - connector->dp.panel_replay_caps.su_w_granularity : 1311 - connector->dp.psr_caps.su_w_granularity; 1309 + u16 sink_w_granularity; 1310 + 1311 + if (crtc_state->has_panel_replay) 1312 + sink_w_granularity = connector->dp.panel_replay_caps.su_w_granularity == 1313 + DP_PANEL_REPLAY_FULL_LINE_GRANULARITY ? 1314 + crtc_hdisplay : connector->dp.panel_replay_caps.su_w_granularity; 1315 + else 1316 + sink_w_granularity = connector->dp.psr_caps.su_w_granularity; 1312 1317 1313 1318 /* PSR2 HW only send full lines so we only need to validate the width */ 1314 1319 if (crtc_hdisplay % sink_w_granularity)