]> git.baikalelectronics.ru Git - kernel.git/commit
arm: use swiotlb for bounce buffering on LPAE configs
authorChristoph Hellwig <hch@lst.de>
Tue, 23 Jul 2019 09:33:12 +0000 (11:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 24 Jul 2019 15:29:01 +0000 (17:29 +0200)
commit96ea560103b06d98aa868ad6c2395c6db31cca52
tree047eca0078eb5dc66bedf61319e3cea0b071870d
parenta2b9bf7a92e2909fa4e23edf439a5d9a19d8aec5
arm: use swiotlb for bounce buffering on LPAE configs

The DMA API requires that 32-bit DMA masks are always supported, but on
arm LPAE configs they do not currently work when memory is present
above 4GB.  Wire up the swiotlb code like for all other architectures
to provide the bounce buffering in that case.

Fixes: f1164aae53b87 ("scsi: reduce use of block bounce buffers").
Reported-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm/include/asm/dma-mapping.h
arch/arm/mm/Kconfig
arch/arm/mm/dma-mapping.c
arch/arm/mm/init.c