diff options
| author | 2016-06-23 11:41:04 -0400 | |
|---|---|---|
| committer | 2016-07-07 15:02:02 -0400 | |
| commit | 5dbbb60ba61e6e9976e46f3dedd989feeef08cb9 (patch) | |
| tree | 7e3442f0c507cd74ce40b1df1264952b3e4ac242 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu/powerplay/cz: add missing call to powergate VCE (diff) | |
| download | linux-dev-5dbbb60ba61e6e9976e46f3dedd989feeef08cb9.tar.xz linux-dev-5dbbb60ba61e6e9976e46f3dedd989feeef08cb9.zip | |
drm/amdgpu: add IP helpers for wait_for_idle and is_idle
Helpers to to call the IP functions for the selected IP.
Reviewed-by: Chunming zhou <david1.zhou@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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 0068955ae37f..7df1f486f1fb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -187,6 +187,10 @@ int amdgpu_set_clockgating_state(struct amdgpu_device *adev, int amdgpu_set_powergating_state(struct amdgpu_device *adev, enum amd_ip_block_type block_type, enum amd_powergating_state state); +int amdgpu_wait_for_idle(struct amdgpu_device *adev, + enum amd_ip_block_type block_type); +bool amdgpu_is_idle(struct amdgpu_device *adev, + enum amd_ip_block_type block_type); struct amdgpu_ip_block_version { enum amd_ip_block_type type; |
