]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/display: Make intel_crtc_get_vblank_counter safe on PREEMPT_RT
authorMaarten Lankhorst <dev@lankhorst.se>
Fri, 29 Aug 2025 13:17:02 +0000 (15:17 +0200)
committerMaarten Lankhorst <dev@lankhorst.se>
Thu, 9 Oct 2025 14:10:37 +0000 (16:10 +0200)
commit76e46dbf80918ef0dc8e489f88959bab48b6b9ce
treeea074396ec3ed3c58b958d490c886bfcc7ebabed
parented1fbee3debbfcf6fd69a69509545ace00118f82
drm/i915/display: Make intel_crtc_get_vblank_counter safe on PREEMPT_RT

drm_crtc_accurate_vblank_count takes a spinlock, which we should avoid
in tracepoints and debug functions.

This also prevents taking the spinlock 2x during the critical
section of pipe updates for DSI updates.

Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250829131701.15607-2-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/i915/display/intel_crtc.c