diff options
author | 2024-08-14 19:06:36 -0400 | |
---|---|---|
committer | 2024-08-16 14:27:28 -0400 | |
commit | f49280ffd254e718ee01ef515fe91854fdf005cf (patch) | |
tree | 0243579b224ee739f4b4f984c6dabe6ee65354be | |
parent | drm/amdgpu/sdma5.2: limit wptr workaround to sdma 5.2.1 (diff) | |
download | wireguard-linux-f49280ffd254e718ee01ef515fe91854fdf005cf.tar.xz wireguard-linux-f49280ffd254e718ee01ef515fe91854fdf005cf.zip |
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 <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c index b6a8bddada4c..6608eeb61e5a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c @@ -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, |