Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

swiotlb: update comments to refer to physical instead of virtual addresses

swiotlb use physical address of bounce buffer when do map and unmap,
therefore, related comment should be updated.

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>

authored by

Yisheng Xie and committed by
Christoph Hellwig
d0c8ba40 30fd6427

+2 -3
+2 -3
lib/swiotlb.c
··· 593 593 } 594 594 595 595 /* 596 - * Allocates bounce buffer and returns its kernel virtual address. 596 + * Allocates bounce buffer and returns its physical address. 597 597 */ 598 - 599 598 static phys_addr_t 600 599 map_single(struct device *hwdev, phys_addr_t phys, size_t size, 601 600 enum dma_data_direction dir, unsigned long attrs) ··· 613 614 } 614 615 615 616 /* 616 - * dma_addr is the kernel virtual address of the bounce buffer to unmap. 617 + * tlb_addr is the physical address of the bounce buffer to unmap. 617 618 */ 618 619 void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr, 619 620 size_t size, enum dma_data_direction dir,