]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28c40908a18377cf56920f6dd79513709b429703
tree4ec9723b37ee7b2129b938ca8b6d53ec56898943
parent7accf9df297956606baeee1d3bbebbdf364afdbb
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