]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8c599dc0d7174d8989d3b9b1be14506c8cf2432
treef87083296c2c93abbc36053cbec3af1bbbab37af
parent0023ecd7d41fbf120badcd9258d7c6493e7a5f3b
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