drm/amd/display: Set vsc pack revision when DPCD revision is >= 1.2
authorTao <xtao@amd.com>
Thu, 8 Feb 2018 21:04:25 +0000 (16:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:15 +0000 (14:20 -0500)
commit3b94a4007dcfd4ac5780cd3d8a2d99979c966073
treed4729668a1168225a2acc535814b7928126c764d
parente923a355aa5dc861d4a50c29a292242bd90140c8
drm/amd/display: Set vsc pack revision when DPCD revision is >= 1.2

Brightness couldn't change when booting up in DC mode.
It was because "psr_enabled" flag was not set to true before
setting vsc packet revision, causing packet rev setup was skipped.
Now instead of checking the psr flag, it checks if the DPCD_REV >= 1.2
and set the vsc packet revision.

Signed-off-by: Tao <xtao@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c