Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/drm Map buffer objects with BUS_DMA_PR...



details:   https://anonhg.NetBSD.org/src/rev/ad9c4c9c21e6
branches:  trunk
changeset: 966578:ad9c4c9c21e6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Nov 05 09:59:16 2019 +0000

description:
Map buffer objects with BUS_DMA_PREFETCHABLE.

diffstat:

 sys/external/bsd/drm2/drm/drm_gem_cma_helper.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 996c46c165a1 -r ad9c4c9c21e6 sys/external/bsd/drm2/drm/drm_gem_cma_helper.c
--- a/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Tue Nov 05 09:57:47 2019 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Tue Nov 05 09:59:16 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_gem_cma_helper.c,v 1.7 2019/03/08 02:53:22 mrg Exp $ */
+/* $NetBSD: drm_gem_cma_helper.c,v 1.8 2019/11/05 09:59:16 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.7 2019/03/08 02:53:22 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.8 2019/11/05 09:59:16 jmcneill Exp $");
 
 #include <drm/drmP.h>
 #include <drm/drm_gem_cma_helper.h>
@@ -55,7 +55,8 @@
        if (error)
                goto failed;
        error = bus_dmamem_map(obj->dmat, obj->dmasegs, nsegs,
-           obj->dmasize, &obj->vaddr, BUS_DMA_WAITOK | BUS_DMA_COHERENT);
+           obj->dmasize, &obj->vaddr,
+           BUS_DMA_WAITOK | BUS_DMA_PREFETCHABLE);
        if (error)
                goto free;
        error = bus_dmamap_create(obj->dmat, obj->dmasize, 1,



Home | Main Index | Thread Index | Old Index