[PATCH] drm/amdgpu: bypass lru touch for KIQ ring submission

Christian König ckoenig.leichtzumerken at gmail.com
Wed Nov 8 09:35:26 UTC 2017


Am 08.11.2017 um 03:30 schrieb Pixel Ding:
> KIQ ring submission is used for register accessing on SRIOV
> VF that could happen both in irq enabled and irq disabled cases.
> Inversion lock could happen on adev->ring_lru_list_lock, while
> this operation is useless and just adds overhead in this use
> case.
>
> Signed-off-by: Pixel Ding <Pixel.Ding at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> index e5ece1f..a98fbbb 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> @@ -136,7 +136,8 @@ void amdgpu_ring_commit(struct amdgpu_ring *ring)
>   	if (ring->funcs->end_use)
>   		ring->funcs->end_use(ring);
>   
> -	amdgpu_ring_lru_touch(ring->adev, ring);
> +	if (ring->funcs->type != AMDGPU_RING_TYPE_KIQ)
> +		amdgpu_ring_lru_touch(ring->adev, ring);
>   }
>   
>   /**




More information about the amd-gfx mailing list