projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21129f7
)
x86/amd-iommu: Don't detach device from pt domain on driver unbind
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 1 Sep 2009 10:22:22 +0000
(12:22 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 3 Sep 2009 14:15:46 +0000
(16:15 +0200)
This patch makes sure a device is not detached from the
passthrough domain when the device driver is unloaded or
does otherwise release the device.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index a8e74c34dd27c917fb1b5f2fdc3b2ed1896c91f7..12a541deae5ebb7def1bf0fb19da149ec1a46b98 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-1195,6
+1195,8
@@
static int device_change_notifier(struct notifier_block *nb,
case BUS_NOTIFY_UNBOUND_DRIVER:
if (!domain)
goto out;
+ if (iommu_pass_through)
+ break;
detach_device(domain, devid);
break;
case BUS_NOTIFY_ADD_DEVICE: