linux/drivers/iommu/intel
Lu Baolu 9807860f6a iommu/vt-d: Make context clearing consistent with context mapping
[ Upstream commit 9a16ab9d64 ]

In the iommu probe_device path, domain_context_mapping() allows setting
up the context entry for a non-PCI device. However, in the iommu
release_device path, domain_context_clear() only clears context entries
for PCI devices.

Make domain_context_clear() behave consistently with
domain_context_mapping() by clearing context entries for both PCI and
non-PCI devices.

Fixes: 579305f75d ("iommu/vt-d: Update to use PCI DMA aliases")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20231114011036.70142-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-12-08 08:48:05 +01:00
..
cap_audit.c iommu/vt-d: Fix an unbalanced rcu_read_lock/rcu_read_unlock() 2023-03-10 09:40:15 +01:00
cap_audit.h iommu/vt-d: Check FL and SL capability sanity in scalable mode 2023-03-10 09:39:43 +01:00
debugfs.c iommu/vt-d: Expose latency monitor data through debugfs 2021-06-10 09:06:13 +02:00
dmar.c iommu/vt-d: Omit devTLB invalidation requests when TES=0 2023-12-08 08:48:04 +01:00
iommu.c iommu/vt-d: Make context clearing consistent with context mapping 2023-12-08 08:48:05 +01:00
irq_remapping.c iommu/vt-d: Fix potential memory leak in intel_setup_irq_remapping() 2022-02-08 18:34:07 +01:00
Kconfig iommu/vt-d: Enable Intel IOMMU scalable mode by default 2021-08-19 10:41:08 +02:00
Makefile iommu/vt-d: Add common code for dmar latency performance monitors 2021-06-10 09:06:13 +02:00
pasid.c iommu/vt-d: Fix to flush cache of PASID directory table 2023-09-19 12:22:46 +02:00
pasid.h Merge branches 'apple/dart', 'arm/smmu', 'iommu/fixes', 'x86/amd', 'x86/vt-d' and 'core' into next 2021-08-20 17:14:35 +02:00
perf.c iommu/vt-d: Drop the kernel doc annotation 2021-08-19 10:41:08 +02:00
perf.h iommu/vt-d: Add common code for dmar latency performance monitors 2021-06-10 09:06:13 +02:00
svm.c iommu/vt-d: Drop stop marker messages 2022-05-12 12:30:12 +02:00
trace.c iommu/vt-d: Move Intel IOMMU driver into subdirectory 2020-06-10 17:46:43 +02:00