From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gerhard Pircher" Subject: Re: RFC: dma_mmap_coherent() for powerpc/ppc architecture and ALSA? Date: Fri, 30 Jun 2006 20:21:44 +0200 Message-ID: <20060630182144.27980@gmx.net> References: <20060628202753.198630@gmx.net> <20060629211513.64980@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Takashi Iwai Cc: linuxppc-dev@ozlabs.org, rlrevell@joe-job.com, alsa-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org List-Id: alsa-devel@alsa-project.org -------- Original-Nachricht -------- Datum: Fri, 30 Jun 2006 11:12:00 +0200 Von: Takashi Iwai An: Gerhard Pircher Betreff: Re: [Alsa-devel] RFC: dma_mmap_coherent() for powerpc/ppc architec= ture and ALSA? > = > What is the type of buffer are you using? If it's a buffer > pre-allocated via snd_pcm_lib_preallocate*() with SNDRV_DMA_TYPE_DEV, > there should be no snd_pcm_mmap_data_nopage call. For other types, > there can be. For example, the patch still doesn't solve the problems > with drivers using sg-buffer. > = I added a debug output and it shows a buffer of SNDRV_DMA_TYPE_DEV_SG type.= Well, then I'll hack the kernel to use the normal DMA allocation functions= for ALSA instead of the non cache coherent ones and will wait until the AL= SA core has been adapted for dma_mmap_coherent(). Or what would have to be done to get it working for SG buffers? Thanks! Gerhard -- = Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1= 21642 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by ozlabs.org (Postfix) with SMTP id A2C3667B5E for ; Sat, 1 Jul 2006 04:21:46 +1000 (EST) Content-Type: text/plain; charset="iso-8859-1" Date: Fri, 30 Jun 2006 20:21:44 +0200 From: "Gerhard Pircher" In-Reply-To: Message-ID: <20060630182144.27980@gmx.net> MIME-Version: 1.0 References: <20060628202753.198630@gmx.net> <20060629211513.64980@gmx.net> Subject: Re: [Alsa-devel] RFC: dma_mmap_coherent() for powerpc/ppc architecture and ALSA? To: Takashi Iwai Cc: linuxppc-dev@ozlabs.org, rlrevell@joe-job.com, alsa-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , -------- Original-Nachricht -------- Datum: Fri, 30 Jun 2006 11:12:00 +0200 Von: Takashi Iwai An: Gerhard Pircher Betreff: Re: [Alsa-devel] RFC: dma_mmap_coherent() for powerpc/ppc architecture and ALSA? > > What is the type of buffer are you using? If it's a buffer > pre-allocated via snd_pcm_lib_preallocate*() with SNDRV_DMA_TYPE_DEV, > there should be no snd_pcm_mmap_data_nopage call. For other types, > there can be. For example, the patch still doesn't solve the problems > with drivers using sg-buffer. > I added a debug output and it shows a buffer of SNDRV_DMA_TYPE_DEV_SG type. Well, then I'll hack the kernel to use the normal DMA allocation functions for ALSA instead of the non cache coherent ones and will wait until the ALSA core has been adapted for dma_mmap_coherent(). Or what would have to be done to get it working for SG buffers? Thanks! Gerhard -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer