diff options
| author | Christian König <[email protected]> | 2020-08-06 12:44:07 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2020-08-07 14:02:43 +0000 |
| commit | 77f47d239545810a899bd0531ae81712f3a85092 (patch) | |
| tree | cae34d52cefb647a6d239416a5215a02e8218711 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/ttm: rename ttm_mem_reg to ttm_resource. (diff) | |
| download | kernel-77f47d239545810a899bd0531ae81712f3a85092.tar.gz kernel-77f47d239545810a899bd0531ae81712f3a85092.zip | |
drm/amdgpu: make sure userptr ttm is allocated
We need to allocate that manually now.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Tested-by: Michel Dänzer <[email protected]>
Link: https://patchwork.freedesktop.org/patch/384330/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index de9784b0c19b..b2dc320e7305 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -332,7 +332,7 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data, bo = gem_to_amdgpu_bo(gobj); bo->preferred_domains = AMDGPU_GEM_DOMAIN_GTT; bo->allowed_domains = AMDGPU_GEM_DOMAIN_GTT; - r = amdgpu_ttm_tt_set_userptr(bo->tbo.ttm, args->addr, args->flags); + r = amdgpu_ttm_tt_set_userptr(&bo->tbo, args->addr, args->flags); if (r) goto release_object; |
