[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1525691185-55657-1-git-send-email-xieyisheng1@huawei.com>
Date: Mon, 7 May 2018 19:06:25 +0800
From: Yisheng Xie <xieyisheng1@...wei.com>
To: <konrad.wilk@...cle.com>, <mingo@...nel.org>, <hch@....de>
CC: <iommu@...ts.linux-foundation.org>, <linux-kernel@...r.kernel.org>,
Yisheng Xie <xieyisheng1@...wei.com>
Subject: [PATCH] swiotlb: Update the comment of swiotlb
swiotlb use physical address of bounce buffer when do map and unmap,
therefore, related comment should be updated.
Signed-off-by: Yisheng Xie <xieyisheng1@...wei.com>
---
lib/swiotlb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index fece575..e3d9445 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -593,9 +593,8 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
}
/*
- * 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 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
}
/*
- * 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,
--
1.7.12.4
Powered by blists - more mailing lists