]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/dsb: Introduce intel_dsb_wait_usec()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Sep 2024 17:04:08 +0000 (20:04 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 3 Oct 2024 21:33:10 +0000 (00:33 +0300)
commitde968532fd562af00cd630b5bb7f42e36dbbe755
tree3f35a539a06f625e1c955c28b1ef1bf7f1e2d43f
parent63b41d207dc12ee2632fcad6229bfca2c54da5d9
drm/i915/dsb: Introduce intel_dsb_wait_usec()

Add a function to emit the DSB "wait usecs" instruction.
This is just a usleep() for the DSB.

As a lower bound it seems pretty accurate, but the upper bound
seemed oddly relaxed (ie. sometimes I've seen waits that are
quite a bit longer than specified, not sure why).

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-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/display/intel_dsb.h