Skip to content

Commit f49280f

Browse files
committed
drm/amdgpu: handle enforce isolation on non-0 gfxhub
Some chips have more than one gfxhub so check if we are a gfxhub rather than just gfxhub 0. Acked-by: Srinivasan Shanmugam <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2dc3851 commit f49280f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
484484
bool amdgpu_vmid_uses_reserved(struct amdgpu_vm *vm, unsigned int vmhub)
485485
{
486486
return vm->reserved_vmid[vmhub] ||
487-
(enforce_isolation && (vmhub == AMDGPU_GFXHUB(0)));
487+
(enforce_isolation && AMDGPU_IS_GFXHUB(vmhub));
488488
}
489489

490490
int amdgpu_vmid_alloc_reserved(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)