]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Don't register bus-notifier under dmar_global_lock
authorJoerg Roedel <jroedel@suse.de>
Fri, 6 Oct 2017 13:00:53 +0000 (15:00 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Oct 2017 13:09:30 +0000 (15:09 +0200)
commit31cfb918424c52711c18afdd053d80641efaa1b0
tree42d05fab0d9473435a887dba7589f1659863af9c
parentb888c937506147d5d77f24afb038b53ae6e1b4f2
iommu/vt-d: Don't register bus-notifier under dmar_global_lock

The notifier function will take the dmar_global_lock too, so
lockdep complains about inverse locking order when the
notifier is registered under the dmar_global_lock.

Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
Fixes: bea000e86e60 ('iommu/vt-d: Update DRHD/RMRR/ATSR device scope caches when PCI hotplug happens')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
include/linux/dmar.h