Re: [Intel-gfx] [PATCH 30/37] drm/i915: Exercise filling and removing random ranges from the live GTT

2017-01-13 Thread Chris Wilson
On Fri, Jan 13, 2017 at 10:59:52AM +0200, Joonas Lahtinen wrote: > On ke, 2017-01-11 at 21:09 +, Chris Wilson wrote: > > +    struct i915_address_space *vm, > > +    u64 hole_start, u64 hole_end) > > +{ > > + I915_RND_STATE(prng); > > Just to remind that this

Re: [Intel-gfx] [PATCH 30/37] drm/i915: Exercise filling and removing random ranges from the live GTT

2017-01-13 Thread Joonas Lahtinen
On ke, 2017-01-11 at 21:09 +, Chris Wilson wrote: > Test the low-level i915_address_space interfaces to sanity check the > live insertion/removal of address ranges. > > Signed-off-by: Chris Wilson > +static u64 scale(u64 offset, unsigned int shift) > +{ > +

[Intel-gfx] [PATCH 30/37] drm/i915: Exercise filling and removing random ranges from the live GTT

2017-01-11 Thread Chris Wilson
Test the low-level i915_address_space interfaces to sanity check the live insertion/removal of address ranges. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 140 ++ 1 file changed, 140 insertions(+) diff --git