Skip to content

Commit 8e07878

Browse files
committed
Merge branch 'drm-fixes-5.1' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
- Parially revert a bulk move clean up change to fix a ref count bug - Fix invalid use of change_bit that caused a crash on PPC64 and ARM64 Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexdeucher@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190321020933.3508-1-alexander.deucher@amd.com
2 parents 6a9d8fc + 7246438 commit 8e07878

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ int amdgpu_vm_validate_pt_bos(struct amdgpu_device *adev, struct amdgpu_vm *vm,
700700
struct amdgpu_vm_bo_base *bo_base, *tmp;
701701
int r = 0;
702702

703+
vm->bulk_moveable &= list_empty(&vm->evicted);
704+
703705
list_for_each_entry_safe(bo_base, tmp, &vm->evicted, vm_status) {
704706
struct amdgpu_bo *bo = bo_base->bo;
705707

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ static int gmc_v9_0_allocate_vm_inv_eng(struct amdgpu_device *adev)
742742
}
743743

744744
ring->vm_inv_eng = inv_eng - 1;
745-
change_bit(inv_eng - 1, (unsigned long *)(&vm_inv_engs[vmhub]));
745+
vm_inv_engs[vmhub] &= ~(1 << ring->vm_inv_eng);
746746

747747
dev_info(adev->dev, "ring %s uses VM inv eng %u on hub %u\n",
748748
ring->name, ring->vm_inv_eng, ring->funcs->vmhub);

0 commit comments

Comments
 (0)