]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5492db09e9bd7c207fd3e13d9b0a415d9226db8d
treeab5ef2e11438b384b9f1b6c394563ac53e1fcc93
parent5f0d11393c8032c9926ff7101311ab91a5fc587e
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