drm/i915: Assert internal objects are page aligned
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jan 2017 14:52:42 +0000 (14:52 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Jan 2017 09:09:56 +0000 (09:09 +0000)
commitbf6b2030bed9371240127afa4a3219c78cf0119d
treeb38b4b5c37e2f8249eec1fd8b502833d8055a362
parentf131e3562ef0e0aa418eeb60a8fd562c5b9b0122
drm/i915: Assert internal objects are page aligned

Internal objects must be passed a page-aligned size. Check it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170116145242.13875-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_internal.c