drm/i915: Document our internal limit on object size
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Oct 2016 12:02:49 +0000 (13:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Oct 2016 13:22:26 +0000 (14:22 +0100)
commitb4bcbe2a90a1127a6dad72fbda27e77705d9e0f4
tree4ec9723b37ee7b2129b938ca8b6d53ec56898943
parent3ef7f228931a7ac1e4150b4dfc8d58586815f281
drm/i915: Document our internal limit on object size

In many places, we try to count pages using a 32 bit integer. That
implies if we are asked to create an object larger than 43bits, we will
subtly crash much later. Catch this on the boundary, and add a warning
to remind ourselves later on our exabyte systems.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161018120251.25043-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c