diff options
author | Christian König <christian.koenig@amd.com> | 2016-09-14 04:35:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:38:15 -0400 |
commit | d2e938701ac54cc44f28f79aa1dd640ba43b936f (patch) | |
tree | 48e438dd861cde1be2689975f0dd3af5fcd524cf /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |
parent | 56de55a1a8fcabf8b3f6a64eedd3b6079b1f2fc7 (diff) |
drm/amdgpu: set at least the node size in the gtt manager
Otherwise the new VM code becomes confused.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c index f86c84427778..3c634f02a3d5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |||
@@ -168,6 +168,7 @@ static int amdgpu_gtt_mgr_new(struct ttm_mem_type_manager *man, | |||
168 | return -ENOMEM; | 168 | return -ENOMEM; |
169 | 169 | ||
170 | node->start = AMDGPU_BO_INVALID_OFFSET; | 170 | node->start = AMDGPU_BO_INVALID_OFFSET; |
171 | node->size = mem->num_pages; | ||
171 | mem->mm_node = node; | 172 | mem->mm_node = node; |
172 | 173 | ||
173 | if (place->fpfn || place->lpfn || place->flags & TTM_PL_FLAG_TOPDOWN) { | 174 | if (place->fpfn || place->lpfn || place->flags & TTM_PL_FLAG_TOPDOWN) { |