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 Use dmat, not bus_dmat, to respect...



details:   https://anonhg.NetBSD.org/src/rev/cd5160a6b32f
branches:  trunk
changeset: 366413:cd5160a6b32f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 15:27:43 2018 +0000

description:
Use dmat, not bus_dmat, to respect drm_limit_dma_space.

diffstat:

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

diffs (27 lines):

diff -r 6b10cc0efbd9 -r cd5160a6b32f sys/external/bsd/drm2/drm/drm_gem_cma_helper.c
--- a/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Mon Aug 27 15:27:28 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c    Mon Aug 27 15:27:43 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_gem_cma_helper.c,v 1.5 2018/08/27 15:27:16 riastradh Exp $ */
+/* $NetBSD: drm_gem_cma_helper.c,v 1.6 2018/08/27 15:27:43 riastradh 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.5 2018/08/27 15:27:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_gem_cma_helper.c,v 1.6 2018/08/27 15:27:43 riastradh Exp $");
 
 #include <drm/drmP.h>
 #include <drm/drm_gem_cma_helper.h>
@@ -42,7 +42,7 @@
        int error, nsegs;
 
        obj = kmem_zalloc(sizeof(*obj), KM_SLEEP);
-       obj->dmat = ddev->bus_dmat;
+       obj->dmat = ddev->dmat;
        obj->dmasize = size;
 
        if (sgt) {



Home | Main Index | Thread Index | Old Index