drm/amdgpu: start to disentangle boco from runtime pm
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Nov 2019 23:13:14 +0000 (18:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 21:42:53 +0000 (16:42 -0500)
commit6ae6c7d404ec3e7595c2c6bee8df211a34da5c64
tree94d8313369dffc0a32f20d16cb017f40c3284a35
parent191343172809aba0047c2eb03249cb704ad65658
drm/amdgpu: start to disentangle boco from runtime pm

BACO - Bus Active, Chip Off
BOCO - Bus Off, Chip Off

We originally only supported runtime pm on PX/HG
laptops so most of the runtime pm code looks for this.
Add a new flag to check for runtime pm enablement and
use this rather than checking for PX/HG.

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