drm/amdgpu: Program xcp_ctl registers as needed
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 20 Jul 2023 05:50:43 +0000 (11:20 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jul 2023 20:52:25 +0000 (16:52 -0400)
commit0bdebfef3fb2b6291000765eaa9c6c8030293fce
tree6a37961ce025e49cfaed1418bbfc3e07616217c5
parentcef600e1fd63c338bfe19ee3e1adeff8801ba14d
drm/amdgpu: Program xcp_ctl registers as needed

XCP_CTL register is expected to be programmed by firmware. Under certain
conditions FW may not have programmed it correctly. As a workaround,
program it when FW has not programmed the right values.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c