]> 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)
commita04fda0452ee1ca2f04d07f83acdf1304d320094
treedca4318686ae8a489df27fc8f8ee3cb0845c90ad
parenta50f0379e3aae18d31e104e3274dd07f305de966
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