Since the _DRM_DRIVER mapping stuff went in, i915 has been panicing at 
unload time.  However, the driver appears to be correctly using the new 
_DRM_DRIVER flag, so it's not immediately obvious what's going wrong.  
This hacky workaround prevents the crash.

Jesse
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index 42114be..7d9aa3e 100644
--- a/shared-core/i915_dma.c
+++ b/shared-core/i915_dma.c
@@ -1328,11 +1328,6 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags)
 
 int i915_driver_unload(struct drm_device *dev)
 {
-	struct drm_i915_private *dev_priv = dev->dev_private;
-
-	if (dev_priv->mmio_map)
-		drm_rmmap(dev, dev_priv->mmio_map);
-
 	drm_free(dev->dev_private, sizeof(drm_i915_private_t),
 		 DRM_MEM_DRIVER);
 #ifdef __linux__
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to