]> 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)
commitf79d29685f87a7505870cde1d475ae30c2aa6fc3
treef87083296c2c93abbc36053cbec3af1bbbab37af
parentb343cbfed67f103ecb3d61f561940dfc98a474f4
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