drm/i915/gtt: Refactor common ppgtt initialisation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Mar 2019 22:38:39 +0000 (22:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Mar 2019 09:04:54 +0000 (09:04 +0000)
commit2ebd000abc3f0bfb91ff7c918d1c2a9ebabda86b
treec1190321061a8465f55afadf44ec71866fa16d26
parenta9fe9ca44c918b44f8fb85d4571d3386f390be4f
drm/i915/gtt: Refactor common ppgtt initialisation

The basic setup of the i915_hw_ppgtt is the same between gen6 and gen8,
so refactor that into a common routine.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190314223839.28258-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c