]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Feb 2020 16:23:41 +0000 (17:23 +0100)
commita5ec9799f87a4b52439073bd2a00466cdc696c5f
tree69cefa68e1e42724de1d96dda3eaebd227ec82df
parent56f9e8137206ee3d9754cc2cbf589d23654e4b09
drm/i915/selftests: Add a mock i915_vma to the mock_ring

commit 1fdea0cb0dba0d42ffcfb619b349c1a2afa2492e upstream.

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
(cherry picked from commit b63b4feaef7363d2cf46dd76bb6e87e060b2b0de)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gt/mock_engine.c