diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-10-06 15:00:53 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-10-06 15:09:30 +0200 |
commit | ec154bf56b276a0bb36079a5d22a267b5f417801 (patch) | |
tree | 42d05fab0d9473435a887dba7589f1659863af9c /include/linux/dmar.h | |
parent | 9e66317d3c92ddaab330c125dfe9d06eee268aff (diff) | |
download | talos-op-linux-ec154bf56b276a0bb36079a5d22a267b5f417801.tar.gz talos-op-linux-ec154bf56b276a0bb36079a5d22a267b5f417801.zip |
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: 59ce0515cdaf ('iommu/vt-d: Update DRHD/RMRR/ATSR device scope caches when PCI hotplug happens')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/dmar.h')
-rw-r--r-- | include/linux/dmar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h index e8ffba1052d3..e2433bc50210 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h @@ -112,6 +112,7 @@ static inline bool dmar_rcu_check(void) extern int dmar_table_init(void); extern int dmar_dev_scope_init(void); +extern void dmar_register_bus_notifier(void); extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, struct dmar_dev_scope **devices, u16 segment); extern void *dmar_alloc_dev_scope(void *start, void *end, int *cnt); |