Skip to content

Commit 16fc3ce

Browse files
Christoph Hellwigkonradwilk
authored andcommitted
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 <[email protected]> Acked-by: Jianxiong Gao <[email protected]> Tested-by: Jianxiong Gao <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
1 parent 26a7e09 commit 16fc3ce

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/dma/swiotlb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,6 @@ void swiotlb_tbl_sync_single(struct device *hwdev, phys_addr_t tlb_addr,
660660

661661
if (orig_addr == INVALID_PHYS_ADDR)
662662
return;
663-
orig_addr += (unsigned long)tlb_addr & (IO_TLB_SIZE - 1);
664663

665664
switch (target) {
666665
case SYNC_FOR_CPU:

0 commit comments

Comments
 (0)