]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6fa5fe119bb23450cc051e297ca681280212fa3
tree4caa7bfd58330ff293f90cf89199580e09acac83
parent7527dd0e9be23904233c9b31621edb370e78869d
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