drm/amd/display: fix up HUBBUB hw programming for VM
authorJun Lei <jun.lei@amd.com>
Mon, 3 Jun 2019 12:13:12 +0000 (08:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:17:18 +0000 (14:17 -0500)
commit0bd8ac7ed5f9a1a26c722c6cdbc4cb178d36cc03
tree98144068a0d08fa5711ab8e018eca49542482665
parent61f33f6aa88388e36ff8ef27a40b4a173c1511d1
drm/amd/display: fix up HUBBUB hw programming for VM

[why]
Some values were not being converted or bit-shifted properly for
HW registers, causing black screen

[how]
Fix up the values before programming HW

Signed-off-by: Jun Lei <jun.lei@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h