Skip to content

Commit 85a5a68

Browse files
Jianxiong Gaogregkh
authored andcommitted
swiotlb: don't modify orig_addr in swiotlb_tbl_sync_single
commit: 16fc3ce 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> Signed-off-by: Jianxiong Gao <jxgao@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 25ed882 commit 85a5a68

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎kernel/dma/swiotlb.c‎

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

645645
if (orig_addr == INVALID_PHYS_ADDR)
646646
return;
647-
orig_addr += (unsigned long)tlb_addr & (IO_TLB_SIZE - 1);
648647

649648
switch (target) {
650649
case SYNC_FOR_CPU:

0 commit comments

Comments
 (0)