From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: ALSA fixes for non-coherent archs (Re: [PATCH] Sam440ep support) Date: Thu, 15 May 2008 07:42:35 +0200 Message-ID: References: <6DA6B1DA-11B5-4B89-88AD-561B4D17B33B@kernel.crashing.org> <20080505195054.172000@gmx.net> <1210031058.21644.120.camel@pasglop> <20080506075115.269150@gmx.net> <1210063719.21644.162.camel@pasglop> <20080506091622.269180@gmx.net> <20080514210110.155050@gmx.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 1BBE9246CB for ; Thu, 15 May 2008 07:42:36 +0200 (CEST) In-Reply-To: <20080514210110.155050@gmx.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Gerhard Pircher Cc: linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, galak@kernel.crashing.org, cjg@cruxppc.org, benh@kernel.crashing.org List-Id: alsa-devel@alsa-project.org At Wed, 14 May 2008 23:01:10 +0200, Gerhard Pircher wrote: > > > -------- Original-Nachricht -------- > > Datum: Wed, 14 May 2008 14:26:53 +0200 > > Von: Takashi Iwai > > An: "Gerhard Pircher" > > CC: benh@kernel.crashing.org, galak@kernel.crashing.org, cjg@cruxppc.org, linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org > > Betreff: ALSA fixes for non-coherent archs (Re: [PATCH] Sam440ep support) > > > At Tue, 06 May 2008 11:16:22 +0200, > > Gerhard Pircher wrote: > > > > > > Naturally I can do some tests, if you or Takashi come up with a new > > > patch. > > > > OK, here is another patch for testing. Since I lost my old patch > > somewhere (and it's not worth to dig the archive), I wrote it up > > quickly from scratch. This version should cover both SG and non-SG > > buffers. It's against the latest git tree. > > > > The patch adds a hackish verison of dma_mmap_coherent() for some > > architectures in sound/core/pcm_native.c. I'm not sure whether this > > works. I just tested it on X86. It'd be appreciated if someone can > > test this. > > > > Also, this disables HDSPM driver for non-X86/IA64 since the driver has > > own copy and silence methods that are incompatible with the new > > SG-buffer data. > > > > > > And, yes, I know we need to clean up huge messes in ALSA memory > > handling routines. But, let's fix obvious bugs before starting a big > > rewrite... > Okay, it seems to work fine so far. No lock-ups or kernel oopses. Tested > with kernel v2.6.26-rc2 and a Soundblaster 5.1/EMU10k1 device (which was > not working with the old patch) on my non cache coherent G4 system. Good to hear. The next step is to move dma_mmap_coherent() to arch/* directories... Takashi