Module name: drm
Changes by: idr@.... 05/06/09 14:18:56
Completely re-initialize DMA settings
There were two problems. First, the 'warp' and 'primary' pointers weren't
cleared, so mga_do_cleanup_dma, which gets called multiple times, would try to
ioremapfree them multiple times. This resulted in the new error messages to
syslog. The second problem was the, since the dev_private structure isn't
reallocated and cleaned out in mga_do_init_dma, when the server is reloaded
idle-waits would wait for impossible values.
I have given this patch some more riggorous testing. This includes:
- Load module, start server, run GL app, stop server, unload module.
- Load module, start server, run GL app, stop server, unload module, reload
module, restart server, run GL app.
- Load module, start server, run GL app, stop server, restart server, run GL
app, stop server, unload module.
In all three cases, everything worked as expected. Please let me know if there
are any further regressions with this patch.
Xorg bug: 3408
Reported by: Chris Rankin
mga_dma.c mga_drv.h mga_irq.c
Revision Changes Path