]> git.kernelconcepts.de Git - mv-sheeva.git/commit
drm/nouveau: fix regression causing ttm to not be able to evict vram
authorBen Skeggs <bskeggs@redhat.com>
Mon, 7 Mar 2011 07:18:03 +0000 (17:18 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Mar 2011 21:03:01 +0000 (07:03 +1000)
commitef1b287169cd3d1e428c8ed8222e0bbf733d5dbb
tree87802c1a32ad130065f2ba35a73d9da6a8632d40
parentfb62c00a6d8942775abc23d1621db1252e2d93d1
drm/nouveau: fix regression causing ttm to not be able to evict vram

TTM assumes an error condition from man->func->get_node() means that
something went horribly wrong, and causes it to bail.

The driver is supposed to return 0, and leave mm_node == NULL to
signal that it couldn't allocate any memory.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_mm.c