OSDN Git Service

drm/i915/display: Disable audio, DRRS and PSR before planes
authorJosé Roberto de Souza <jose.souza@intel.com>
Mon, 26 Jul 2021 18:15:59 +0000 (11:15 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Tue, 27 Jul 2021 20:35:02 +0000 (13:35 -0700)
commit84030adb9e27d202a66022488bf0349a8bd45213
tree8c89007decb9c6afb36c742ea1c9f900d9f982b3
parent192fbfb7674481c605dc49ead3ada9a4ee2420e1
drm/i915/display: Disable audio, DRRS and PSR before planes

HDMI and DisplayPort sequences states that audio and PSR should be
disabled before planes are disabled.
Not following it did not caused any problems up to Alderlake-P but
for this platform it causes underruns during the PSR2 disable
sequence.

Specification don't mention that DRRS should be disabled before planes
but it looks safer to switch back to the default refresh rate before
following with the rest of the pipe disable sequence.

BSpec: 49191
BSpec: 49190
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210726181559.80855-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_mst.c