Skip to content

Commit 8466cc6

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: cleanup setting bulk_movable
We only need to set this to false now when BOs are removed from the LRU. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent bcb35da commit 8466cc6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ static void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base,
332332
if (bo->tbo.resv != vm->root.base.bo->tbo.resv)
333333
return;
334334

335-
vm->bulk_moveable = false;
336335
if (bo->tbo.type == ttm_bo_type_kernel)
337336
amdgpu_vm_bo_relocated(base);
338337
else
@@ -698,8 +697,6 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,
698697
struct amdgpu_vm_bo_base *bo_base, *tmp;
699698
int r = 0;
700699

701-
vm->bulk_moveable &= list_empty(&vm->evicted);
702-
703700
list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) {
704701
struct amdgpu_bo *bo = bo_base->bo;
705702

@@ -2758,9 +2755,6 @@ void amdgpu_vm_bo_rmv(struct amdgpu_device *adev,
27582755
struct amdgpu_vm_bo_base **base;
27592756

27602757
if (bo) {
2761-
if (bo->tbo.resv == vm->root.base.bo->tbo.resv)
2762-
vm->bulk_moveable = false;
2763-
27642758
for (base = &bo_va->base.bo->vm_bo; *base;
27652759
base = &(*base)->next) {
27662760
if (*base != &bo_va->base)

0 commit comments

Comments
 (0)