]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Move clflush'es from iotlb_sync_map() to map_pages()
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 20 Jul 2021 02:06:15 +0000 (10:06 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 Jul 2021 11:56:25 +0000 (13:56 +0200)
commite1dfab0b85b299c52cd848ac581aba4b62fd6b0e
treedde8f9d8f04f7b2a8d019bdfaff94bd851f5acad
parented62e299b5c46de3a8842fd01e6bd66fa52cd73e
iommu/vt-d: Move clflush'es from iotlb_sync_map() to map_pages()

As the Intel VT-d driver has switched to use the iommu_ops.map_pages()
callback, multiple pages of the same size will be mapped in a call.
There's no need to put the clflush'es in iotlb_sync_map() callback.
Move them back into __domain_mapping() to simplify the code.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210720020615.4144323-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c