drm/xe/display: Add intel_plane_initial_vblank_wait
authorMaarten Lankhorst <dev@lankhorst.se>
Tue, 21 Jan 2025 14:28:48 +0000 (15:28 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Fri, 31 Jan 2025 08:42:17 +0000 (09:42 +0100)
commitcf29a866a139519d6274756d65ebc29c9d749034
tree08120969c3877aac57936d4da07a27214dfccc51
parent220ed690436e919a523bd8cd0ca803268025d4b6
drm/xe/display: Add intel_plane_initial_vblank_wait

We're changing the driver to have no interrupts during early init for
Xe, so we poll the PIPE_FRMSTMSMP counter instead.

Interrupts cannot be enabled during FB readout because memirq's requires
an allocation. This would overwrite the FB we want to read out.

While it might be possible to also run do the same in i915 and run
it without interrupts, the platforms i915 supports had a less clear
distinction between display and graphics. For this reason I choose
only to touch Xe for now.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250121142850.4960-1-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_plane_initial.c
drivers/gpu/drm/i915/display/intel_plane_initial.h
drivers/gpu/drm/xe/display/xe_plane_initial.c