AFAIK, when dealing with DMA, the memory _should_ be allocated under
the 16MB limit. If you are using a static buffer, there is no guarantee
that you've got it loaded under 16MB (I believe). There may also be
alignment issues with a static buffer too. I know that 16MB
is moot with the address space of PCI, but if you're using the DMA
hardware on the motherboard, it's not moot. So, I would think that
using the allocated memory (then throwing it away, as I believe you
intend to do) is a much safer option. I believe that the appropriate
flags would be GFP_DMA for kmalloc (I *think*).
> Just my 0.02 EURO.
> If your driver is loaded as a module then I would think your buffer
> space is allocated using vmalloc().
> Since I never used vir_to_bus() for vmallocced memory and I never
> got problems using such an address translation, this could well be
> the cause of the problem.
> Just a very cheap idea. :-)
-- Perry Harrington Linux rules all OSes. APSoft () email: firstname.lastname@example.org Think Blue. /\
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com