lkml.org 
[lkml]   [2008]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: swiotlb_alloc_coherent: allocated memory is out of range for device
    At Thu, 23 Oct 2008 07:22:09 +0200,
    I wrote:
    >
    > > The current dma_alloc_coherent (asm-x86/dma-mapping.h) handles the gfp
    > > flags in the exact same way as the old dma_alloc_coherent
    > > (pci-dma.c). Neither sets GFP_DMA even if coherent_dma_mask is
    > > 24bits. The old code is fine because of the GFP_DMA retry
    > > mechanism. But if coherent_dma_mask is 24bits, there is no point to go
    > > into the GFP_DMA retry mechanism. We should use GFP_DMA in the first
    > > place.
    > >
    > > How about the following patch?
    >
    > I'll give it a try later (the machine is in my office).

    The patch seems working fine. Thanks!

    Tested-by: Takashi Iwai <tiwai@suse.de>


    Takashi


    \
     
     \ /
      Last update: 2008-10-23 12:01    [W:0.021 / U:0.476 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site