Message ID | 20210405205109.1700468-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 dbd6cda6ace6..faf51614f02e 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: