Skip to content

Commit

Permalink
drm/i915: Free hardware status page on unload when physically mapped
Browse files Browse the repository at this point in the history
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 <keithp@keithp.com>
[ickle: call before tearing down registers on KMS-only path, as pointed
out by Dave Airlie]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
  • Loading branch information
Keith Packard authored and Chris Wilson committed Oct 7, 2010
1 parent 26bf62e commit c2873e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,6 +2150,9 @@ int i915_driver_unload(struct drm_device *dev)
drm_mm_takedown(&dev_priv->mm.vram);

intel_cleanup_overlay(dev);

if (!I915_NEED_GFX_HWS(dev))
i915_free_hws(dev);
}

intel_teardown_gmbus(dev);
Expand Down

0 comments on commit c2873e9

Please sign in to comment.