[PATCH] drm/amdgpu: partial revert cleanup setting bulk_movable

Huang, Ray Ray.Huang at amd.com
Wed Jan 30 14:23:40 UTC 2019


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Christian K?nig
> Sent: Wednesday, January 30, 2019 8:47 PM
> To: amd-gfx at lists.freedesktop.org
> Subject: [PATCH] drm/amdgpu: partial revert cleanup setting bulk_movable
> 
> We still need to set bulk_movable to false when new BOs are added.
> 
> Signed-off-by: Christian K├Ânig <christian.koenig at amd.com>

Reviewed-by: Huang Rui <ray.huang at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 79f9dde70bc0..1e101a77eec9 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -332,6 +332,7 @@ static void amdgpu_vm_bo_base_init(struct
> amdgpu_vm_bo_base *base,
>  	if (bo->tbo.resv != vm->root.base.bo->tbo.resv)
>  		return;
> 
> +	vm->bulk_moveable = false;
>  	if (bo->tbo.type == ttm_bo_type_kernel)
>  		amdgpu_vm_bo_relocated(base);
>  	else
> --
> 2.17.1
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list