]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Split domain id out of amd_iommu_devtable_lock
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Mar 2018 15:22:35 +0000 (16:22 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 08:38:15 +0000 (10:38 +0200)
commita0fa7536f364099ae39665fe88b5de2d8ee39aa4
tree5cf7d4442c55b5b062e928a0d85aeea69d9d8ac2
parentc34c4484dfed9f8b33b4fc052c7cfc8b4d0782af
iommu/amd: Split domain id out of amd_iommu_devtable_lock

domain_id_alloc() and domain_id_free() is used for id management. Those
two function share a bitmap (amd_iommu_pd_alloc_bitmap) and set/clear
bits based on id allocation. There is no need to share this with
amd_iommu_devtable_lock, it can use its own lock for this operation.

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