Return-Path: Received: from mail-qy0-f123.google.com (mail-qy0-f123.google.com [209.85.221.123]) by ozlabs.org (Postfix) with ESMTP id E9A31DDE98 for ; Tue, 28 Apr 2009 00:31:14 +1000 (EST) Received: by qyk29 with SMTP id 29so6008757qyk.17 for ; Mon, 27 Apr 2009 07:31:13 -0700 (PDT) MIME-Version: 1.0 Sender: timur.tabi@gmail.com In-Reply-To: References: <20090424183517.GB23140@ovro.caltech.edu> Date: Mon, 27 Apr 2009 09:31:12 -0500 Message-ID: Subject: Re: [PATCH] fsldma: use PCI Read Multiple command From: Timur Tabi To: Liu Dave-R63238 Content-Type: text/plain; charset=ISO-8859-1 Cc: Ira Snyder , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Dan Williams , Zhang Wei List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Apr 27, 2009 at 4:09 AM, Liu Dave-R63238 wrote: > You are assuming the PCI memory space is prefetchable( no side effect) > for DMA. > Is it possible that DMA is from non-prefetchable memory space? This should be a safe assumption for this driver. Remember, this driver just does offload memcpy, from one region to another. So the PCI memory that you are reading from should be just a buffer of data, and there should be side-effect of reading it. However, I would like to see a comment at the top of the file warning people that copying from PCI memory will result in prefetched reads. -- Timur Tabi Linux kernel developer at Freescale