Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754167Ab1EWI2F (ORCPT ); Mon, 23 May 2011 04:28:05 -0400 Received: from smtprelay06.ispgateway.de ([80.67.31.101]:33837 "EHLO smtprelay06.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754114Ab1EWI2B (ORCPT ); Mon, 23 May 2011 04:28:01 -0400 Message-ID: <4DDA1B18.3080201@ladisch.de> Date: Mon, 23 May 2011 10:30:16 +0200 From: Clemens Ladisch User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Leon Woestenberg CC: Takashi Iwai , Konrad Rzeszutek Wilk , linux-pci@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: mmap() implementation for pci_alloc_consistent() memory? References: <20110519145921.GE9854@dumpdata.com> <4DD53E2B.2090002@ladisch.de> <4DD60F57.8030000@ladisch.de> In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Df-Sender: linux-kernel@cl.domainfactory-kunde.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 677 Lines: 20 Leon Woestenberg wrote: > Having dma_mmap_coherent() there is good for one or two archs, but how > can we built portable drivers if the others arch's are still missing? Easy: Resolve all issues, implement it for all the other arches, and add it to the official DMA API. > How would dma_mmap_coherent() look like on x86? X86 and some others are always coherent; just use vm_insert_page() or remap_page_range(). Regards, Clemens -- 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/