aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_submitqueue.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2024-12-30 16:00:33 +0000
committerRob Clark <[email protected]>2025-01-03 15:20:28 +0000
commit866e43b945bf98f8e807dfa45eca92f931f3a032 (patch)
tree06fdc78bb06c0aed17527e2acfe4905bf13f18be /drivers/gpu/drm/msm/msm_submitqueue.c
parentdrm/msm/a5xx: remove null pointer check on pdev (diff)
downloadkernel-866e43b945bf98f8e807dfa45eca92f931f3a032.tar.gz
kernel-866e43b945bf98f8e807dfa45eca92f931f3a032.zip
drm/msm: UAPI error reporting
Debugging incorrect UAPI usage tends to be a bit painful, so add a helper macro to make it easier to add debug logging which can be enabled at runtime via drm.debug. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Akhil P Oommen <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/630578/
Diffstat (limited to 'drivers/gpu/drm/msm/msm_submitqueue.c')
-rw-r--r--drivers/gpu/drm/msm/msm_submitqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_submitqueue.c b/drivers/gpu/drm/msm/msm_submitqueue.c
index 2fc3eaf81f44..7fed1de63b5d 100644
--- a/drivers/gpu/drm/msm/msm_submitqueue.c
+++ b/drivers/gpu/drm/msm/msm_submitqueue.c
@@ -18,7 +18,7 @@ int msm_file_private_set_sysprof(struct msm_file_private *ctx,
switch (sysprof) {
default:
- return -EINVAL;
+ return UERR(EINVAL, gpu->dev, "Invalid sysprof: %d", sysprof);
case 2:
pm_runtime_get_sync(&gpu->pdev->dev);
fallthrough;