drm/amd/display: Make atomic-check validate underscan changes
authorDavid Francis <David.Francis@amd.com>
Thu, 31 May 2018 17:48:31 +0000 (13:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 31 May 2018 18:08:22 +0000 (13:08 -0500)
commita9e8d27574f26700575473011cb607d4abdbda5f
tree8916a18106034be7f7f6fd2788c17a72b2a1e307
parent0e333751cff1dd7383be15372960a1be6e2b4e47
drm/amd/display: Make atomic-check validate underscan changes

When the underscan state was changed, atomic-check was triggering a
validation but passing the old underscan values.  This change adds a
somewhat hacky check in dm_update_crtcs_state that will update the
stream if old and newunderscan values are different.
This was causing 4k on Fiji to allow underscan when it wasn't permitted.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: David Francis <David.Francis@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c