[PATCH] drm/amdgpu/gfx6: drop some dead code

Edward O'Callaghan funfunctor at folklore1984.net
Fri Sep 2 03:17:26 UTC 2016


Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 09/02/2016 04:11 AM, Alex Deucher wrote:
> The mqd is only used on CI and newer.
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 23 -----------------------
>  1 file changed, 23 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> index 17a560c..040bc7f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
> @@ -1725,28 +1725,6 @@ static void gfx_v6_0_ring_set_wptr_compute(struct amdgpu_ring *ring)
>  
>  }
>  
> -
> -static void gfx_v6_0_cp_compute_fini(struct amdgpu_device *adev)
> -{
> -	int i, r;
> -
> -	for (i = 0; i < adev->gfx.num_compute_rings; i++) {
> -		struct amdgpu_ring *ring = &adev->gfx.compute_ring[i];
> -
> -		if (ring->mqd_obj) {
> -			r = amdgpu_bo_reserve(ring->mqd_obj, false);
> -			if (unlikely(r != 0))
> -				dev_warn(adev->dev, "(%d) reserve MQD bo failed\n", r);
> -
> -			amdgpu_bo_unpin(ring->mqd_obj);
> -			amdgpu_bo_unreserve(ring->mqd_obj);
> -
> -			amdgpu_bo_unref(&ring->mqd_obj);
> -			ring->mqd_obj = NULL;
> -		}
> -	}
> -}
> -
>  static int gfx_v6_0_cp_compute_resume(struct amdgpu_device *adev)
>  {
>  	struct amdgpu_ring *ring;
> @@ -2865,7 +2843,6 @@ static int gfx_v6_0_sw_fini(void *handle)
>  	for (i = 0; i < adev->gfx.num_compute_rings; i++)
>  		amdgpu_ring_fini(&adev->gfx.compute_ring[i]);
>  
> -	gfx_v6_0_cp_compute_fini(adev);
>  	gfx_v6_0_rlc_fini(adev);
>  
>  	return 0;
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20160902/f89f0dfc/attachment.sig>


More information about the amd-gfx mailing list