diff mbox

drm/i915: Free hardware status page on unload when physically mapped

Message ID 1286425487-22515-1-git-send-email-keithp@keithp.com (mailing list archive)
State New, archived
Headers show

Commit Message

Keith Packard Oct. 7, 2010, 4:24 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 9d67b48..98bf1f0 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -2305,6 +2305,9 @@  int i915_driver_unload(struct drm_device *dev)
 		intel_cleanup_overlay(dev);
 	}
 
+	if (!I915_NEED_GFX_HWS(dev))
+		i915_free_hws(dev);
+
 	intel_teardown_mchbar(dev);
 
 	pci_dev_put(dev_priv->bridge_dev);