aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2025-04-22 13:19:02 +0000
committerAlex Deucher <[email protected]>2025-05-05 17:29:38 +0000
commit71353c1a4f91a11c20eca51a48f550341e2e1556 (patch)
tree19baa7adc22b2941d573f1d4b8a752d42a7f1896 /drivers/gpu/drm/amd
parentdrm/amdgpu: change DRM_ERROR to drm_file_err in amdgpu_userq.c (diff)
downloadkernel-71353c1a4f91a11c20eca51a48f550341e2e1556.tar.gz
kernel-71353c1a4f91a11c20eca51a48f550341e2e1556.zip
drm/amdgpu: change DRM_DBG_DRIVER to drm_dbg_driver
update the functions in amdgpu_userqueues.c from DRM_DBG_DRIVER to drm_dbg_driver so multi gpu instance can be logged in. Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
index 854577d3c37c..394b036be1d9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
@@ -279,7 +279,8 @@ amdgpu_userq_get_doorbell_index(struct amdgpu_userq_mgr *uq_mgr,
index = amdgpu_doorbell_index_on_bar(uq_mgr->adev, db_obj->obj,
db_info->doorbell_offset, db_size);
- DRM_DEBUG_DRIVER("[Usermode queues] doorbell index=%lld\n", index);
+ drm_dbg_driver(adev_to_drm(uq_mgr->adev),
+ "[Usermode queues] doorbell index=%lld\n", index);
amdgpu_bo_unreserve(db_obj->obj);
return index;
@@ -305,7 +306,7 @@ amdgpu_userq_destroy(struct drm_file *filp, int queue_id)
queue = amdgpu_userq_find(uq_mgr, queue_id);
if (!queue) {
- DRM_DEBUG_DRIVER("Invalid queue id to destroy\n");
+ drm_dbg_driver(adev_to_drm(uq_mgr->adev), "Invalid queue id to destroy\n");
mutex_unlock(&uq_mgr->userq_mutex);
return -EINVAL;
}
@@ -515,7 +516,7 @@ int amdgpu_userq_ioctl(struct drm_device *dev, void *data,
break;
default:
- DRM_DEBUG_DRIVER("Invalid user queue op specified: %d\n", args->in.op);
+ drm_dbg_driver(dev, "Invalid user queue op specified: %d\n", args->in.op);
return -EINVAL;
}