mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
8ee4f5ef45
commit
edf3c81a5c
1 changed files with 3 additions and 1 deletions
|
|
@ -76,7 +76,9 @@ drm_pci_alloc(struct drm_device *dev, size_t size,
|
|||
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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue