drm/amd/amdgpu: fix evicted VRAM bo adjudgement condition
Subsystems (2)
PATCH 1/2 drm/amd/amdgpu: fix evicted VRAM bo adjudgement condition
Change-Id Iac13b13fa136d0ce4fc2a40d010f07aa5d11e3f4
Signed-off-by Roger He <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +1 -4
@@ -1167,9 +1167,6 @@ static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,unsigned long num_pages = bo->mem.num_pages;struct drm_mm_node *node = bo->mem.mm_node; -if (bo->mem.start !=AMDGPU_BO_INVALID_OFFSET ) -return ttm_bo_eviction_valuable (bo, place); -switch (bo->mem.mem_type) {case TTM_PL_TT :return true;
@@ -1184,7 +1181,7 @@ static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo, num_pages -= node->size; ++node; } -break ; +return false;default :break ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Reviewed-byAm 02.11.2017 um 11:25 schrieb Roger He:
Quoted 2 lines
Change-Id Iac13b13fa136d0ce4fc2a40d010f07aa5d11e3f4Signed-off-by Roger He <[email protected]>
Reviewed-by Christian König <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +0
-3@@ -1167,9 +1167,6 @@ static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,unsigned long num_pages = bo->mem.num_pages;struct drm_mm_node *node = bo->mem.mm_node; -if (bo->mem.start !=AMDGPU_BO_INVALID_OFFSET ) -return ttm_bo_eviction_valuable (bo, place); -switch (bo->mem.mem_type) {case TTM_PL_TT :return true;
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo, · line 1187
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +1
-1@@ -1184,7 +1181,7 @@ static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo, num_pages -= node->size; ++node; } -break ; +return false;default :break ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx