diff options
author | Christian König <christian.koenig@amd.com> | 2016-09-09 10:32:33 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-28 16:16:19 -0400 |
commit | bb990bb09235a3cc38fd4600d48c7bfb7a0a167c (patch) | |
tree | 4e493c06cf367598a3572c33fcdb829689263850 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 2744b647f49e24d636c8b293325aed674363f0d2 (diff) |
drm/amdgpu: add a custom GTT memory manager v2
Only allocate address space when we really need it.
v2: fix a typo, add correct function description,
stop leaking the node in the error case.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 428aa00025e4..9b80dfedcb4a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |||
@@ -673,7 +673,7 @@ int amdgpu_bo_pin_restricted(struct amdgpu_bo *bo, u32 domain, | |||
673 | dev_err(bo->adev->dev, "%p pin failed\n", bo); | 673 | dev_err(bo->adev->dev, "%p pin failed\n", bo); |
674 | goto error; | 674 | goto error; |
675 | } | 675 | } |
676 | r = amdgpu_ttm_bind(bo->tbo.ttm, &bo->tbo.mem); | 676 | r = amdgpu_ttm_bind(&bo->tbo, &bo->tbo.mem); |
677 | if (unlikely(r)) { | 677 | if (unlikely(r)) { |
678 | dev_err(bo->adev->dev, "%p bind failed\n", bo); | 678 | dev_err(bo->adev->dev, "%p bind failed\n", bo); |
679 | goto error; | 679 | goto error; |