[PATCH 4/4] drm/amdgpu: print vmhub id when no VM inv eng found
Yifan Zhang
yifan1.zhang at amd.com
Fri May 5 05:28:46 UTC 2023
to facilitate debugging.
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index a4ba2c50a5c3..abdc2923cb62 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@ -561,8 +561,8 @@ int amdgpu_gmc_allocate_vm_inv_eng(struct amdgpu_device *adev)
inv_eng = ffs(vm_inv_engs[vmhub]);
if (!inv_eng) {
- dev_err(adev->dev, "no VM inv eng for ring %s\n",
- ring->name);
+ dev_err(adev->dev, "no VM inv eng for ring %s on hub %d\n",
+ ring->name, ring->vm_hub);
return -EINVAL;
}
--
2.37.3
More information about the amd-gfx
mailing list