drm/amd/powerplay: add vega20 pre_display_config_changed callback
authorEvan Quan <evan.quan@amd.com>
Wed, 9 May 2018 03:14:06 +0000 (11:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:30 +0000 (11:10 -0500)
commit8dd97d6bc2c5875a365fbe0f4f00de3ae62390e2
treea0c8f0bea27755edc648a3a24a977ca3c2a6efa5
parentb8497699ef8a1858e7246bf1abfa0c84a479f665
drm/amd/powerplay: add vega20 pre_display_config_changed callback

fix possible handshake hang and video playback crash

Corner cases:
 - Handshake between SMU and DCE causes hangs when CRTC is not
   enabled
 - System crash occurs when starting 4K playback with Movies and TV
   in an SLS configuration

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c