drm/i915: Don't allow binding objects into the last page of the aperture.
authorEric Anholt <eric@anholt.net>
Tue, 12 May 2009 22:27:36 +0000 (15:27 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 14 May 2009 23:00:20 +0000 (16:00 -0700)
commit13f4c435ebf2a7c150ffa714f3b23b8e4e8cb42f
tree8cf39be40bc83d5426497522e393e26901261e8c
parent79f11c19a396e8cea7dad322dcfb46c0a8517fe6
drm/i915: Don't allow binding objects into the last page of the aperture.

This should avoid a class of bugs where the hardware prefetches past the
end of the object, and walks into unallocated memory when the object is
bound to the last page of the aperture.

fd.o bug #21488

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c