From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail128.messagelabs.com (mail128.messagelabs.com [216.82.250.131]) by ozlabs.org (Postfix) with SMTP id 9FE88DDE2F for ; Sat, 20 Jan 2007 06:48:30 +1100 (EST) Received: from il06exr02.mot.com (il06exr02.mot.com [129.188.137.132]) by motgate8.mot.com (8.12.11/Motorola) with ESMTP id l0JJmOHR018740 for ; Fri, 19 Jan 2007 12:48:24 -0700 (MST) Received: from de01exm60.ds.mot.com (de01exm60.am.mot.com [10.176.8.105]) by il06exr02.mot.com (8.13.1/8.13.0) with ESMTP id l0JJmNLa020492 for ; Fri, 19 Jan 2007 13:48:24 -0600 (CST) Date: Fri, 19 Jan 2007 13:48:22 -0600 (Central Standard Time) From: T Ziomek To: Reyneke Subject: Re: Howto use PPC4xx memory to memory DMA In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: niklaus.giger@member.fsf.org, linuxppc-embedded List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: 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 |