Message ID | 20210405210230.1707074-7-jxgao@google.com |
---|---|
State | Superseded |
Headers | show |
Series | preserve DMA offsets when using swiotlb | expand |
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index a3c0ccc53b8d..d1349971f099 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -639,7 +639,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 & ((1 << IO_TLB_SHIFT) - 1); switch (target) { case SYNC_FOR_CPU: