summaryrefslogtreecommitdiffstats
path: root/kernel/dma/swiotlb.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-05 10:44:16 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-02-22 14:40:29 -0500
commit16fc3cef33a04632ab6b31758abdd77563a20759 (patch)
treeccfa214fcd1f6e5084f1e540d4e8a54931c23f5e /kernel/dma/swiotlb.c
parent26a7e094783d482f3e125f09945a5bb1d867b2e6 (diff)
downloadlinux-16fc3cef33a04632ab6b31758abdd77563a20759.tar.gz
linux-16fc3cef33a04632ab6b31758abdd77563a20759.tar.bz2
linux-16fc3cef33a04632ab6b31758abdd77563a20759.zip
swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single
swiotlb_tbl_map_single currently nevers sets a tlb_addr that is not aligned to the tlb bucket size. But we're going to add such a case soon, for which this adjustment would be bogus. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Jianxiong Gao <jxgao@google.com> Tested-by: Jianxiong Gao <jxgao@google.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/dma/swiotlb.c')
-rw-r--r--kernel/dma/swiotlb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c
index 6962cb4efb08..bf063badda1d 100644
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -660,7 +660,6 @@ void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr,
if (orig_addr == INVALID_PHYS_ADDR)
return;
- orig_addr += (unsigned long)tlb_addr & (IO_TLB_SIZE - 1);
switch (target) {
case SYNC_FOR_CPU: