Takashi Iwai 504a918e67 dma-direct: don't retry allocation for no-op GFP_DMA
When an allocation with lower dma_coherent mask fails, dma_direct_alloc()
retries the allocation with GFP_DMA.  But, this is useless for
architectures that hav no ZONE_DMA.

Fix it by adding the check of CONFIG_ZONE_DMA before retrying the
allocation.

Fixes: 95f183916d4b ("dma-direct: retry allocations using GFP_DMA for small masks")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-04-23 14:43:27 +02:00
..
2017-12-22 19:39:09 +11:00
2018-04-07 12:08:19 -07:00
2017-12-01 13:09:40 -08:00
2017-12-01 13:09:40 -08:00
2017-12-01 13:09:40 -08:00
2018-02-06 18:32:44 -08:00
2018-01-01 12:40:27 -07:00
2014-04-30 19:49:37 +01:00
2018-02-06 18:32:44 -08:00
2017-10-07 10:45:14 -06:00
2017-02-24 17:46:57 -08:00
2018-02-26 14:39:30 -05:00
2018-03-21 17:18:34 -05:00
2018-02-06 18:32:47 -08:00
2018-03-27 11:15:42 +02:00
2018-04-12 09:41:19 -07:00
2017-12-01 13:09:40 -08:00
2018-04-11 10:28:35 -07:00
2017-12-01 13:09:40 -08:00
2016-12-06 10:17:03 +02:00
2018-03-31 23:25:39 -04:00
2017-12-01 13:09:40 -08:00
2017-08-15 09:02:07 -07:00