[igt-dev] [PATCH 1/1] drm/i915/selftests: update mock_vma size

Bommu Krishnaiah krishnaiah.bommu at intel.com
Mon Jun 8 19:31:19 UTC 2020


Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
index 0016ffc7d914..d6e09675778f 100644
--- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
@@ -288,6 +288,7 @@ static int lowlevel_hole(struct i915_address_space *vm,
 			    vm->allocate_va_range(vm, addr, BIT_ULL(size)))
 				break;
 
+			mock_vma->size = BIT_ULL(size);
 			mock_vma->pages = obj->mm.pages;
 			mock_vma->node.size = BIT_ULL(size);
 			mock_vma->node.start = addr;
-- 
2.25.1



More information about the igt-dev mailing list