]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
swiotlb: do not panic on mapping failures
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Apr 2018 08:38:08 +0000 (10:38 +0200)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:15 +0000 (14:21 -0300)
commit06e236669fb95f10a6e8a2a34a61b2d85b52fb06
tree5b43a2e6b88e83cf7cf468f3142531f5c17805f8
parent82eb02a065e7fbb6c90bfb5ffa4dfa45fb190858
swiotlb: do not panic on mapping failures

BugLink: https://bugs.launchpad.net/bugs/1854975
[ Upstream commit 8088546832aa2c0d8f99dd56edf6384f8a9b63b3 ]

All properly written drivers now have error handling in the
dma_map_single / dma_map_page callers.  As swiotlb_tbl_map_single already
prints a useful warning when running out of swiotlb pool space we can
also remove swiotlb_full entirely as it serves no purpose now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
lib/swiotlb.c