]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/dma-mapping: Extend DMA ops workaround to PCI devices
authorRobin Murphy <robin.murphy@arm.com>
Tue, 19 Apr 2016 16:01:31 +0000 (17:01 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 21 Apr 2016 16:34:34 +0000 (17:34 +0100)
commitfc7abec32d818d2203ba7613a2b0fe9cfacf57d6
treea4ee658b385fe93057867a11ab0c30b67a646c87
parentc9ba5f334a875701f77ff146db98b84edeb83b64
arm64/dma-mapping: Extend DMA ops workaround to PCI devices

PCI devices now suffer the same hiccup as platform devices, in that they
get their DMA ops configured before they have been added to their bus,
and thus before we know whether they have successfully registered with
an IOMMU or not. Until the necessary driver core changes to reorder
calls during device creation have been worked out, extend our delayed
notifier trick onto the PCI bus so as to avoid broken DMA ops once
IOMMUs get plugged into the PCI code.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c