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)
commitad3c7b18c5b362be5dbd0f2c0bcf1fd5fd659315
tree047eca0078eb5dc66bedf61319e3cea0b071870d
parent66d7780f18eae0232827fcffeaded39a6a168236
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: 21e07dba9fb11 ("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