drm/i915/dsb: Introduce intel_dsb_wait_vblanks()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2024 17:04:09 +0000 (20:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Oct 2024 21:33:13 +0000 (00:33 +0300)
commitd6dfbc6f81c3f86497b0d2e4e4f32ea6642aa5df
tree737fd190c93d6c85439041b000b0a4d55e5bbde9
parentde968532fd562af00cd630b5bb7f42e36dbbe755
drm/i915/dsb: Introduce intel_dsb_wait_vblanks()

Add a function to emit a DSB wait for vblank instruction. This
just waits until the specified number of vblanks.

Note that this triggers on the transcoder's undelayed vblank,
as opposed to the pipe's delayed vblank.

Reviewed-by: Animesh Manna <animesh.manna@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930170415.23841-8-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/display/intel_dsb.h