diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2023-11-20 15:51:57 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-11-27 11:00:43 +0100 |
commit | 6f01a732608f294a853f0d1cc963772bac12f1e9 (patch) | |
tree | 1be78cd40390cbb223015178e6e997fd7cf3118b /arch/loongarch/kernel/stacktrace.c | |
parent | iommu/virtio: Make use of ops->iotlb_sync_map (diff) | |
download | linux-6f01a732608f294a853f0d1cc963772bac12f1e9.tar.xz linux-6f01a732608f294a853f0d1cc963772bac12f1e9.zip |
iommu/virtio: Add ops->flush_iotlb_all and enable deferred flush
Add ops->flush_iotlb_all operation to enable virtio-iommu for the
dma-iommu deferred flush scheme. This results in a significant increase
in performance in exchange for a window in which devices can still
access previously IOMMU mapped memory when running with
CONFIG_IOMMU_DEFAULT_DMA_LAZY. The previous strict behavior can be
achieved with iommu.strict=1 on the kernel command line or
CONFIG_IOMMU_DEFAULT_DMA_STRICT.
Link: https://lore.kernel.org/lkml/20230802123612.GA6142@myrica/
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20231120-viommu-sync-map-v3-2-50a57ecf78b5@linux.ibm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/loongarch/kernel/stacktrace.c')
0 files changed, 0 insertions, 0 deletions