]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix runpm logic in amdgpu_pmops_resume
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 May 2020 14:04:04 +0000 (10:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 18:33:27 +0000 (14:33 -0400)
commita2d2e5101907318543610706164d5b176dbd7649
treedca4318686ae8a489df27fc8f8ee3cb0845c90ad
parent0b9fbcf92eafcad305bb82de428e46b372c568a8
drm/amdgpu: fix runpm logic in amdgpu_pmops_resume

We should be checking whether the driver enabled runtime pm
rather than whether the asic supports BOCO or BACO.  That said
in general they are equivalent unless the user has disabled
runpm or it has been disabled for a specific asic.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c