lkml.org 
[lkml]   [2021]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/4] Fixes for dma-iommu swiotlb bounce buffers
Date
From: David Stevens <stevensd@chromium.org>

This patch set includes two fixes for bugs caused by mixing up the
original buffer's physical address and bounce buffer's physical address.
It also includes a performance fix that avoids an extra copy, as well as
a general cleanup fix.

The issues were found via code inspection, so I don't have any specific
use cases where things were not working, or any performance numbers.

v1 -> v2:
- Split fixes into dedicated patches
- Less invasive changes to fix arch_sync when mapping
- Leave dev_is_untrusted check for strict iommu

David Stevens (4):
dma-iommu: fix sync_sg with swiotlb
dma-iommu: fix arch_sync_dma for map with swiotlb
dma-iommu: pass SKIP_CPU_SYNC to swiotlb unmap
dma-iommu: Check CONFIG_SWIOTLB more broadly

drivers/iommu/dma-iommu.c | 63 ++++++++++++++++++++-------------------
1 file changed, 33 insertions(+), 30 deletions(-)

--
2.32.0.93.g670b81a890-goog

\
 
 \ /
  Last update: 2021-07-09 05:36    [W:0.120 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site