[PATCH 2/7] drm/amdgpu: remove fence_lock

zhoucm1 david1.zhou at amd.com
Thu Jul 21 10:23:09 UTC 2016



On 2016年07月21日 18:01, Christian König wrote:
> From: Christian König <christian.koenig at amd.com>
>
> Was never used as far as I can see.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Chunming Zhou <david1.zhou at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu.h      | 1 -
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 1 -
>   2 files changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index d939038..0bc84c3 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -775,7 +775,6 @@ struct amdgpu_ring {
>   	struct amdgpu_fence_driver	fence_drv;
>   	struct amd_gpu_scheduler	sched;
>   
> -	spinlock_t              fence_lock;
>   	struct amdgpu_bo	*ring_obj;
>   	volatile uint32_t	*ring;
>   	unsigned		rptr_offs;
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> index 3b885e3..f305f63 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
> @@ -198,7 +198,6 @@ int amdgpu_ring_init(struct amdgpu_device *adev, struct amdgpu_ring *ring,
>   	ring->cond_exe_gpu_addr = adev->wb.gpu_addr + (ring->cond_exe_offs * 4);
>   	ring->cond_exe_cpu_addr = &adev->wb.wb[ring->cond_exe_offs];
>   
> -	spin_lock_init(&ring->fence_lock);
>   	r = amdgpu_fence_driver_start_ring(ring, irq_src, irq_type);
>   	if (r) {
>   		dev_err(adev->dev, "failed initializing fences (%d).\n", r);



More information about the amd-gfx mailing list