]> 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)
commiteb84595d2cc6f93003c6ded55c2a172abf925f96
tree4caa7bfd58330ff293f90cf89199580e09acac83
parent4c5ad7d98b06b0d48330aba6bdf90f7a1c541ad3
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