linux/drivers/gpu
Bob Paauwe 5e45ff1321 drm/i915: Only fence tiled region of object.
commit af1a7301c7 upstream.

When creating a fence for a tiled object, only fence the area that
makes up the actual tiles.  The object may be larger than the tiled
area and if we allow those extra addresses to be fenced, they'll
get converted to addresses beyond where the object is mapped. This
opens up the possiblity of writes beyond the end of object.

To prevent this, we adjust the size of the fence to only encompass
the area that makes up the actual tiles.  The extra space is considered
un-tiled and now behaves as if it was a linear object.

Testcase: igt/gem_tiled_fence_overflow
Reported-by: Dan Hettena <danh@ghs.com>
Signed-off-by: Bob Paauwe <bob.j.paauwe@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-02-05 22:35:51 -08:00
..
drm drm/i915: Only fence tiled region of object. 2015-02-05 22:35:51 -08:00
host1x gpu: host1x: handle the correct # of syncpt regs 2014-06-07 10:28:09 -07:00
vga vgaswitcheroo: add vga_switcheroo_fini_domain_pm_ops 2014-10-05 14:52:22 -07:00
Makefile gpu: host1x: Add host1x driver 2013-04-22 12:32:40 +02:00