svn commit: r280352 - stable/9/sys/dev/drm2
Jason A. Harmening
jah at FreeBSD.org
Sun Mar 22 18:31:29 UTC 2015
Author: jah
Date: Sun Mar 22 18:31:28 2015
New Revision: 280352
URL: https://svnweb.freebsd.org/changeset/base/280352
Log:
MFC r279919: Using parent DMA tag in drm_pci_alloc(). This can allow
drm2 devices to work with Intel DMAR enabled for the system, as long as
DMAR is disabled for the drm2 device.
Reviewed by: kib (mentor)
Modified:
stable/9/sys/dev/drm2/drm_pci.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/drm2/drm_pci.c
==============================================================================
--- stable/9/sys/dev/drm2/drm_pci.c Sun Mar 22 18:17:55 2015 (r280351)
+++ stable/9/sys/dev/drm2/drm_pci.c Sun Mar 22 18:31:28 2015 (r280352)
@@ -76,7 +76,9 @@ drm_pci_alloc(struct drm_device *dev, si
if (mtx_owned(&dev->dma_lock))
DRM_ERROR("called while holding dma_lock\n");
- ret = bus_dma_tag_create(NULL, align, 0, /* tag, align, boundary */
+ ret = bus_dma_tag_create(
+ bus_get_dma_tag(dev->device), /* parent */
+ align, 0, /* align, boundary */
maxaddr, BUS_SPACE_MAXADDR, /* lowaddr, highaddr */
NULL, NULL, /* filtfunc, filtfuncargs */
size, 1, size, /* maxsize, nsegs, maxsegsize */
More information about the svn-src-stable-9
mailing list