From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751862AbWF2J11 (ORCPT ); Thu, 29 Jun 2006 05:27:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751864AbWF2J11 (ORCPT ); Thu, 29 Jun 2006 05:27:27 -0400 Received: from ns2.suse.de ([195.135.220.15]:64166 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S1751862AbWF2J10 (ORCPT ); Thu, 29 Jun 2006 05:27:26 -0400 Date: Thu, 29 Jun 2006 11:27:15 +0200 Message-ID: From: Takashi Iwai To: "Gerhard Pircher" Cc: linuxppc-dev@ozlabs.org, rlrevell@joe-job.com, alsa-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, benh@kernel.crashing.org Subject: Re: [Alsa-devel] RFC: dma_mmap_coherent() for powerpc/ppc architecture and ALSA? In-Reply-To: <20060628202753.198630@gmx.net> References: <20060628202753.198630@gmx.net> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta25) (eggplant) (+CVS-20060326) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org At Wed, 28 Jun 2006 22:27:53 +0200, Gerhard Pircher wrote: > > Hi, > > It took a little bit longer to integrate the patch, as I didn't figure out first how to implement the __dma_mmap_coherent() function for PPC systems with CONFIG_NOT_COHERENT_CACHE defined. :) > > Unfortunately my system still crashes within snd_pcm_mmap_data_nopage() > (sound/core/pcm_native.c), as you can see below. I guess it tries to remap > a DMA buffer allocated by the not cache coherent DMA memory allocation > function in arch/ppc/kernel/dma-mapping.c. Strange, nopage will be never called if you apply my patch and modify to use dma_mmap_coherent(). Takashi