drm/i915: Redefine EINVAL for debugging
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Jun 2018 08:01:50 +0000 (09:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Jun 2018 09:32:37 +0000 (10:32 +0100)
commitd20ac620f0010f9cdcbbe8408e5f22aae3c49faa
treeefedbf115f87bbc18d6db711e808c8cc92d6e9c1
parent827db9d8bb4a01314f214065e3f18c8345c5fc9f
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
drivers/gpu/drm/i915/i915_gem_execbuffer.c