OSDN Git Service

drm/i915: Skip intel_modeset_pipe_config_late() if the pipe is not enabled
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Sep 2022 09:10:53 +0000 (12:10 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 8 Sep 2022 11:21:37 +0000 (14:21 +0300)
No sense in calling intel_modeset_pipe_config_late() for a disabled
pipe.

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/20220907091057.11572-14-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_display.c

index 976af60..765ec31 100644 (file)
@@ -6783,9 +6783,11 @@ static int intel_atomic_check(struct drm_device *dev,
                if (!intel_crtc_needs_modeset(new_crtc_state))
                        continue;
 
-               ret = intel_modeset_pipe_config_late(state, crtc);
-               if (ret)
-                       goto fail;
+               if (new_crtc_state->hw.enable) {
+                       ret = intel_modeset_pipe_config_late(state, crtc);
+                       if (ret)
+                               goto fail;
+               }
 
                intel_crtc_check_fastset(old_crtc_state, new_crtc_state);
        }