]> asedeno.scripts.mit.edu Git - linux.git/commit
swiotlb: Introduce swiotlb_max_mapping_size()
authorJoerg Roedel <jroedel@suse.de>
Thu, 7 Feb 2019 11:59:13 +0000 (12:59 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 6 Mar 2019 16:18:50 +0000 (11:18 -0500)
commitabe420bfae528c92bd8cc5ecb62dc95672b1fd6f
tree54603461fce846d9f72f3e3934cc2f96f3dd5d0c
parent1c163f4c7b3f621efff9b28a47abb36f7378d783
swiotlb: Introduce swiotlb_max_mapping_size()

The function returns the maximum size that can be remapped
by the SWIOTLB implementation. This function will be later
exposed to users through the DMA-API.

Cc: stable@vger.kernel.org
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/linux/swiotlb.h
kernel/dma/swiotlb.c