]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02d385e467b591e43e4efa3cf2672b146c2a89f8
tree6e2d80f14e2b81b2d742e823e26855e5a48c9ace
parent14f33542802befe9a4f289bd66b03d0ac7c17b61
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