OSDN Git Service

drm/mm: Fix caching of leftmost node in the interval tree
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 09:37:38 +0000 (09:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 16:38:26 +0000 (16:38 +0000)
commit8a1949455aaa22b3ff581766a640ed7f92cf8cef
tree3bcb40dfae01801230ef2b3f7756b58d7ce3cc86
parent2b91e3c43b4f3d3cd4d84a31cfbe6b165d89b70e
drm/mm: Fix caching of leftmost node in the interval tree

When we descend the tree to find our slot, if we step to the right, we
are no longer the leftmost node.

Fixes: f808c13fd373 ("lib/interval_tree: fast overlap detection")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Christian König <christian.koenig@amd.com> for now.
Link: https://patchwork.freedesktop.org/patch/msgid/20180220093738.1461-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c