drm/i915: Add pre/post plane updates for SAGV
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Wed, 15 Apr 2020 14:39:04 +0000 (17:39 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Apr 2020 17:41:00 +0000 (20:41 +0300)
commit680e1af713d92940e39a313a8592b13a6885a14c
treed15911e3f9e985df91653213d09251124c54dce2
parenta389c49fac556cba82edee7a5724269ec2d28981
drm/i915: Add pre/post plane updates for SAGV

Lets have a unified way to handle SAGV changes,
espoecially considering the upcoming Gen12 changes.

Current "standard" way of doing this in commit_tail
is pre/post plane updates, when everything which
has to be forbidden and not supported in new config
has to be restricted before update and relaxed after
plane update.

v2: - Removed unneeded returns(Ville)

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