Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 1FBF1DDE9E for ; Wed, 9 Jul 2008 23:27:22 +1000 (EST) Date: Wed, 09 Jul 2008 19:27:11 +0200 Message-ID: From: Takashi Iwai To: "Gerhard Pircher" Subject: Re: [PATCH 0/3] ALSA fixes for non-coherent ppc32 In-Reply-To: <20080709083111.44860@gmx.net> References: <20080709083111.44860@gmx.net> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , At Wed, 09 Jul 2008 10:31:11 +0200, Gerhard Pircher wrote: > > Hi, > > -------- Original-Nachricht -------- > > Datum: Wed, 18 Jun 2008 12:38:31 +0200 > > Von: Takashi Iwai > > An: benh@kernel.crashing.org > > CC: linuxppc-dev@ozlabs.org, cjg@cruxppc.org > > Betreff: [PATCH 0/3] ALSA fixes for non-coherent ppc32 > > > Hi, > > > > I've tried to renew the fixes of ALSA issues about non-coherent DMA > > memories. The last patch worked for SG-buffers somehow but would > > result in a problem if many pages are allocated because of > > dma_alloc_coherent() handling. Now, I chose a more simpler > > workaround: the SG-buffers are handled as simple continuous buffers. > > > > This time I split the patches to several parts. The first patch > > contains a very lazy dma_mmap_coherent() implementation for ppc32. > > The next patch adds the call of dma_mmap_coherent() for the default > > mmap of ALSA PCM. And the last one is to add the conversion of > > SG-buffer handling as above. > > > > The patches are created against the latest ALSA tree, and the last > > patch won't be applicable fully to 2.6.26-rc6. But, it's only for > > snd-hda-intel and there is no PPC32 hardware supporting this, AFAIK. > > So just ignore the reject. > > > > The patches are found also on my git tree, dma-fix branch of > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git > > > > Any comments and test reports are appreciated, especially about > > dma_mmap_coherent() addition. > I know this answer comes a little bit late, but my PPC machine was not > working for two weeks due to a hardware failure. I tested the patch on > 2.6.26-rc9 and it seems to work fine so far with my emu10k soundcard. > I just had to add "#include " to pcm_native.c. > Otherwise it wouldn't compile. Thanks, I fixed it now on my git tree. Takashi