]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitbbb10e639819e6a14e487ce14b3d8575767573b8
tree87f33cf24ae1f77954698f98b7ae7eae383d8626
parent9551efcf7664b73d881de7eb88e4626c9561b624
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