OSDN Git Service

drm/nouveau/core/mm: fill in holes with "allocated" nodes
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Aug 2014 03:54:37 +0000 (13:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:22:13 +0000 (22:22 +1000)
commit13dfe1286d1ea1af4c9330b039c2316d0d92c484
treeab5ef2e11438b384b9f1b6c394563ac53e1fcc93
parentd7bda18c9102b65078c132fd7d7ffd835058f021
drm/nouveau/core/mm: fill in holes with "allocated" nodes

The allocation algorithm doesn't expect there to be holes in the mm, which
causes its alignment/cutoff calculations to choke (and go negative) when
encountering the last chunk of a block before a hole.

The least expensive solution is to simply fill in any holes with nodes
that are pre-marked as being allocated.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/core/mm.c
drivers/gpu/drm/nouveau/core/include/core/mm.h