]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJani Nikula <jani.nikula@intel.com>
Mon, 10 Feb 2020 12:45:37 +0000 (14:45 +0200)
commit4c7d18fdded039606e306e910aa299a71a0f4355
tree7282dc1d09f21897d3cc34b30d73248c68119082
parentfb9b25c009b8917bcb4fa97b318f20f8da8f0b62
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: 1bfafdffdba1 ("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
(cherry picked from commit b63b4feaef7363d2cf46dd76bb6e87e060b2b0de)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/mock_engine.c