iommu/amd: Use raw locks on atomic context paths
authorScott Wood <swood@redhat.com>
Sun, 21 Jan 2018 09:28:54 +0000 (03:28 -0600)
committerJoerg Roedel <jroedel@suse.de>
Tue, 13 Feb 2018 13:18:06 +0000 (14:18 +0100)
commit27790398c2aed917828dc3c6f81240d57f1584c9
treee10672afbc28616d10901241df5bcec458c7bb94
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
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>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h