drm/amdgpu: Need to set the baco cap before baco reset
authorEmily Deng <Emily.Deng@amd.com>
Tue, 28 May 2019 02:17:04 +0000 (10:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 May 2019 19:47:42 +0000 (14:47 -0500)
commit394e9a14c63d58e0f45323629a3f9ce1e5bf0215
treef87083296c2c93abbc36053cbec3af1bbbab37af
parentd55f33da541324c7f41156dd6d045b8b450de230
drm/amdgpu: Need to set the baco cap before baco reset

For passthrough, after rebooted the VM, driver will do
a baco reset before doing other driver initialization during loading
 driver. For doing the baco reset, it will first
check the baco reset capability. So first need to set the
cap from the vbios information or baco reset won't be
enabled.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.h