Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266541AbUFVDTy (ORCPT ); Mon, 21 Jun 2004 23:19:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266543AbUFVDTy (ORCPT ); Mon, 21 Jun 2004 23:19:54 -0400 Received: from fw.osdl.org ([65.172.181.6]:58259 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S266541AbUFVDTw (ORCPT ); Mon, 21 Jun 2004 23:19:52 -0400 Date: Mon, 21 Jun 2004 20:18:22 -0700 (PDT) From: Linus Torvalds To: Jeff Garzik cc: Russell King , Takashi Iwai , Matt Porter , Jamey Hicks , Ian Molton , linux-kernel@vger.kernel.org, greg@kroah.com, tony@atomide.com, david-b@pacbell.net, joshua@joshuawise.com Subject: Re: DMA API issues In-Reply-To: <40D7941F.3020909@pobox.com> Message-ID: References: <20040618175902.778e616a.spyro@f2s.com> <20040618110721.B3851@home.com> <40D3356E.8040800@hp.com> <20040618122112.D3851@home.com> <20040618204322.C17516@flint.arm.linux.org.uk> <20040622000838.B7802@flint.arm.linux.org.uk> <40D7941F.3020909@pobox.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 24 On Mon, 21 Jun 2004, Jeff Garzik wrote: > > When I was writing sound/oss/via82cxxx_audio.c, Linus specifically > recommended using ->nopage, which worked out quite well (modulo cleaning > up VM_xxx flags). It does need some architecture-specific support for getting the caching behaviour right, but I do believe that as long as there is some "struct page" that can be returned, together with a way of setting the vm_page_prot bits right, it should be ok. The argument at some point was that some architectures may not even _have_ a "struct page" for DMA memory, since it's not "normal" memory (ie "slow memory" on m68k). However, I thought we all agreed that such a "struct page" could be furnished if that architecture wants so support mmap'ing. Linus - 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/