]> 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)
commita68ba59850cc081dd7ad168d04d9de8b15ec05d2
treea4ee658b385fe93057867a11ab0c30b67a646c87
parent4be1fa03a8ac7fc0c806bc0380f683be2674ff7b
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