1. 24 5月, 2006 39 次提交
  2. 23 5月, 2006 1 次提交
    • D
      [SPARC64]: Respect gfp_t argument to dma_alloc_coherent(). · 42f14237
      David S. Miller 提交于
      Using asm-generic/dma-mapping.h does not work because pushing
      the call down to pci_alloc_coherent() causes the gfp_t argument
      of dma_alloc_coherent() to be ignored.
      
      Fix this by implementing things directly, and adding a gfp_t
      argument we can use in the internal call down to the PCI DMA
      implementation of pci_alloc_coherent().
      
      This fixes massive memory corruption when using the sound driver
      layer, which passes things like __GFP_COMP down into these
      routines and (correctly) expects that to work.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42f14237