]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amdgpu: lower CS errors to debug severity
authorChristian König <christian.koenig@amd.com>
Thu, 9 Nov 2023 09:14:14 +0000 (10:14 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Nov 2023 22:00:17 +0000 (17:00 -0500)
Otherwise userspace can spam the logs by using incorrect input values.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index 0245de81cabdd0e911e662ee19d1dd2ba063cb49..1e35e9c06b09586fb050ee3c9b0dc06fc8800f47 100644 (file)
@@ -1414,7 +1414,7 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
                if (r == -ENOMEM)
                        DRM_ERROR("Not enough memory for command submission!\n");
                else if (r != -ERESTARTSYS && r != -EAGAIN)
-                       DRM_ERROR("Failed to process the buffer list %d!\n", r);
+                       DRM_DEBUG("Failed to process the buffer list %d!\n", r);
                goto error_fini;
        }