drm/i915/gtt: Use shallow dma pages for scratch
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 07:58:18 +0000 (08:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 09:21:55 +0000 (10:21 +0100)
commit6eebfe8a10a62139d681e2f1af1386252742278b
tree910b40ca6b3eed5b7257d196ea9c53850006761c
parent3e1f0a518d22c361d8e947e94a189ba0c9b3db7a
drm/i915/gtt: Use shallow dma pages for scratch

We only use the dma pages for scratch, and so do not need to allocate
the extra storage for the shadow page directory.

v2: Refrain from reintroducing I915_PDES

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712075818.20616-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h