]> git.itanic.dy.fi Git - linux-stable/commit
dma-direct: don't check swiotlb=force in dma_direct_map_resource
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2019 16:35:36 +0000 (17:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:08 +0000 (10:01 +0100)
commitb8444fa88da81f66e27b278907ff63be09d75fd1
treef09a11326b1c41513828906b4ce45390873a65a0
parent0812e7de492804b3d31048cc0b1c941769b79553
dma-direct: don't check swiotlb=force in dma_direct_map_resource

[ Upstream commit 4268ac6ae5870af10a7417b22990d615f72f77e2 ]

When mapping resources we can't just use swiotlb ram for bounce
buffering.  Switch to a direct dma_capable check instead.

Fixes: cfced786969c ("dma-mapping: remove the default map_resource implementation")
Reported-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/direct.c