projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56de55a
)
drm/amdgpu: set at least the node size in the gtt manager
author
Christian König
<
[email protected]
>
Wed, 14 Sep 2016 08:35:19 +0000
(10:35 +0200)
committer
Alex Deucher
<
[email protected]
>
Tue, 25 Oct 2016 18:38:15 +0000
(14:38 -0400)
Otherwise the new VM code becomes confused.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Edward O'Callaghan <
[email protected]
>
Tested-by: Mike Lothian <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index f86c84427778aecb1ccf2cefd61afb95af3ebf38..3c634f02a3d5b259bbc4f94a8cdf054e8e35457a 100644
(file)
--- 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) {