Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757740AbZFISzE (ORCPT ); Tue, 9 Jun 2009 14:55:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752686AbZFISyz (ORCPT ); Tue, 9 Jun 2009 14:54:55 -0400 Received: from mail-bw0-f213.google.com ([209.85.218.213]:47265 "EHLO mail-bw0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386AbZFISyy convert rfc822-to-8bit (ORCPT ); Tue, 9 Jun 2009 14:54:54 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=OPZ5VNiZWrweryKX3VW+namddlpMP2bFY7hGe8RArkoM1MhrGgbbeMjrScFOBdoocV zWjhZYakhshrV04Utv9EUAEIT1phjNxejtdoF0f2kW1ibWTgVGBPaUr0rhSoH25NWYsF Mr0DtDhYRX69roYHnx4XbCLSY8DI3TBb0lVDs= MIME-Version: 1.0 In-Reply-To: <1244572446.5497.32.camel@subratamodak.linux.ibm.com> References: <20090605182625.24093.7808.sendpatchset@elm3a191.beaverton.ibm.com> <1244261806.31984.36.camel@pasglop> <20090606055103.GA9446@kroah.com> <200906060936.22322.fmhess@speakeasy.net> <1244385405.5265.7.camel@subratamodak.linux.ibm.com> <1244519418.5235.2.camel@pasglop> <1244572446.5497.32.camel@subratamodak.linux.ibm.com> Date: Tue, 9 Jun 2009 20:54:54 +0200 X-Google-Sender-Auth: 8ba5a046bb56407a Message-ID: <10f740e80906091154p60babd99t8452696ec7ccc8f3@mail.gmail.com> Subject: Re: [BUILD FAILURE 01/04] Next June 04:PPC64 randconfig [drivers/staging/comedi/drivers.o] From: Geert Uytterhoeven To: subrata@linux.vnet.ibm.com Cc: Benjamin Herrenschmidt , Greg KH , fmhess@users.sourceforge.net, Ian Abbott , David Miller , sachinp@linux.vnet.ibm.com, sfr@canb.auug.org.au, linux-kernel@vger.kernel.org, Linuxppc-dev@ozlabs.org, linux-next@vger.kernel.org, paulus@samba.org, Geert.Uytterhoeven@sonycom.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2510 Lines: 54 On Tue, Jun 9, 2009 at 20:34, Subrata Modak wrote: > On Tue, 2009-06-09 at 13:50 +1000, Benjamin Herrenschmidt wrote: >> On Sun, 2009-06-07 at 20:06 +0530, Subrata Modak wrote: >> > On Sat, 2009-06-06 at 09:36 -0400, Frank Mori Hess wrote: >> > > On Saturday 06 June 2009, Greg KH wrote: >> > > > Frank and Ian, any thoughts about the vmap call in the >> > > > comedi_buf_alloc() call?  Why is it using PAGE_KERNEL_NOCACHE, and what >> > > > is the prealloc_buf buffer used for? >> > > >> > > It is a circular buffer used to hold data streaming either to or from a >> > > board (for example when producing an analog output waveform).  Reads and >> > > writes to the device files read/write to the circular buffer, plus a few >> > > drivers do dma directly to/from it.  I personally don't have a problem >> > > with requiring drivers to have their own dma buffers and making them copy >> > > data between their private dma buffers and the main circular buffer.  I >> > > guess the original design wanted to support zero-copy dma. >> > >> > Great to hear that. How about a patch that solves my build problem on >> > PPC64(the problem seems to be existing for long) ? >> >> In any case, doing PAGE_KERNEL_NOCACHE for DMA memory is incorrect on >> many architectures. So at this stage, there's no much option but ifdef I >> suspect for now until this is fixed properly. > > Ok. But, i am not sure whether Greg will agree to this. If, Ok, is the > following patch i sent earlier Ok ? > > http://lkml.org/lkml/2009/6/5/462, Your patch helps powerpc only. Compilation is still broken on most other architectures. >> It does make sense to want to have some memory like that shared between >> user space and DMA, though I don't know what the right approach that >> works on all archs is at this stage. Worth asking the Alsa guys, I think >> they have similar issues :-) >> >> But doing double buffering might do the trick fine for now. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- 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/