drm/i915: Create a full object for mock_ring, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 17 Nov 2021 14:20:21 +0000 (14:20 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 19 Nov 2021 17:38:03 +0000 (17:38 +0000)
commitd03a29e0b1e10820631a9ba600ff669161001a84
tree96b1054787b627a5ee9721b2d43b1fd161f1f87d
parentb0b0f2d225da6fe58417fae37e3f797e2db27b62
drm/i915: Create a full object for mock_ring, v2.

This allows us to finally get rid of all the assumptions that vma->obj
is NULL.

Changes since v1:
- Ensure the mock_ring vma is pinned to prevent a fault.
- Pin it high to avoid failure in evict_for_vma selftest.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211117142024.1043017-3-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/mock_engine.c