Re: BUG: invalid MAX_DMA_ADDRESS macro for i386?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Aug 02 2001 - 09:19:56 EST


> Well, I have tracked down my problem. We see a comparison
> like this to determine whether to use a bounce buffer:
>
> if ( virt_to_bus(addr+buflen) >= MAX_DMA_ADDRESS) {
> ...(use a bounce buffer 'cause that addr is not dma-able)...
>
> This is not working, because MAX_DMA_ADDRESS is defined
> so:
>
> ./include/asm-i386/dma.h:
> #define MAX_DMA_ADDRESS (PAGE_OFFSET+0x1000000)

MAX_DMA_ADDRESS is intended for checking virtual addresses not bus
addresses.

Alan
-
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/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:20 EST