aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2023-10-26 08:49:42 +0000
committerJoerg Roedel <[email protected]>2023-10-27 06:57:09 +0000
commit6e6c6d6bc6c96c2477ddfea24a121eb5ee12b7a3 (patch)
treed76aa2991d69cbdf9790df77862f2445b05194c1 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentLinux 6.6-rc7 (diff)
downloadkernel-6e6c6d6bc6c96c2477ddfea24a121eb5ee12b7a3.tar.gz
kernel-6e6c6d6bc6c96c2477ddfea24a121eb5ee12b7a3.zip
iommu: Avoid unnecessary cache invalidations
The iommu_create_device_direct_mappings() only needs to flush the caches when the mappings are changed in the affected domain. This is not true for non-DMA domains, or for devices attached to the domain that have no reserved regions. To avoid unnecessary cache invalidations, add a check before iommu_flush_iotlb_all(). Fixes: a48ce36e2786 ("iommu: Prevent RESV_DIRECT devices from blocking domains") Signed-off-by: Lu Baolu <[email protected]> Tested-by: Henry Willard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions