projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf274da
)
drm/i915/selftests: Mark the mock ring->vma as being in the GGTT
author
Chris Wilson
<chris@chris-wilson.co.uk>
Sat, 15 Feb 2020 20:59:27 +0000
(20:59 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Mon, 17 Feb 2020 16:58:49 +0000
(16:58 +0000)
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>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200215205927.4170144-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gt/mock_engine.c
b/drivers/gpu/drm/i915/gt/mock_engine.c
index f2806381733f55eacef5e5402711838c4682dfae..5633515c12e964af575c4cc116b3e4e79aaa72cb 100644
(file)
--- a/
drivers/gpu/drm/i915/gt/mock_engine.c
+++ b/
drivers/gpu/drm/i915/gt/mock_engine.c
@@
-65,6
+65,9
@@
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));
+ __set_bit(DRM_MM_NODE_ALLOCATED_BIT, &ring->vma->node.flags);
+ ring->vma->node.size = sz;
intel_ring_update_space(ring);