]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lock
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Mar 2018 15:22:36 +0000 (16:22 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 08:38:15 +0000 (10:38 +0200)
commitcc320a1d1d3b461bbc8d52a97a06d1d7fd66af78
tree89e549e2897afcdbf09ea31831744b1a55b27315
parenta0fa7536f364099ae39665fe88b5de2d8ee39aa4
iommu/amd: Split irq_lookup_table out of the amd_iommu_devtable_lock

The function get_irq_table() reads/writes irq_lookup_table while holding
the amd_iommu_devtable_lock. It also modifies
amd_iommu_dev_table[].data[2].
set_dte_entry() is using amd_iommu_dev_table[].data[0|1] (under the
domain->lock) so it should be okay. The access to the iommu is
serialized with its own (iommu's) lock.

So split out get_irq_table() out of amd_iommu_devtable_lock's lock.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c