aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_init.c
diff options
context:
space:
mode:
authorScott Wood <swood@redhat.com>2018-01-21 03:28:54 -0600
committerJoerg Roedel <jroedel@suse.de>2018-02-13 14:18:06 +0100
commit27790398c2aed917828dc3c6f81240d57f1584c9 (patch)
treee10672afbc28616d10901241df5bcec458c7bb94 /drivers/iommu/amd_iommu_init.c
parentLinux 4.16-rc1 (diff)
downloadlinux-dev-27790398c2aed917828dc3c6f81240d57f1584c9.tar.xz
linux-dev-27790398c2aed917828dc3c6f81240d57f1584c9.zip
iommu/amd: Use raw locks on atomic context paths
Several functions in this driver are called from atomic context, and thus raw locks must be used in order to be safe on PREEMPT_RT. This includes paths that must wait for command completion, which is a potential PREEMPT_RT latency concern but not easily avoidable. Signed-off-by: Scott Wood <swood@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-rw-r--r--drivers/iommu/amd_iommu_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index 4e4a615bf13f..904c575d1677 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -1474,7 +1474,7 @@ static int __init init_iommu_one(struct amd_iommu *iommu, struct ivhd_header *h)
{
int ret;
- spin_lock_init(&iommu->lock);
+ raw_spin_lock_init(&iommu->lock);
/* Add IOMMU to internal data structures */
list_add_tail(&iommu->list, &amd_iommu_list);