[PATCH 4/4] drm/omap: fix race issue when unloading omapdrm

2014-04-02 Thread Tomi Valkeinen
At module unload, omap_fbdev_free() gets called which releases the framebuffers. However, the framebuffers are still used by crtcs, and will be released only later at vsync. The driver doesn't wait for this, and goes on to release the rest of the resources, which often causes a crash. This patchs

[PATCH 4/4] drm/omap: fix race issue when unloading omapdrm

2014-04-02 Thread Rob Clark
On Wed, Apr 2, 2014 at 8:38 AM, Tomi Valkeinen wrote: > At module unload, omap_fbdev_free() gets called which releases the > framebuffers. However, the framebuffers are still used by crtcs, and > will be released only later at vsync. The driver doesn't wait for this, > and goes on to release the r