Skip to content

Commit 509c789

Browse files
vsyrjalamehmetb0
authored andcommitted
drm/i915: Fix scanline_offset for LNL+ and BMG+
BugLink: https://bugs.launchpad.net/bugs/2109367 commit ed583d0 upstream. Turns out LNL+ and BMG+ no longer have the weird extra scanline offset for HDMI outputs. Fix intel_crtc_scanline_offset() accordingly so that scanline evasion/etc. works correctly on HDMI outputs on these new platforms. Cc: [email protected] Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Uma Shankar <[email protected]> (cherry picked from commit fede97b) Signed-off-by: Jani Nikula <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 1fdcdb5 commit 509c789

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/i915/display/intel_vblank.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ int intel_crtc_scanline_offset(const struct intel_crtc_state *crtc_state)
222222
* However if queried just before the start of vblank we'll get an
223223
* answer that's slightly in the future.
224224
*/
225-
if (DISPLAY_VER(display) == 2)
225+
if (DISPLAY_VER(display) >= 20 || display->platform.battlemage)
226+
return 1;
227+
else if (DISPLAY_VER(display) == 2)
226228
return -1;
227229
else if (HAS_DDI(display) && intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI))
228230
return 2;

0 commit comments

Comments
 (0)