Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Ifdef out gtt u...



details:   https://anonhg.NetBSD.org/src/rev/642ff0d79943
branches:  riastradh-drm2
changeset: 788496:642ff0d79943
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 04:04:01 2013 +0000

description:
Ifdef out gtt unmapping for now in i915_driver_unload.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r e408b89231c8 -r 642ff0d79943 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 04:03:45 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 04:04:01 2013 +0000
@@ -1823,6 +1823,7 @@
        /* 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 @@
                         dev_priv->mm.gtt->gtt_mappable_entries * PAGE_SIZE);
                dev_priv->mm.gtt_mtrr = -1;
        }
+#endif
 
        acpi_video_unregister();
 



Home | Main Index | Thread Index | Old Index