aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorAsad Kamal <[email protected]>2024-07-04 04:08:33 +0000
committerAlex Deucher <[email protected]>2024-09-26 21:06:16 +0000
commitdc443aa4ab7df2d660092be39c790d36ea5fc33e (patch)
tree28316b90800afff0ba08a8331b25f5421e895cb7 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu/sdma6: implement ring reset callback for sdma6 (diff)
downloadkernel-dc443aa4ab7df2d660092be39c790d36ea5fc33e.tar.gz
kernel-dc443aa4ab7df2d660092be39c790d36ea5fc33e.zip
drm/amd/amdgpu: Add helper to get ip block valid
Add helper function to check if ip block is enabled Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 9b1e0ede05a4..716f97e68849 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -367,6 +367,8 @@ int amdgpu_device_ip_wait_for_idle(struct amdgpu_device *adev,
enum amd_ip_block_type block_type);
bool amdgpu_device_ip_is_idle(struct amdgpu_device *adev,
enum amd_ip_block_type block_type);
+bool amdgpu_device_ip_is_valid(struct amdgpu_device *adev,
+ enum amd_ip_block_type block_type);
#define AMDGPU_MAX_IP_NUM 16