From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761353AbZFQBKH (ORCPT ); Tue, 16 Jun 2009 21:10:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751507AbZFQBJ5 (ORCPT ); Tue, 16 Jun 2009 21:09:57 -0400 Received: from gate.crashing.org ([63.228.1.57]:34504 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbZFQBJ4 (ORCPT ); Tue, 16 Jun 2009 21:09:56 -0400 Subject: Re: PowerPC PCI DMA issues (prefetch/coherency?) From: Benjamin Herrenschmidt To: FUJITA Tomonori Cc: arnd@arndb.de, scottwood@freescale.com, chris.pringle@oxtel.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <20090617093654B.fujita.tomonori@lab.ntt.co.jp> References: <4A37DB0F.7060801@freescale.com> <200906162002.12376.arnd@arndb.de> <1245197925.21602.0.camel@pasglop> <20090617093654B.fujita.tomonori@lab.ntt.co.jp> Content-Type: text/plain Date: Wed, 17 Jun 2009 11:07:30 +1000 Message-Id: <1245200850.21602.1.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2009-06-17 at 09:37 +0900, FUJITA Tomonori wrote: > > dma_cache_sync is supposed to be used only with the buffers that > dma_alloc_noncoherent() returns. On architecutures that maps > dma_alloc_noncoherent to dma_alloc_coherent, dma_cache_sync() is > supposed to be NOP. > Or at least a sync() on powerpc but yeah, I see. We should probably do that. Cheers, Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 59540B71BC for ; Wed, 17 Jun 2009 11:09:55 +1000 (EST) Subject: Re: PowerPC PCI DMA issues (prefetch/coherency?) From: Benjamin Herrenschmidt To: FUJITA Tomonori In-Reply-To: <20090617093654B.fujita.tomonori@lab.ntt.co.jp> References: <4A37DB0F.7060801@freescale.com> <200906162002.12376.arnd@arndb.de> <1245197925.21602.0.camel@pasglop> <20090617093654B.fujita.tomonori@lab.ntt.co.jp> Content-Type: text/plain Date: Wed, 17 Jun 2009 11:07:30 +1000 Message-Id: <1245200850.21602.1.camel@pasglop> Mime-Version: 1.0 Cc: scottwood@freescale.com, chris.pringle@oxtel.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, arnd@arndb.de List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2009-06-17 at 09:37 +0900, FUJITA Tomonori wrote: > > dma_cache_sync is supposed to be used only with the buffers that > dma_alloc_noncoherent() returns. On architecutures that maps > dma_alloc_noncoherent to dma_alloc_coherent, dma_cache_sync() is > supposed to be NOP. > Or at least a sync() on powerpc but yeah, I see. We should probably do that. Cheers, Ben.