[PATCH] drm/amdgpu: fix amdgpu_vm_bo_update param error

Christian König deathsimple at vodafone.de
Thu Sep 22 13:24:56 UTC 2016


Am 22.09.2016 um 05:41 schrieb Flora Cui:
> Change-Id: I86dc7d3fc4d6197bd13563a420718a8412ce9dbc
> Signed-off-by: Flora Cui <Flora.Cui at amd.com>

Good catch. That clearly results in some additional overhead if not 
worse otherwise.

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

Regards,
Christian.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> index 941416a..a7ea9a3 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
> @@ -528,7 +528,7 @@ static void amdgpu_gem_va_update_vm(struct amdgpu_device *adev,
>   		goto error_unreserve;
>   
>   	if (operation == AMDGPU_VA_OP_MAP)
> -		r = amdgpu_vm_bo_update(adev, bo_va, &bo_va->bo->tbo.mem);
> +		r = amdgpu_vm_bo_update(adev, bo_va, false);
>   
>   error_unreserve:
>   	ttm_eu_backoff_reservation(&ticket, &list);




More information about the amd-gfx mailing list