diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2019-09-06 14:14:48 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-09-11 12:34:29 +0200 |
commit | 3fc1ca00653db6371585e3c21c4b873b2f20e60a (patch) | |
tree | 0c6b5431d51319a078b036284c81ed12b7f55b54 /kernel/dma/direct.c | |
parent | 2c70010867f164d1b30e787e360e05d10cc40046 (diff) | |
download | lwn-3fc1ca00653db6371585e3c21c4b873b2f20e60a.tar.gz lwn-3fc1ca00653db6371585e3c21c4b873b2f20e60a.zip |
swiotlb: Split size parameter to map/unmap APIs
This splits the size parameter to swiotlb_tbl_map_single() and
swiotlb_tbl_unmap_single() into an alloc_size and a mapping_size
parameter, where the latter one is rounded up to the iommu page
size.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'kernel/dma/direct.c')
-rw-r--r-- | kernel/dma/direct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 795c9b095d75..a7f2a0163426 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma/direct.c @@ -297,7 +297,7 @@ void dma_direct_unmap_page(struct device *dev, dma_addr_t addr, dma_direct_sync_single_for_cpu(dev, addr, size, dir); if (unlikely(is_swiotlb_buffer(phys))) - swiotlb_tbl_unmap_single(dev, phys, size, dir, attrs); + swiotlb_tbl_unmap_single(dev, phys, size, size, dir, attrs); } EXPORT_SYMBOL(dma_direct_unmap_page); |