diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-09-30 07:02:03 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-10-02 05:18:58 -0400 |
commit | 1196c2fb0407683c2df92d3d09f9144d42830894 (patch) | |
tree | 71b7a7eb4fa1e714f39d8a6ebb03cc5404242d51 /drivers/iommu | |
parent | 599bad38cf7163123af7c9efea0fcf228bc74fe1 (diff) |
iommu/vt-d: Only remove domain when device is removed
This makes sure any RMRR mappings stay in place when the
driver is unbound from the device.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Jerry Hoemann <jerry.hoemann@hp.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index d1f5caad04f9..eaf825ac7d28 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -3865,8 +3865,7 @@ static int device_notifier(struct notifier_block *nb, | |||
3865 | if (iommu_dummy(dev)) | 3865 | if (iommu_dummy(dev)) |
3866 | return 0; | 3866 | return 0; |
3867 | 3867 | ||
3868 | if (action != BUS_NOTIFY_UNBOUND_DRIVER && | 3868 | if (action != BUS_NOTIFY_REMOVED_DEVICE) |
3869 | action != BUS_NOTIFY_DEL_DEVICE) | ||
3870 | return 0; | 3869 | return 0; |
3871 | 3870 | ||
3872 | domain = find_domain(dev); | 3871 | domain = find_domain(dev); |