drm/i915: Call intel_pre_plane_updates() also for pipes getting enabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Nov 2023 05:43:15 +0000 (07:43 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 29 Nov 2023 08:23:25 +0000 (10:23 +0200)
commitd21a3962d3042e6f56ad324cf18bdd64a1e6ecfa
treefe07e35ead6e8d41e9334afd23b8a047af691041
parentf76f83a83c8fdbb62acbf8bd945f10821768145b
drm/i915: Call intel_pre_plane_updates() also for pipes getting enabled

We used to call intel_pre_plane_updates() for any pipe going through
a modeset whether the pipe was previously enabled or not. This in
fact needed to apply all the necessary clock gating workarounds/etc.
Restore the correct behaviour.

Fixes: 39919997322f ("drm/i915: Disable all planes before modesetting any pipes")
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231121054324.9988-3-ville.syrjala@linux.intel.com
(cherry picked from commit e0d5ce11ed0a21bb2bf328ad82fd261783c7ad88)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display.c