Re: [PATCH 1/2] dma-direct: Don't repeat allocation for no-op GFP_DMA

2018-04-23 Thread Christoph Hellwig
Thanks, applied to the dma-mapping tree for 4.17.

[PATCH 1/2] dma-direct: Don't repeat allocation for no-op GFP_DMA

2018-04-15 Thread Takashi Iwai
When an allocation with lower dma_coherent mask fails, dma_direct_alloc() retries the allocation with GFP_DMA. But, it's useless for architectures that has no ZONE_DMA, obviously. Fix it by adding the check of CONFIG_ZONE_DMA before retrying the allocation. Fixes: 95f183916d4b ("dma-direct: retr