OSDN Git Service

drm/i915/gtt: Setup phys pages for 3lvl pdps
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 5 Jul 2019 21:52:03 +0000 (22:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 6 Jul 2019 09:20:49 +0000 (10:20 +0100)
commit73a8fdef5d6f525932a361104c0d46e5e2585c28
tree6e2d80f14e2b81b2d742e823e26855e5a48c9ace
parent72230b874a2071593e9f493bee072e41cc734646
drm/i915/gtt: Setup phys pages for 3lvl pdps

If we setup backing phys page for 3lvl pdps, as they
are not used, we will lose 5 pages per ppgtt.

Trading this memory on bsw, we gain more common code paths for all
gen8+ directory manipulation. And those paths are now void of checks
for page directory type, making the hot paths faster.

v2: don't shortcut vm (Chris)

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