Skip to content
Commit a5008b59 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-direct: only limit the mapping size if swiotlb could be used

Don't just check for a swiotlb buffer, but also if buffering might
be required for this particular device.

Fixes: 133d624b

 ("dma: Introduce dma_max_mapping_size()")
Reported-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent b8664554
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment