]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28cf3011c5262dd63fc04dcd7a16add4ac9f156d
treed4729668a1168225a2acc535814b7928126c764d
parent1fedba3f0de7fae51f84af330a9a726cd3c7fa48
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