]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: set at least the node size in the gtt manager
authorChristian König <christian.koenig@amd.com>
Wed, 14 Sep 2016 08:35:19 +0000 (10:35 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:38:15 +0000 (14:38 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c

index f86c84427778aecb1ccf2cefd61afb95af3ebf38..3c634f02a3d5b259bbc4f94a8cdf054e8e35457a 100644 (file)
@@ -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) {