]> git.ipfire.org Git - people/arne_f/kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
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)
commitf9b5b782c4720f6c353088b559af5842ce66aa6f
treef001ecbf2841bb35a003f82e9c948d3b99ef3b15
parentd4ec9da0e17cb6a86c0b76c5b254981601d25031
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