svn commit: r279919 - head/sys/dev/drm2
Jason A. Harmening
jah at FreeBSD.org
Thu Mar 12 14:18:37 UTC 2015
Author: jah
Date: Thu Mar 12 14:18:36 2015
New Revision: 279919
URL: https://svnweb.freebsd.org/changeset/base/279919
Log:
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.
Approved by: kib (mentor)
MFC after: 1 week
Modified:
head/sys/dev/drm2/drm_pci.c
Modified: head/sys/dev/drm2/drm_pci.c
==============================================================================
--- head/sys/dev/drm2/drm_pci.c Thu Mar 12 13:40:02 2015 (r279918)
+++ head/sys/dev/drm2/drm_pci.c Thu Mar 12 14:18:36 2015 (r279919)
@@ -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-all
mailing list