]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: Forget about cmdq-sync interrupt
authorRobin Murphy <robin.murphy@arm.com>
Thu, 31 Aug 2017 13:44:26 +0000 (14:44 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 20 Oct 2017 15:55:07 +0000 (16:55 +0100)
commitb7de50a469143f791e6262f0b08c222af95b829e
tree39a0e22efaa126e4196ae085dfad74bcbefae3f9
parent207e3124a1b825c163267e8a54ffdf74dc169127
iommu/arm-smmu-v3: Forget about cmdq-sync interrupt

The cmdq-sync interrupt is never going to be particularly useful, since
for stage 1 DMA at least we'll often need to wait for sync completion
within someone else's IRQ handler, thus have to implement polling
anyway. Beyond that, the overhead of taking an interrupt, then still
having to grovel around in the queue to figure out *which* sync command
completed, doesn't seem much more attractive than simple polling either.

Furthermore, if an implementation both has wired interrupts and supports
MSIs, then we don't want to be taking the IRQ unnecessarily if we're
using the MSI write to update memory. Let's just make life simpler by
not even bothering to claim it in the first place.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c