Howto use PPC4xx memory to memory DMA

T Ziomek ctz001 at email.mot.com
Sat Jan 20 06:48:22 EST 2007


On Fri, 19 Jan 2007, - Reyneke wrote:
> Here are a few things to check:
>
> 1. Your memory destination and source addresses are contiguous. You can get 
> this using something like:
>
> mem = (void*)__get_free_pages(GFP_KERNEL | GFP_DMA, get_order(size));
>
> 2. Your source and dest addresses are _bus_ addresses. You can get these by:
>
> source = virt_to_bus((u32 *)mem);

The above contradicts an email by Ben H back on 22 Dec:
<http://ozlabs.org/pipermail/linuxppc-embedded/2006-December/025546.html>
But I don't know enough to resolve the conflict...

Tom
-- 
   /"\  ASCII Ribbon Campaign   |
   \ /                          |   Email to user 'CTZ001'
    X        Against HTML       |             at 'email.mot.com'
   / \     in e-mail & news     |



More information about the Linuxppc-embedded mailing list