summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-07-02 19:25:08 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-07-06 14:33:32 +0200
commitfc786728ee8acc76e22769af3b2df67b94cd49b6 (patch)
tree2f03158bdeef508d656a0d7aaf3bec6d4b8a530d /drivers/gpu/drm/i915/i915_dma.c
parentd713fd4976f2838ca2ebccdc187256edb46bd48e (diff)
downloadop-kernel-dev-fc786728ee8acc76e22769af3b2df67b94cd49b6.zip
op-kernel-dev-fc786728ee8acc76e22769af3b2df67b94cd49b6.tar.gz
drm/i915: move FBC code out of i915_gem_stolen.c
With the abstractions created by the last patch, we can move this code and the only thing inside intel_fbc.c that knows about dev_priv->mm is the code that reads stolen_base. We also had to move a call to i915_gem_stolen_cleanup_compression() - now called intel_fbc_cleanup_cfb() - outside i915_gem_stolen.c. v2: - Rebase after the remove_node() changes on the previous patch. Requested-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index a42f165..066c34c 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1123,6 +1123,7 @@ int i915_driver_unload(struct drm_device *dev)
i915_gem_cleanup_ringbuffer(dev);
i915_gem_context_fini(dev);
mutex_unlock(&dev->struct_mutex);
+ intel_fbc_cleanup_cfb(dev);
i915_gem_cleanup_stolen(dev);
intel_csr_ucode_fini(dev);
OpenPOWER on IntegriCloud