• Z
    ipw2200: firmware DMA loading rework · 11ebd1bf
    Zhu Yi 提交于
    Bartlomiej Zolnierkiewicz reported an atomic order-6 allocation failure
    for ipw2200 firmware loading in kernel 2.6.30. High order allocation is
    likely to fail and should always be avoided.
    
    The patch fixes this problem by replacing the original order-6
    pci_alloc_consistent() with an array of order-1 pages from a pci pool.
    This utilized the ipw2200 DMA command blocks (up to 64 slots). The
    maximum firmware size support remains the same (64*8K).
    
    This patch fixes bug http://bugzilla.kernel.org/show_bug.cgi?id=14016
    
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Mel Gorman <mel@csn.ul.ie>
    Signed-off-by: NZhu Yi <yi.zhu@intel.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    11ebd1bf
ipw2200.c 323.8 KB