OSDN Git Service

drm/i915/selftests: Add a mock i915_vma to the mock_ring
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Jan 2020 16:00:30 +0000 (16:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Jan 2020 18:17:01 +0000 (18:17 +0000)
commitb63b4feaef7363d2cf46dd76bb6e87e060b2b0de
tree964af671eacb4c40a4f9ee39ffe86ebe8602446c
parent103605e0d1e77cfb5d0f5a9e8aba7d97f1b49339
drm/i915/selftests: Add a mock i915_vma to the mock_ring

Add a i915_vma to the mock_engine/mock_ring so that the core code can
always assume the presence of ring->vma.

Fixes: 8ccfc20a7d56 ("drm/i915/gt: Mark ring->vma as active while pinned")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200114160030.2468927-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c