OSDN Git Service

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)
commitdeff2b024aee308cd60f376b1d77750efee93184
treedca4318686ae8a489df27fc8f8ee3cb0845c90ad
parentf0d69678083ff0478b752c15b017d00135f03cbc
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