lkml.org 
[lkml]   [2008]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] swiotlb: fix dma_alloc_coherent allocation failures with swiotlb
    From
    Date
    Joerg Roedel <joerg.roedel@amd.com> writes:

    > The SWIOTLB version of dma_alloc_coherent allocates all memory with
    > GFP_DMA unconditionally. This leads sometimes unnecessary to allocation
    > failures. This patch makes the allocation strategy to use the DMA32 zone
    > first if this is possible. The changes are boot tested on AMD64 and
    > compile tested for i386 and IA64.

    The high level dma_alloc_coherent() does that anyways.

    The swiotlb fallback really should only allocate from the swiotlb,
    nowhere else.

    -Andi


    \
     
     \ /
      Last update: 2008-09-04 00:13    [W:4.240 / U:0.176 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site