iommu/vt-d: Consolidate duplicate cache invaliation code
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 14 Jan 2021 08:50:21 +0000 (16:50 +0800)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:50 +0000 (08:35 -0400)
commit81578e587c089c8aeb25b8b4c501fe1fbdf2b0f5
tree13a3c86c242ad10f5dc7c24553042661597f39ec
parenteee84eafc3bb78d575b482abe7aaa281cb6bf84f
iommu/vt-d: Consolidate duplicate cache invaliation code

[ Upstream commit 9872f9bd9dbd68f75e8db782717d71e8594f6a02 ]

The pasid based IOTLB and devTLB invalidation code is duplicate in
several places. Consolidate them by using the common helpers.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210114085021.717041-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/intel/pasid.c
drivers/iommu/intel/svm.c