From: Ander Conselvan de Oliveira Date: Tue, 21 Apr 2015 14:13:03 +0000 (+0300) Subject: drm/i915: Calculate a new pipe_config based on new enabled state X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~12009^2~54^2~47 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4fed33f6485be65b1e8155c843987030a2ae74fa;p=mirror_ubuntu-focal-kernel.git drm/i915: Calculate a new pipe_config based on new enabled state With the current implementation of intel_modeset_affected_pipes(), if a pipe will be enabled then it is in modeset_pipes. We'll remove that mask in a follow up patch, but want to preserve this behavior, so just make that explicit. Signed-off-by: Ander Conselvan de Oliveira Reviewed-by: Maarten Lankhorst Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 0d18a436e34c..aa445386b21f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -12220,7 +12220,7 @@ intel_modeset_compute_config(struct drm_crtc *crtc, if (IS_ERR(pipe_config)) return pipe_config; - if (!(*modeset_pipes & (1 << to_intel_crtc(crtc)->pipe))) + if (!pipe_config->base.enable) return pipe_config; ret = intel_modeset_pipe_config(crtc, mode, state, pipe_config);