[PATCH 27/34] drm: Unconditionally do the range check in drm_mm_scan_add_block()

2016-12-13 Thread Joonas Lahtinen
On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > Doing the check is trivial (low cost in comparison to overall eviction) > and helps simplify the code. > > Signed-off-by: Chris Wilson I now see that the other function gets eliminated, so no biggie. Reviewed-by: Joonas Lahtinen Regards,

[PATCH 27/34] drm: Unconditionally do the range check in drm_mm_scan_add_block()

2016-12-12 Thread Chris Wilson
Doing the check is trivial (low cost in comparison to overall eviction) and helps simplify the code. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_mm.c | 53 +++ drivers/gpu/drm/i915/i915_gem_evict.c | 10 ++- include/drm/drm_mm.h