]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: remove amdgpu_mes_fence_wait_polling()
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 3 Jun 2024 20:59:22 +0000 (16:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:50:24 +0000 (12:50 -0400)
No longer used so remove it.

Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h

index 48a5b0713fed8b1523c0e178392c6bbeec6f2f60..e499d6ba306b739b9189abb79b9286ede5f5932b 100644 (file)
 #define AMDGPU_MES_MAX_NUM_OF_QUEUES_PER_PROCESS 1024
 #define AMDGPU_ONE_DOORBELL_SIZE 8
 
-signed long amdgpu_mes_fence_wait_polling(u64 *fence,
-                                         u64 wait_seq,
-                                         signed long timeout)
-{
-
-       while ((s64)(wait_seq - *fence) > 0 && timeout > 0) {
-               udelay(2);
-               timeout -= 2;
-       }
-       return timeout > 0 ? timeout : 0;
-}
-
 int amdgpu_mes_doorbell_process_slice(struct amdgpu_device *adev)
 {
        return roundup(AMDGPU_ONE_DOORBELL_SIZE *
index df9f0404d84226518570678b4848604c8f6e9fe2..e11051271f71db9a4d07aeb7f26ec03c174bfcc0 100644 (file)
@@ -352,10 +352,6 @@ struct amdgpu_mes_funcs {
 #define amdgpu_mes_kiq_hw_init(adev) (adev)->mes.kiq_hw_init((adev))
 #define amdgpu_mes_kiq_hw_fini(adev) (adev)->mes.kiq_hw_fini((adev))
 
-signed long amdgpu_mes_fence_wait_polling(u64 *fence,
-                                         u64 wait_seq,
-                                         signed long timeout);
-
 int amdgpu_mes_ctx_get_offs(struct amdgpu_ring *ring, unsigned int id_offs);
 
 int amdgpu_mes_init_microcode(struct amdgpu_device *adev, int pipe);