iommu/vt-d: Cleanup intel_context_flush_present()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 10 Mar 2025 02:47:49 +0000 (10:47 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 10 Mar 2025 08:31:05 +0000 (09:31 +0100)
commit4c293add5874038dc82ef579663dd86744d8e872
treef0ea27520b1138a13eabd3f545e369147845b2c2
parent87caaba1d174d365a9717e01d2c42335ba1da7be
iommu/vt-d: Cleanup intel_context_flush_present()

The intel_context_flush_present() is called in places where either the
scalable mode is disabled, or scalable mode is enabled but all PASID
entries are known to be non-present. In these cases, the flush_domains
path within intel_context_flush_present() will never execute. This dead
code is therefore removed.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Link: https://lore.kernel.org/r/20250228092631.3425464-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/pasid.c