]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: Fix a crash at card takedown for NV40 and older cards
authorJimmy Rentz <jb17bsome@gmail.com>
Sun, 17 Apr 2011 20:15:09 +0000 (16:15 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 8 May 2011 22:42:49 +0000 (08:42 +1000)
commited7310e41b52b82f262b105d3a1b7e8d9de4a680
tree9f9c6ebd78c2d7c008cc194fe3e0e631a3d97270
parent347af27d41d65f2286a89e6b0db743efadb4f883
drm/nouveau: Fix a crash at card takedown for NV40 and older cards

NV40 and older cards (pre NV50) reserve a vram bo for the vga memory at
card init. This bo is then freed at card shutdown.  The problem is that
the ttm bo vram manager was already freed. So a crash occurs when the
vga bo is freed. The fix is to free the vga bo prior to freeing the ttm
bo vram manager. There might be other solutions but this seemed the
simplest to me.

Signed-off-by: Jimmy Rentz <jb17bsome@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_mem.c
drivers/gpu/drm/nouveau/nouveau_state.c