On Monday 26 November 2007 17:00:06 Larry Finger wrote:
>  static int alloc_ringmemory(struct b43_dmaring *ring)
>  {
>       struct device *dev = ring->dev->dev->dev;
> +     gfp_t flags = GFP_KERNEL;
>  
> +     /* The specs call for 4K buffers for 30- and 32-bit DMA with 4K
> +      * alignment and 8K buffers for 64-bit DMA with 8K alignment. Testing
> +      * has shown that 4K is sufficient for the latter as long as the buffer
> +      * does not cross an 8K boundary.
> +      *
> +      * For unknown reasons - possibly a hardware error - the BCM4311 rev
> +      * 02, which uses 64-bit DMA, needs the ring buffer in very low memory,
> +      * which accounts for the GFP_DMA flag below.
> +      */
> +     if (ring->dma64)
> +             flags = GFP_DMA;

???


-- 
Greetings Michael.
_______________________________________________
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to