[PATCH] drm/mm: Fix search for smallest hole satisfying constraints

2014-03-20 Thread Michel Dänzer
On Mit, 2014-03-19 at 11:38 +0100, Daniel Vetter wrote: > On Wed, Mar 19, 2014 at 05:42:27PM +0900, Michel D?nzer wrote: > > On Die, 2014-03-18 at 11:01 +0100, Daniel Vetter wrote: > > > On Tue, Mar 18, 2014 at 09:58:14AM +0900, Michel D?nzer wrote: > > > > From: Michel D?nzer > > > > > > > > ent

[PATCH] drm/mm: Fix search for smallest hole satisfying constraints

2014-03-19 Thread Michel Dänzer
On Die, 2014-03-18 at 11:01 +0100, Daniel Vetter wrote: > On Tue, Mar 18, 2014 at 09:58:14AM +0900, Michel D?nzer wrote: > > From: Michel D?nzer > > > > entry->size is the size of the node, not the size of the hole after it. > > So the code would actually find the hole which can satisfy the > > c

[PATCH] drm/mm: Fix search for smallest hole satisfying constraints

2014-03-19 Thread Daniel Vetter
On Wed, Mar 19, 2014 at 05:42:27PM +0900, Michel D?nzer wrote: > On Die, 2014-03-18 at 11:01 +0100, Daniel Vetter wrote: > > On Tue, Mar 18, 2014 at 09:58:14AM +0900, Michel D?nzer wrote: > > > From: Michel D?nzer > > > > > > entry->size is the size of the node, not the size of the hole after it.

[PATCH] drm/mm: Fix search for smallest hole satisfying constraints

2014-03-18 Thread Daniel Vetter
On Tue, Mar 18, 2014 at 09:58:14AM +0900, Michel D?nzer wrote: > From: Michel D?nzer > > entry->size is the size of the node, not the size of the hole after it. > So the code would actually find the hole which can satisfy the > constraints and which is preceded by the smallest node, not the small

[PATCH] drm/mm: Fix search for smallest hole satisfying constraints

2014-03-18 Thread Michel Dänzer
From: Michel D?nzer entry->size is the size of the node, not the size of the hole after it. So the code would actually find the hole which can satisfy the constraints and which is preceded by the smallest node, not the smallest hole satisfying the constraints. Reported-by: "Huang, FrankR" Signe