mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-25 07:14:36 +08:00
drm/i915: Redefine EINVAL for debugging
To aide debugging spurious EINVALs, include a debug message every time we emit one from execbuf. References: https://bugs.freedesktop.org/show_bug.cgi?id=106744 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180621080150.8110-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
827db9d8bb
commit
d20ac620f0
@ -66,6 +66,15 @@ enum {
|
||||
#define __I915_EXEC_ILLEGAL_FLAGS \
|
||||
(__I915_EXEC_UNKNOWN_FLAGS | I915_EXEC_CONSTANTS_MASK)
|
||||
|
||||
/* Catch emission of unexpected errors for CI! */
|
||||
#if IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM)
|
||||
#undef EINVAL
|
||||
#define EINVAL ({ \
|
||||
DRM_DEBUG_DRIVER("EINVAL at %s:%d\n", __func__, __LINE__); \
|
||||
22; \
|
||||
})
|
||||
#endif
|
||||
|
||||
/**
|
||||
* DOC: User command execution
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user