Re: [Intel-gfx] [PATCH 06/46] drm/i915: Add some selftests for sg_table manipulation

2017-02-10 Thread Tvrtko Ursulin
On 10/02/2017 10:43, Chris Wilson wrote: On Fri, Feb 10, 2017 at 10:24:41AM +, Tvrtko Ursulin wrote: +static int igt_sg_alloc(void *ignored) +{ + IGT_TIMEOUT(end_time); + const unsigned long max_order = 20; /* approximating a 4GiB object */ + struct rnd_state prng; +

Re: [Intel-gfx] [PATCH 06/46] drm/i915: Add some selftests for sg_table manipulation

2017-02-10 Thread Chris Wilson
On Fri, Feb 10, 2017 at 10:24:41AM +, Tvrtko Ursulin wrote: > >+static int igt_sg_alloc(void *ignored) > >+{ > >+IGT_TIMEOUT(end_time); > >+const unsigned long max_order = 20; /* approximating a 4GiB object */ > >+struct rnd_state prng; > >+unsigned long prime; > >+ > >+for_

Re: [Intel-gfx] [PATCH 06/46] drm/i915: Add some selftests for sg_table manipulation

2017-02-10 Thread Tvrtko Ursulin
On 02/02/2017 09:08, Chris Wilson wrote: Start exercising the scattergather lists, especially looking at iteration after coalescing. v2: Comment on the peculiarity of table construction (i.e. why this sg_table might be interesting). v3: Added one __func__ to identify expect_pfn_sg() Signed-off

[Intel-gfx] [PATCH 06/46] drm/i915: Add some selftests for sg_table manipulation

2017-02-02 Thread Chris Wilson
Start exercising the scattergather lists, especially looking at iteration after coalescing. v2: Comment on the peculiarity of table construction (i.e. why this sg_table might be interesting). v3: Added one __func__ to identify expect_pfn_sg() Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin ---