Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753458AbZKPROK (ORCPT ); Mon, 16 Nov 2009 12:14:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752921AbZKPROK (ORCPT ); Mon, 16 Nov 2009 12:14:10 -0500 Received: from cantor.suse.de ([195.135.220.2]:46521 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521AbZKPROJ (ORCPT ); Mon, 16 Nov 2009 12:14:09 -0500 Date: Mon, 16 Nov 2009 18:14:14 +0100 Message-ID: From: Takashi Iwai To: Ralf Baechle Cc: Wu Zhangjin , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Wu Zhangjin Subject: Re: [PATCH] MIPS: Fixups of ALSA memory maps In-Reply-To: <20091116170641.GD14948@linux-mips.org> References: <9cbcd06037c18288a6493459b8f3a6e1562eca77.1258389992.git.wuzhangjin@gmail.com> <20091116170641.GD14948@linux-mips.org> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1856 Lines: 54 At Mon, 16 Nov 2009 18:06:41 +0100, Ralf Baechle wrote: > > On Tue, Nov 17, 2009 at 12:48:14AM +0800, Wu Zhangjin wrote: > > > Seems this is MIPS specific, but it's not that easy to move this patch > > into the arch/mips part, So, any better solution? > > > > Thanks & Regards, > > Wu Zhangjin > > > > ------------------------ > > > > The user application mmap audio dma regions must be dma-coherent. This > > patch fix it. > > > > Without this patch, artsd will fail on boot, and mplayer will exit with > > "Segmentation fault". (this happens on YeeLoong netbook, fuloong2f > > mini pc with snd_cs5535 audio card) > > > > This is originally from the to-mips branch of > > http://dev.lemote.com/code/linux_loongson, and contributed by Yanhua > > from Lemote Inc. > > > > Reported-by: qiaochong > > Signed-off-by: Wu Zhangjin > > This issue is an old ghost still around, see: > > http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20060124.132832.37533152.nemoto%40toshiba-tops.co.jp > > which is a superset of your proposed patch and which itself is refering to > an even older posting from 2003: > > http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20030523215935.71373.qmail%40web11901.mail.yahoo.com > > The #ifdef'ed solution doesn't cut it for sure. Let's see what better we > can find ... Indeed. My preference option is to deploy dma_mmap_coherent() to possible architectures and use it commonly in the ALSA core code. But, as a temporary workaround, I'm fine with ifdef until the API is defined... thanks, Takashi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/