]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: fix handling of GART OOM on pre-NV50 chipsets
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:16 +0000 (13:32 +1000)
commitaff4a614fd838e935fc0d7dfd6d5a5dc3689d3e1
tree87f33cf24ae1f77954698f98b7ae7eae383d8626
parent4cfc65bbd361f7dc5465c238075b079cb7f29143
drm/nouveau: fix handling of GART OOM on pre-NV50 chipsets

The correct thing to do on OOM is to return 0 and set mm_node to NULL,
otherwise TTM will assume some other kind of error, and not attempt to
evict other buffers to make space.

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