drm/i915: Do plane/etc. updates more atomically across pipes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Sep 2023 12:25:41 +0000 (15:25 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Nov 2023 17:20:20 +0000 (19:20 +0200)
commitc610e841f19d57233062868f2408349e9ecade91
tree2b92920f6eabfcc77c879ebc6ce604036aa9c8f7
parentc39c93578106f035218078c300db6361cf6a326c
drm/i915: Do plane/etc. updates more atomically across pipes

Perform all the intel_pre_update_crtc() stuff for all pipes first,
and only then do the intel_update_crtc() vblank evasion stuff for
every pipe back to back. This should make it more likely that
the plane updates from multiple pipes happen on the same frame
(assuming the pipes are running in sync, eg. due to bigjoiner
or port sync).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230907122541.32261-4-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/display/intel_display.c