[zynq] zynq_dmamgmt_alloc uses GFP_DMA to allocate DMA stream memory
The flag GFP_DMA
as used in zynq_dmamgmt
signalizes to dma_alloc_coherent
that it may only use the lower 16 MB of memory to remain ISA compatible. For zynq this limitation should not apply and the appropriate GFP flags should be used.
Overall GFP_KERNEL
should be enough for this use case. Additionally, the mask functions should be used to indicate that the DMA memory accessors are 32 bit capable: https://www.kernel.org/doc/Documentation/DMA-API.txt
int dma_set_mask(struct device *dev, u64 mask)
int dma_set_coherent_mask(struct device *dev, u64 mask)
Edited by Jaco Hofmann