drm/i915/gtt: Recursive ppgtt clear for gen8
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 11:27:23 +0000 (12:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 12 Jul 2019 18:40:43 +0000 (19:40 +0100)
commit4c2be3c5ebfd98fc588f6bc5f53fa2ef516c02ea
tree4caa7bfd58330ff293f90cf89199580e09acac83
parent1eda701eace2ddac0f2e2e7176ff6b504e815453
drm/i915/gtt: Recursive ppgtt clear for gen8

With an explicit level, we can refactor the separate clear functions
as a simple recursive function. The additional knowledge of the level
allows us to spot when we can free an entire subtree at once.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712112725.2892-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.debug
drivers/gpu/drm/i915/i915_gem_gtt.c