drm/amdgpu: handle enforce isolation on non-0 gfxhub
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Aug 2024 23:06:36 +0000 (19:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Aug 2024 18:27:28 +0000 (14:27 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c

index b6a8bddada4c30cb11759b402115a0ad9148ff3f..6608eeb61e5a06c0d7ae1254c144671867547033 100644 (file)
@@ -484,7 +484,7 @@ error:
 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,