Re: [Intel-gfx] [PATCH 2/5] drm/i915: harden allocation paths in allocate_va_range

2016-04-18 Thread Joonas Lahtinen
On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > For the gen6/gen8_allocate_va_range functions remove the WARN_ON range > sanity checks in favour of simply hardening the allocation paths. This > also fixes the inconsistency in which we don't always handle the > potential overflow in our chec

[Intel-gfx] [PATCH 2/5] drm/i915: harden allocation paths in allocate_va_range

2016-04-12 Thread Matthew Auld
For the gen6/gen8_allocate_va_range functions remove the WARN_ON range sanity checks in favour of simply hardening the allocation paths. This also fixes the inconsistency in which we don't always handle the potential overflow in our checks. Cc: Chris Wilson Cc: Joonas Lahtinen Signed-off-by: Mat