xtensa: use the generic uncached segment support
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Oct 2019 09:53:30 +0000 (10:53 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 09:52:18 +0000 (10:52 +0100)
commit0f665b9e2a6d4cc963e6cd349d40320ed5281f95
tree2a5c08bc905e69cc1219a3148373c1db60fcbde9
parent3acac065508f6cc60ac9d3e4b7c6cc37fd91d531
xtensa: use the generic uncached segment support

Switch xtensa over to use the generic uncached support, and thus the
generic implementations of dma_alloc_* and dma_alloc_*, which also
gains support for mmaping DMA memory.  The non-working nommu DMA
support has been disabled, but could be re-enabled easily if platforms
that actually have an uncached segment show up.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/include/asm/platform.h
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/pci-dma.c