]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen8: Generalize PTE writing for GEN8 PPGTT
authorMichel Thierry <michel.thierry@intel.com>
Thu, 30 Jul 2015 10:02:49 +0000 (11:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Aug 2015 16:16:18 +0000 (18:16 +0200)
commite1a6ea265adaa348507b7712689f529d67812dde
treef001ecbf2841bb35a003f82e9c948d3b99ef3b15
parent005fbc87e764c6669b077eeb6dd23276ad040b87
drm/i915/gen8: Generalize PTE writing for GEN8 PPGTT

The insert_entries function was the function used to write PTEs. For the
PPGTT it was "hardcoded" to only understand two level page tables, which
was the case for GEN7. We can reuse this for 4 level page tables, and
remove the concept of insert_entries, which was never viable past 2
level page tables anyway, but it requires a bit of rework to make the
function a bit more generic.

v2: Rebase after Mika's ppgtt cleanup / scratch merge patch series.
v3: Rebase after final merged version of Mika's ppgtt/scratch patches.
v4: Check and warn for NULL value of pdp pointer (Akash).

Cc: Akash Goel <akash.goel@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Michel Thierry <michel.thierry@intel.com> (v2)
Reviewed-by: Akash Goel <akash.goel@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c