diff options
author | Yisheng Xie <xieyisheng1@huawei.com> | 2018-05-07 19:06:25 +0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-09 09:35:20 +0200 |
commit | d0c8ba40c6cc0fee18b0c458904e07817d6138e5 (patch) | |
tree | 0709d91861287fdb06eec966907f105bfae5a032 /lib/swiotlb.c | |
parent | 30fd642758773eb034b1543db26cf730ce12795c (diff) | |
download | op-kernel-dev-d0c8ba40c6cc0fee18b0c458904e07817d6138e5.zip op-kernel-dev-d0c8ba40c6cc0fee18b0c458904e07817d6138e5.tar.gz |
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>
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 69c732c..16ace0e 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -593,9 +593,8 @@ found: } /* - * Allocates bounce buffer and returns its kernel virtual address. + * Allocates bounce buffer and returns its physical address. */ - static phys_addr_t map_single(struct device *hwdev, phys_addr_t phys, size_t size, enum dma_data_direction dir, unsigned long attrs) @@ -614,7 +613,7 @@ map_single(struct device *hwdev, phys_addr_t phys, size_t size, } /* - * dma_addr is the kernel virtual address of the bounce buffer to unmap. + * tlb_addr is the physical address of the bounce buffer to unmap. */ void swiotlb_tbl_unmap_single(struct device *hwdev, phys_addr_t tlb_addr, size_t size, enum dma_data_direction dir, |