Date: Thu, 12 Mar 2015 14:18:37 +0000 (UTC) From: "Jason A. Harmening" <jah@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279919 - head/sys/dev/drm2 Message-ID: <201503121418.t2CEIbM7022604@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503121418.t2CEIbM7022604>