mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 02:28:03 +02:00
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.
This commit is contained in:
parent
06e09842df
commit
20a0e5e429
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue