lkml.org 
[lkml]   [2001]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: %u-order allocation failed
    Date
    >
    >You are right. Code that allocates more than page and expects it to be
    >physicaly contignuous is broken by design. Even rewrite the driver or
    >allocate memory on boot. It will be very hard to audit all drivers for it.

    Well, the problem here is not code. Some piece of hardware just can't
    scatter gather, or in some case, they can, but the scatter/gather list
    itself has to be contiguous and can be larger than a page.

    The fact that kmalloc returns physically contiguous memory is a feature
    and can't be modified that easily. If you intend to do so, then you need
    different GFP flags, for example a GFP_CONTIGUOUS flag, and then make
    sure that drivers allocating DMA memory use that new flag.

    Ben.


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:04    [W:10.072 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site