Re: [Intel-gfx] [PATCH v2 36/38] drm/i915: Add mock exercise for i915_gem_gtt_reserve

2017-01-25 Thread Joonas Lahtinen
On to, 2017-01-19 at 11:41 +, Chris Wilson wrote: > i915_gem_gtt_reserve should put the node exactly as requested in the > GTT, evicting as required. > > Signed-off-by: Chris Wilson I might de-magic 2*I915_GTT_PAGE_SIZE and couple of expect helpers, but regardless; Reviewed-by: Joonas Lahti

[Intel-gfx] [PATCH v2 36/38] drm/i915: Add mock exercise for i915_gem_gtt_reserve

2017-01-19 Thread Chris Wilson
i915_gem_gtt_reserve should put the node exactly as requested in the GTT, evicting as required. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 195 + .../gpu/drm/i915/selftests/i915_mock_selftests.h | 1 + 2 files changed, 196 inserti