drm/i915/selftests: Mark the mock ring->vma as being in the GGTT
diff mbox series

Message ID 20200215092902.4131132-1-chris@chris-wilson.co.uk
State New
Headers show
Series
  • drm/i915/selftests: Mark the mock ring->vma as being in the GGTT
Related show

Commit Message

Chris Wilson Feb. 15, 2020, 9:29 a.m. UTC
The ringbuffer's vma is expected to be in the GGTT and that is now being
checked, so make sure the mocked ring declares it so.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/gt/mock_engine.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/mock_engine.c b/drivers/gpu/drm/i915/gt/mock_engine.c
index f2806381733f..f35923a29ce6 100644
--- a/drivers/gpu/drm/i915/gt/mock_engine.c
+++ b/drivers/gpu/drm/i915/gt/mock_engine.c
@@ -65,6 +65,7 @@  static struct intel_ring *mock_ring(struct intel_engine_cs *engine)
 		return NULL;
 	}
 	i915_active_init(&ring->vma->active, NULL, NULL);
+	__set_bit(I915_VMA_GGTT_BIT, __i915_vma_flags(&ring->vma));
 
 	intel_ring_update_space(ring);