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 Use drm_io_mapp...



details:   https://anonhg.NetBSD.org/src/rev/79cb3e2906a0
branches:  riastradh-drm2
changeset: 788336:79cb3e2906a0
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:19:02 2013 +0000

description:
Use drm_io_mapping_create_wc in i915_driver_load.

diffstat:

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

diffs (19 lines):

diff -r bd3f053462b1 -r 79cb3e2906a0 sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 03:18:46 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_dma.c    Wed Jul 24 03:19:02 2013 +0000
@@ -1642,9 +1642,15 @@
        aperture_size = dev_priv->mm.gtt->gtt_mappable_entries << PAGE_SHIFT;
        dev_priv->mm.gtt_base_addr = dev_priv->mm.gtt->gma_bus_addr;
 
+#ifdef __NetBSD__
+       dev_priv->mm.gtt_mapping =
+           drm_io_mapping_create_wc(dev, dev_priv->mm.gtt_base_addr,
+               aperture_size);
+#else
        dev_priv->mm.gtt_mapping =
                io_mapping_create_wc(dev_priv->mm.gtt_base_addr,
                                     aperture_size);
+#endif
        if (dev_priv->mm.gtt_mapping == NULL) {
                ret = -EIO;
                goto out_rmmap;



Home | Main Index | Thread Index | Old Index