From: Christian König Date: Wed, 14 Sep 2016 08:35:19 +0000 (+0200) Subject: drm/amdgpu: set at least the node size in the gtt manager X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d2e938701ac54cc44f28f79aa1dd640ba43b936f;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Edward O'Callaghan Tested-by: Mike Lothian Signed-off-by: Alex Deucher --- 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, return -ENOMEM; node->start = AMDGPU_BO_INVALID_OFFSET; + node->size = mem->num_pages; mem->mm_node = node; if (place->fpfn || place->lpfn || place->flags & TTM_PL_FLAG_TOPDOWN) {