diff options
| author | Alex Deucher <[email protected]> | 2016-06-01 17:08:21 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-07-07 18:51:01 +0000 |
| commit | a78fe13389f0ba509c830e7c442aeed143efbbbf (patch) | |
| tree | b42e905cb5f368598f4117fead1fef1174c514b0 /drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | |
| parent | drm/amdgpu: add a delay after ATPX dGPU power off (diff) | |
| download | kernel-a78fe13389f0ba509c830e7c442aeed143efbbbf.tar.gz kernel-a78fe13389f0ba509c830e7c442aeed143efbbbf.zip | |
drm/amdgpu/atpx: add a query for ATPX dGPU power control
The runtime pm sequence is different depending on whether or
not the platform supports ATPX dGPU power control.
Reviewed-by: Hawking Zhang <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index c5d280ce625b..7b11af1d8c4f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -64,6 +64,10 @@ bool amdgpu_has_atpx(void) { return amdgpu_atpx_priv.atpx_detected; } +bool amdgpu_has_atpx_dgpu_power_cntl(void) { + return amdgpu_atpx_priv.atpx.functions.power_cntl; +} + /** * amdgpu_atpx_call - call an ATPX method * |
