Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 15:27:43 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/drm: drm_gem_cma_helper.c

Log Message:
Use dmat, not bus_dmat, to respect drm_limit_dma_space.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c
diff -u src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c:1.5 src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c:1.6
--- src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c:1.5	Mon Aug 27 15:27:16 2018
+++ src/sys/external/bsd/drm2/drm/drm_gem_cma_helper.c	Mon Aug 27 15:27:43 2018
@@ -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 <[email protected]>
@@ -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 @@ drm_gem_cma_create_internal(struct drm_d
 	int error, nsegs;
 
 	obj = kmem_zalloc(sizeof(*obj), KM_SLEEP);
-	obj->dmat = ddev->bus_dmat;
+	obj->dmat = ddev->dmat;
 	obj->dmasize = size;
 
 	if (sgt) {

Reply via email to