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:
481c2e9
)
drm/amdgpu: fix placement flags in amdgpu_ttm_bind
author
Christian König
<
[email protected]
>
Fri, 1 Sep 2017 07:22:56 +0000
(09:22 +0200)
committer
Alex Deucher
<
[email protected]
>
Fri, 1 Sep 2017 16:50:45 +0000
(12:50 -0400)
Otherwise we lose the NO_EVICT flag and can try to evict pinned BOs.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 6ea96e1fb273a3baea932c03169bdf251ffaee8a..841a5699bef05c3d8e4225a7c34dc96847547ee9 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@
-819,7
+819,7
@@
int amdgpu_ttm_bind(struct ttm_buffer_object *bo, struct ttm_mem_reg *bo_mem)
placement.busy_placement = &placements;
placements.fpfn = 0;
placements.lpfn = adev->mc.gart_size >> PAGE_SHIFT;
- placements.flags =
TTM_PL_MASK_CACHING
| TTM_PL_FLAG_TT;
+ placements.flags =
bo->mem.placement
| TTM_PL_FLAG_TT;
r = ttm_bo_mem_space(bo, &placement, &tmp, true, false);
if (unlikely(r))