2.6.35-longterm review patch. If anyone has any objections, please let me know.
------------------ From: Keith Packard <[email protected]> commit c2873e9633fe908dccd36dbb1d370e9c59a1ca62 upstream. A physically mapped hardware status page is allocated at driver load time but was never freed. Call the existing code to free this page at driver unload time on hardware which uses this kind. Signed-off-by: Keith Packard <[email protected]> Signed-off-by: Andi Kleen <[email protected]> [ickle: call before tearing down registers on KMS-only path, as pointed out by Dave Airlie] Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> --- drivers/gpu/drm/i915/i915_dma.c | 3 +++ 1 file changed, 3 insertions(+) Index: linux/drivers/gpu/drm/i915/i915_dma.c =================================================================== --- linux.orig/drivers/gpu/drm/i915/i915_dma.c +++ linux/drivers/gpu/drm/i915/i915_dma.c @@ -2297,6 +2297,9 @@ int i915_driver_unload(struct drm_device i915_gem_lastclose(dev); intel_cleanup_overlay(dev); + + if (!I915_NEED_GFX_HWS(dev)) + i915_free_hws(dev); } intel_teardown_mchbar(dev); _______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
