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 Hook up some GT...



details:   https://anonhg.NetBSD.org/src/rev/61353bdc3780
branches:  riastradh-drm2
changeset: 788561:61353bdc3780
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Sep 08 16:27:15 2013 +0000

description:
Hook up some GTT logic again in i915_driver_load.

diffstat:

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

diffs (61 lines):

diff -r 838c4175a79b -r 61353bdc3780 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Sun Sep 08 16:22:29 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Sun Sep 08 16:27:15 2013 +0000
@@ -1432,7 +1432,6 @@
        master->driver_priv = NULL;
 }
 
-#ifndef __NetBSD__             /* XXX gtt */
 static void
 i915_mtrr_setup(struct drm_i915_private *dev_priv, unsigned long base,
                unsigned long size)
@@ -1455,7 +1454,6 @@
                         "performance may suffer.\n");
        }
 }
-#endif
 
 #ifndef __NetBSD__             /* XXX fb */
 static void i915_kick_out_firmware_fb(struct drm_i915_private *dev_priv)
@@ -1511,9 +1509,7 @@
        struct drm_i915_private *dev_priv;
        struct intel_device_info *info;
        int ret = 0, mmio_bar, mmio_size;
-#ifndef __NetBSD__             /* XXX gtt */
        uint32_t aperture_size;
-#endif
 
        info = (struct intel_device_info *) flags;
 
@@ -1624,7 +1620,6 @@
        }
 #endif
 
-#ifndef __NetBSD__             /* XXX gtt */
        aperture_size = dev_priv->mm.gtt->gtt_mappable_entries << PAGE_SHIFT;
        dev_priv->mm.gtt_base_addr = dev_priv->mm.gtt->gma_bus_addr;
 
@@ -1644,7 +1639,6 @@
 
        i915_mtrr_setup(dev_priv, dev_priv->mm.gtt_base_addr,
                        aperture_size);
-#endif /* __NetBSD__ */
 
        /* The i915 workqueue is primarily used for batched retirement of
         * requests (and thus managing bo) once the task has been completed
@@ -1769,7 +1763,6 @@
 #endif
        destroy_workqueue(dev_priv->wq);
 out_mtrrfree:
-#ifndef __NetBSD__             /* XXX gtt */
        if (dev_priv->mm.gtt_mtrr >= 0) {
                mtrr_del(dev_priv->mm.gtt_mtrr,
                         dev_priv->mm.gtt_base_addr,
@@ -1778,7 +1771,6 @@
        }
        io_mapping_free(dev_priv->mm.gtt_mapping);
 out_rmmap:
-#endif
 #ifdef __NetBSD__
        (void)drm_rmmap(dev, dev_priv->regs_map);
 #else



Home | Main Index | Thread Index | Old Index