]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
swiotlb: Add is_swiotlb_active() function
authorJoerg Roedel <jroedel@suse.de>
Thu, 7 Feb 2019 11:59:14 +0000 (12:59 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 25 Mar 2019 15:45:25 +0000 (10:45 -0500)
commit7e9a1306d325a6769fdb28ad9544eb50bcd39503
tree92d31e91457a4f2b5b8183c95989f7a92fdd8d5a
parent8a9f7969332ee6a267929ac0b859bc5f01f58531
swiotlb: Add is_swiotlb_active() function

BugLink: https://bugs.launchpad.net/bugs/1821607
commit 492366f7b4237257ef50ca9c431a6a0d50225aca upstream.

This function will be used from dma_direct code to determine
the maximum segment size of a dma mapping.

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