[PATCH 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-04-24 Thread Thomas Hellstrom
With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/v

Re: [PATCH 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-04-22 Thread Deepak Singh Rawat
Reviewed-by: Deepak Rawat On Fri, 2019-04-12 at 09:04 -0700, Thomas Hellstrom wrote: > With emulated coherent memory we need to be able to quickly look up > a resource from the MOB offset. Instead of traversing a linked list > with > O(n) worst case, use an RBtree with O(log n) worst case complex

[PATCH 7/9] drm/vmwgfx: Use an RBtree instead of linked list for MOB resources

2019-04-12 Thread Thomas Hellstrom
With emulated coherent memory we need to be able to quickly look up a resource from the MOB offset. Instead of traversing a linked list with O(n) worst case, use an RBtree with O(log n) worst case complexity. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 5 ++--