RE: [PATCH 3/3] drm/amdgpu: remove amdgpu_mes_fence_wait_polling()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - AMD Internal Distribution Only]

Series is:
Reviewed-by: Mukul Joshi <mukul.joshi@xxxxxxx>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex
> Deucher
> Sent: Monday, June 3, 2024 5:03 PM
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>
> Subject: [PATCH 3/3] drm/amdgpu: remove
> amdgpu_mes_fence_wait_polling()
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> No longer used so remove it.
>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 12 ------------
> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h |  4 ----
>  2 files changed, 16 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> index 62edf6328566..e0c36e0d7beb 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
> @@ -32,18 +32,6 @@
>  #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 * diff --git
> a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
> index df9f0404d842..e11051271f71 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h
> @@ -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);
> --
> 2.45.1





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux