OSDN Git Service

ALSA: asihpi: don't pass GFP_DMA32 to dma_alloc_coherent
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 15:17:03 +0000 (17:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 14 Oct 2018 07:40:24 +0000 (09:40 +0200)
The DMA API does its own zone decisions based on the coherent_dma_mask.

[ Note: as the driver doesn't set the DMA coherent mask, we can assume
  the default 32bit DMA, hence it should be safe to drop the flag here
  -- tiwai ]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpios.c

index 5ef4fe9..7c91330 100644 (file)
@@ -49,7 +49,7 @@ u16 hpios_locked_mem_alloc(struct consistent_dma_area *p_mem_area, u32 size,
        /*?? any benefit in using managed dmam_alloc_coherent? */
        p_mem_area->vaddr =
                dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle,
-               GFP_DMA32 | GFP_KERNEL);
+               GFP_KERNEL);
 
        if (p_mem_area->vaddr) {
                HPI_DEBUG_LOG(DEBUG, "allocated %d bytes, dma 0x%x vma %p\n",