drm/i915/gtt: Account for preallocation in asserts
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Dec 2019 22:14:53 +0000 (22:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 7 Dec 2019 23:59:19 +0000 (23:59 +0000)
commitca5930b181a446c58acfed2bd6cffe0b04455f83
tree52bd9020d9c600b63c2d0f46f74d5345e2736156
parent8b1c78e06e6167f49beb27be073faa2c6c5c6eff
drm/i915/gtt: Account for preallocation in asserts

Our asserts allow for the PDEs to be allocated concurrently, but we did
not account for the aliasing-ppgtt to be preallocated on top.

Testcase: igt/gem_ppgtt #bsw
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191207221453.2802627-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c