]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
swiotlb: Introduce swiotlb_max_mapping_size()
authorJoerg Roedel <jroedel@suse.de>
Thu, 7 Feb 2019 11:59:13 +0000 (12:59 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 25 Mar 2019 15:45:25 +0000 (10:45 -0500)
commit8a9f7969332ee6a267929ac0b859bc5f01f58531
tree5d88e946d47c032849ba686cf2e3943affb3a3dc
parent2899f2e51f200bdcb29d555cb15799a1d5c4b06d
swiotlb: Introduce swiotlb_max_mapping_size()

BugLink: https://bugs.launchpad.net/bugs/1821607
commit abe420bfae528c92bd8cc5ecb62dc95672b1fd6f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/swiotlb.h
kernel/dma/swiotlb.c