From: José Roberto de Souza Date: Mon, 2 Dec 2019 22:25:11 +0000 (-0800) Subject: drm/i915/display: Check the old state to find port sync slave X-Git-Tag: v5.6-rc1~114^2~17^2~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e815aff59dcf3f4aaf7ca061b07c0a6ef63f2351;p=thirdparty%2Flinux.git drm/i915/display: Check the old state to find port sync slave If the CRTC is going from enabled to disabled and it is a port sync slave, it needs to check to the old state to be disabled before the port sync master. Cc: Manasi Navare Cc: Matt Roper Cc: Maarten Lankhorst Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: José Roberto de Souza Link: https://patchwork.freedesktop.org/patch/msgid/20191202222513.337777-1-jose.souza@intel.com --- diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 947739f18b0a6..c2161ce8fe650 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -14497,8 +14497,8 @@ static void intel_commit_modeset_disables(struct intel_atomic_state *state) * slave CRTCs are disabled first and then master CRTC since * Slave vblanks are masked till Master Vblanks. */ - if (is_trans_port_sync_mode(new_crtc_state)) { - if (is_trans_port_sync_master(new_crtc_state)) + if (is_trans_port_sync_mode(old_crtc_state)) { + if (is_trans_port_sync_master(old_crtc_state)) intel_trans_port_sync_modeset_disables(state, crtc, old_crtc_state,