ARM/dma-mapping: take the bus limit into account in __dma_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Feb 2020 11:50:23 +0000 (12:50 +0100)
committerChristoph Hellwig <hch@lst.de>
Fri, 20 Mar 2020 10:43:21 +0000 (11:43 +0100)
commit7607cb733fbb6dfac88c4a85c113e8104c91733e
treed141333cdc3db651e770256defb2029e6ab1d02d
parentfd50924917f98f11554e3bf55b0d062e09bce541
ARM/dma-mapping: take the bus limit into account in __dma_alloc

The DMA coherent allocator needs to take bus limits into account for
picking the zone that the memory is allocated from.

Reported-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Roger Quadros <rogerq@ti.com>
arch/arm/mm/dma-mapping.c