[PATCH] drm/amdgpu: Remove fence_process in count_emitted
Christian König
ckoenig.leichtzumerken at gmail.com
Mon Sep 26 06:50:53 UTC 2022
Am 23.09.22 um 15:27 schrieb jiadong.zhu at amd.com:
> From: "Jiadong.Zhu" <Jiadong.Zhu at amd.com>
>
> The function amdgpu_fence_count_emitted used in work_hander should not call
> amdgpu_fence_process which must be used in irq handler.
>
> Signed-off-by: Jiadong.Zhu <Jiadong.Zhu at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> index d16c8c1f72db..790f7bfdc654 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
> @@ -394,7 +394,6 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring)
> /* We are not protected by ring lock when reading the last sequence
> * but it's ok to report slightly wrong fence count here.
> */
> - amdgpu_fence_process(ring);
> emitted = 0x100000000ull;
> emitted -= atomic_read(&ring->fence_drv.last_seq);
> emitted += READ_ONCE(ring->fence_drv.sync_seq);
More information about the amd-gfx
mailing list