diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2019-10-28 21:47:38 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-20 00:42:49 +0300 |
commit | a69cba42b11ae5e8cede2ee6a61d9faf5187df9b (patch) | |
tree | 124af9689a7714a9785da6e0922dbd3c3698ea7a /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | ac7426169e7bcbbf270fec48301286e5ccae08bc (diff) | |
download | linux-a69cba42b11ae5e8cede2ee6a61d9faf5187df9b.tar.xz |
drm/amdgpu: add a amdgpu_device_supports_baco helper
BACO - Bus Active, Chip Off
To check if a device supports BACO or not. This will be
used in determining when to enable runtime pm.
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 6648e7788669..bdcfaf11f5e7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1141,6 +1141,7 @@ void amdgpu_device_program_register_sequence(struct amdgpu_device *adev, const u32 array_size); bool amdgpu_device_is_px(struct drm_device *dev); +bool amdgpu_device_supports_baco(struct drm_device *dev); bool amdgpu_device_is_peer_accessible(struct amdgpu_device *adev, struct amdgpu_device *peer_adev); |