Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 04:04:01 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/i915 [riastradh-drm2]: i915_dma.c

Log Message:
Ifdef out gtt unmapping for now in i915_driver_unload.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.19 -r1.1.1.1.2.20 \
    src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
diff -u src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.1.1.1.2.19 src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.1.1.1.2.20
--- src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c:1.1.1.1.2.19	Wed Jul 24 04:02:28 2013
+++ src/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c	Wed Jul 24 04:04:01 2013
@@ -1823,6 +1823,7 @@ int i915_driver_unload(struct drm_device
 	/* Cancel the retire work handler, which should be idle now. */
 	cancel_delayed_work_sync(&dev_priv->mm.retire_work);
 
+#ifndef __NetBSD__
 	io_mapping_free(dev_priv->mm.gtt_mapping);
 	if (dev_priv->mm.gtt_mtrr >= 0) {
 		mtrr_del(dev_priv->mm.gtt_mtrr,
@@ -1830,6 +1831,7 @@ int i915_driver_unload(struct drm_device
 			 dev_priv->mm.gtt->gtt_mappable_entries * PAGE_SIZE);
 		dev_priv->mm.gtt_mtrr = -1;
 	}
+#endif
 
 	acpi_video_unregister();
 

Reply via email to