Re: [Intel-gfx] [PATCH 09/34] drm: kselftest for drm_mm_insert_node()

2016-12-14 Thread Chris Wilson
On Wed, Dec 14, 2016 at 02:26:36PM +0200, Joonas Lahtinen wrote: > On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > > Exercise drm_mm_insert_node(), check that we can't overfill a range and > > that the lists are correct after reserving/removing. > > > > Signed-off-by: Chris Wilson > > >

Re: [Intel-gfx] [PATCH 09/34] drm: kselftest for drm_mm_insert_node()

2016-12-14 Thread Joonas Lahtinen
On ma, 2016-12-12 at 11:53 +, Chris Wilson wrote: > Exercise drm_mm_insert_node(), check that we can't overfill a range and > that the lists are correct after reserving/removing. > > Signed-off-by: Chris Wilson > +static int __igt_insert(int count, u64 size) > +{ > + for (n = 0; n <

[Intel-gfx] [PATCH 09/34] drm: kselftest for drm_mm_insert_node()

2016-12-12 Thread Chris Wilson
Exercise drm_mm_insert_node(), check that we can't overfill a range and that the lists are correct after reserving/removing. Signed-off-by: Chris Wilson --- drivers/gpu/drm/selftests/drm_mm_selftests.h | 1 + drivers/gpu/drm/selftests/test-drm_mm.c | 209 +++ 2 fil