drm/amdgpu: Remove unused amdgpu_device_ip_is_idle
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 23 Sep 2024 01:24:42 +0000 (02:24 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 Sep 2024 21:06:19 +0000 (17:06 -0400)
amdgpu_device_ip_is_idle is unused.
It was renamed from 'amdgpu_is_idle' which was originally added in
commit 5dbbb60ba61e ("drm/amdgpu: add IP helpers for wait_for_idle and is_idle")

but hasn't been used.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index dd5539911af286439e04db366d2eb1b3bcb7a186..c14c5cc4ccf9234db8dfc3eea9a7e4bf0399df01 100644 (file)
@@ -365,8 +365,6 @@ void amdgpu_device_ip_get_clockgating_state(struct amdgpu_device *adev,
                                            u64 *flags);
 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);
 
index 24a7696da310a8ef0a7f01bc1be08aba420d0bee..f01e22b9c51c11e52e4ce7d6d15d6c1ef850ee11 100644 (file)
@@ -2213,30 +2213,6 @@ int amdgpu_device_ip_wait_for_idle(struct amdgpu_device *adev,
 
 }
 
-/**
- * amdgpu_device_ip_is_idle - is the hardware IP idle
- *
- * @adev: amdgpu_device pointer
- * @block_type: Type of hardware IP (SMU, GFX, UVD, etc.)
- *
- * Check if the hardware IP is idle or not.
- * Returns true if it the IP is idle, false if not.
- */
-bool amdgpu_device_ip_is_idle(struct amdgpu_device *adev,
-                             enum amd_ip_block_type block_type)
-{
-       int i;
-
-       for (i = 0; i < adev->num_ip_blocks; i++) {
-               if (!adev->ip_blocks[i].status.valid)
-                       continue;
-               if (adev->ip_blocks[i].version->type == block_type)
-                       return adev->ip_blocks[i].version->funcs->is_idle((void *)adev);
-       }
-       return true;
-
-}
-
 /**
  * amdgpu_device_ip_is_valid - is the hardware IP enabled
  *