]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Fix termination condition for freeing all buffer objects
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Jul 2020 11:07:56 +0000 (12:07 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 7 Sep 2020 10:14:22 +0000 (13:14 +0300)
commitdc1f0adad65d0e70d0ba909e1775bb2491b9efdc
treeddbdf88901dae8fcd92fdcd7c6291a8e384b302b
parent7b30a1f8ba1bea63318a4c28720ecaf0b247465b
drm/i915/gt: Fix termination condition for freeing all buffer objects

A last minute change, that unfortunately broke CI so badly it declared
SUCCESS, was to refactor the debug free all buffer pool code to reuse
the normal worker, inverted the termination condition so that it instead
of discarding the nodes, they were all declared young enough and
eligible for reuse.

Fixes: bb4a936a0532 ("drm/i915/gt: Delay taking the spinlock for grabbing from the buffer pool")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200729110756.2344-1-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[Joonas: Updating Fixes: link after rebasing and reordering into drm-intel-gt-next]
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c