drm/i915: Reject unknown syncobj flags
authorTvrtko Ursulin <[email protected]>
Tue, 31 Oct 2017 10:23:25 +0000 (10:23 +0000)
committerTvrtko Ursulin <[email protected]>
Fri, 3 Nov 2017 09:28:05 +0000 (09:28 +0000)
commitebcaa1ff8b59097805d548fe7a676f194625c033
treedb59437c29ce8bfb0ddac0d633d485ac72b79369
parent49e43ef7c6e533c110a7ff8fa8096291ec1c0e0e
drm/i915: Reject unknown syncobj flags

We have to reject unknown flags for uAPI considerations, and also
because the curent implementation limits their i915 storage space
to two bits.

v2: (Chris Wilson)
 * Fix fail in ABI check.
 * Added unknown flags and BUILD_BUG_ON.

v3:
 * Use ARCH_KMALLOC_MINALIGN instead of alignof. (Chris Wilson)

Signed-off-by: Tvrtko Ursulin <[email protected]>
Fixes: cf6e7bac6357 ("drm/i915: Add support for drm syncobjs")
Cc: Jason Ekstrand <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: David Airlie <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_execbuffer.c
include/uapi/drm/i915_drm.h