After calling drm_sman_cleanup, mark both heaps as uninitialized.

Since the heaps weren't marked as uninitialized, SG memory was never
re-allocated.  This prevented the X-server from being able to restart
without re-loading the kernel module.
main
Ian Romanick 2007-08-09 18:57:15 -07:00
parent 06e09842df
commit 20a0e5e429
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ void xgi_driver_lastclose(struct drm_device * dev)
if (info->fb_heap_initialized
|| info->pcie_heap_initialized) {
drm_sman_cleanup(&info->sman);
info->fb_heap_initialized = FALSE;
info->pcie_heap_initialized = FALSE;
}
}
}