]> Git Repo - linux.git/commitdiff
drm/i915: Call intel_pre_plane_updates() also for pipes getting enabled
authorVille Syrjälä <[email protected]>
Tue, 21 Nov 2023 05:43:15 +0000 (07:43 +0200)
committerJani Nikula <[email protected]>
Wed, 29 Nov 2023 08:23:25 +0000 (10:23 +0200)
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 <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit e0d5ce11ed0a21bb2bf328ad82fd261783c7ad88)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/display/intel_display.c

index 28d85e1e858eaa7fc9b38ba613b44d5f685bdd77..a2a806262c9e1f4e35c955ca40998fe70a56eb6e 100644 (file)
@@ -6853,10 +6853,11 @@ static void intel_commit_modeset_disables(struct intel_atomic_state *state)
                if (!intel_crtc_needs_modeset(new_crtc_state))
                        continue;
 
+               intel_pre_plane_update(state, crtc);
+
                if (!old_crtc_state->hw.active)
                        continue;
 
-               intel_pre_plane_update(state, crtc);
                intel_crtc_disable_planes(state, crtc);
        }
 
This page took 0.100487 seconds and 4 git commands to generate.