diff options
author | Luca Barbieri <luca@luca-barbieri.com> | 2010-01-16 15:30:15 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-01-18 09:56:13 +1000 |
commit | 71666475018a3024fb49499096d26a9350349e8b (patch) | |
tree | c10a83f9dcb7fbeb52ac4fd7fc2b8374f128ebc2 /scripts/basic | |
parent | d051bbb22e9d8e87e2a5b8efb176d1bfd0f7feee (diff) |
drm/nouveau: Evict buffers in VRAM before freeing sgdma
Currently, we take down the sgdma engine without evicting all buffers
from VRAM.
The TTM device release will try to evict anything in VRAM to GART
memory, but this will fail since sgdma has already been taken down.
This causes an infinite loop in kernel mode on module unload.
It usually doesn't happen because there aren't any buffer on close.
However, if the GPU is locked up, this condition is easily triggered.
This patch fixes it in the simplest way possible by cleaning VRAM
right before cleaning SGDMA memory.
Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions