]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Limit the scattergather coalescing to 32bits
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Oct 2016 12:02:50 +0000 (13:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Oct 2016 13:22:27 +0000 (14:22 +0100)
commit578a372b40d679354e8506e100e536b0887d23e9
tree0db61afda4a8b5a7401acc70d5edb81a114d4aa4
parent174a045f43ae5a1dd4db6ce872ba93ff1bd2ee20
drm/i915: Limit the scattergather coalescing to 32bits

The scattergather list uses a 32bit size counter, we should avoid
exceeding it.

v2: Also we should use unsigned int to match sg->length.

Fixes: 3da9aad80994 ("drm/i915: Allow compaction upto SWIOTLB max segment size")
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-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c