Skip to content

Commit

Permalink
drm/amdgpu: handle enforce isolation on non-0 gfxhub
Browse files Browse the repository at this point in the history
Some chips have more than one gfxhub so check if we
are a gfxhub rather than just gfxhub 0.

Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Alex Deucher committed Aug 16, 2024
1 parent 2dc3851 commit f49280f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
bool amdgpu_vmid_uses_reserved(struct amdgpu_vm *vm, unsigned int vmhub)
{
return vm->reserved_vmid[vmhub] ||
(enforce_isolation && (vmhub == AMDGPU_GFXHUB(0)));
(enforce_isolation && AMDGPU_IS_GFXHUB(vmhub));
}

int amdgpu_vmid_alloc_reserved(struct amdgpu_device *adev,
Expand Down

0 comments on commit f49280f

Please sign in to comment.