diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-07-17 10:20:18 +0200 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:37:30 -0500 |
commit | b8c1ba831e675005ff871cd4a4e04ff90326b4ae (patch) | |
tree | de3632bd0b6e46956f00b8c302385e2b3fd5adae /drivers/gpu/drm/xe/xe_exec.c | |
parent | 5ce58303440b7efb21c554cb0b6614482aab8fe9 (diff) | |
download | lwn-b8c1ba831e675005ff871cd4a4e04ff90326b4ae.tar.gz lwn-b8c1ba831e675005ff871cd4a4e04ff90326b4ae.zip |
drm/xe: Prevent flooding the kernel log with XE_IOCTL_ERR
Lower log level of XE_IOCTL_ERR macro to debug in order to prevent flooding
kernel log.
v2: Rename XE_IOCTL_ERR to XE_IOCTL_DBG (Rodrigo Vivi)
v3: Rebase
v4: Fix style, remove unrelated change about __FILE__ and __LINE__
Link: https://lists.freedesktop.org/archives/intel-xe/2023-May/004704.html
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_exec.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_exec.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/xe/xe_exec.c b/drivers/gpu/drm/xe/xe_exec.c index 07f4b2e8df16..ff9fa02b5395 100644 --- a/drivers/gpu/drm/xe/xe_exec.c +++ b/drivers/gpu/drm/xe/xe_exec.c @@ -184,22 +184,22 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file) bool write_locked; int err = 0; - if (XE_IOCTL_ERR(xe, args->extensions) || - XE_IOCTL_ERR(xe, args->pad[0] || args->pad[1] || args->pad[2]) || - XE_IOCTL_ERR(xe, args->reserved[0] || args->reserved[1])) + if (XE_IOCTL_DBG(xe, args->extensions) || + XE_IOCTL_DBG(xe, args->pad[0] || args->pad[1] || args->pad[2]) || + XE_IOCTL_DBG(xe, args->reserved[0] || args->reserved[1])) return -EINVAL; engine = xe_engine_lookup(xef, args->engine_id); - if (XE_IOCTL_ERR(xe, !engine)) + if (XE_IOCTL_DBG(xe, !engine)) return -ENOENT; - if (XE_IOCTL_ERR(xe, engine->flags & ENGINE_FLAG_VM)) + if (XE_IOCTL_DBG(xe, engine->flags & ENGINE_FLAG_VM)) return -EINVAL; - if (XE_IOCTL_ERR(xe, engine->width != args->num_batch_buffer)) + if (XE_IOCTL_DBG(xe, engine->width != args->num_batch_buffer)) return -EINVAL; - if (XE_IOCTL_ERR(xe, engine->flags & ENGINE_FLAG_BANNED)) { + if (XE_IOCTL_DBG(xe, engine->flags & ENGINE_FLAG_BANNED)) { err = -ECANCELED; goto err_engine; } |