Skip to content

Commit 7246438

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/amdgpu: fix invalid use of change_bit
We only need to clear the bit in a 32bit integer. This fixes a crah on ARM64 and PPC64LE caused by "drm/amdgpu: update the vm invalidation engine layout V2" Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 39bbd33 commit 7246438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)