> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf
> Of Flora Cui
> Sent: Thursday, August 18, 2016 1:37 AM
> To: amd-gfx@lists.freedesktop.org
> Cc: Cui, Flora
> Subject: [PATCH 2/3] drm/amdgpu: update gart_pin_size only if the bo is
> pined to GTT
> 
> Change-Id: I975a0a97d570bd14b8031c4033cb447a3b3d2b1a
> Signed-off-by: Flora Cui <flora....@amd.com>

Reviewed-by: Alex Deucher <alexander.deuc...@amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> index 0a0f3cb..dbab3c0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
> @@ -578,7 +578,7 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo
> *bo, u32 domain,
>               bo->adev->vram_pin_size += amdgpu_bo_size(bo);
>               if (bo->flags & AMDGPU_GEM_CREATE_NO_CPU_ACCESS)
>                       bo->adev->invisible_pin_size +=
> amdgpu_bo_size(bo);
> -     } else {
> +     } else if (domain == AMDGPU_GEM_DOMAIN_GTT) {
>               bo->adev->gart_pin_size += amdgpu_bo_size(bo);
>       }
> 
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to