Re: [Intel-gfx] [PATCH 31/34] drm: Simplify drm_mm scan-list manipulation

2016-12-14 Thread Joonas Lahtinen
On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > Since we mandate a strict reverse-order of drm_mm_scan_remove_block() kerneldoc speaks of forward-order, so better update that. > after drm_mm_scan_add_block() we can further simplify the list > manipulations when generating the temporary sc

[Intel-gfx] [PATCH 31/34] drm: Simplify drm_mm scan-list manipulation

2016-12-12 Thread Chris Wilson
Since we mandate a strict reverse-order of drm_mm_scan_remove_block() after drm_mm_scan_add_block() we can further simplify the list manipulations when generating the temporary scan-hole. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_mm.c | 22 +- include/drm/drm_mm.h