Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753151Ab0LWMU0 (ORCPT ); Thu, 23 Dec 2010 07:20:26 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:60804 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752587Ab0LWMUZ (ORCPT ); Thu, 23 Dec 2010 07:20:25 -0500 Date: Thu, 23 Dec 2010 12:19:18 +0000 From: Russell King - ARM Linux To: Marek Szyprowski Cc: "'Kyungmin Park'" , "'Michal Nazarewicz'" , linux-arm-kernel@lists.infradead.org, "'Daniel Walker'" , "'Johan MOSSBERG'" , "'Mel Gorman'" , linux-kernel@vger.kernel.org, "'Michal Nazarewicz'" , linux-mm@kvack.org, "'Ankita Garg'" , "'Andrew Morton'" , linux-media@vger.kernel.org, "'KAMEZAWA Hiroyuki'" Subject: Re: [PATCHv8 00/12] Contiguous Memory Allocator Message-ID: <20101223121917.GG3636@n2100.arm.linux.org.uk> References: <20101223100642.GD3636@n2100.arm.linux.org.uk> <00ea01cba290$4d67f500$e837df00$%szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00ea01cba290$4d67f500$e837df00$%szyprowski@samsung.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1472 Lines: 32 On Thu, Dec 23, 2010 at 11:58:08AM +0100, Marek Szyprowski wrote: > Actually this contiguous memory allocator is a better replacement for > alloc_pages() which is used by dma_alloc_coherent(). It is a generic > framework that is not tied only to ARM architecture. ... which is open to abuse. What I'm trying to find out is - if it can't be used for DMA, what is it to be used for? Or are we inventing an everything-but-ARM framework? > > In other words, do we _actually_ have a use for this which doesn't > > involve doing something like allocating 32MB of memory from it, > > remapping it so that it's DMA coherent, and then performing DMA > > on the resulting buffer? > > This is an arm specific problem, also related to dma_alloc_coherent() > allocator. To be 100% conformant with ARM specification we would > probably need to unmap all pages used by the dma_coherent allocator > from the LOW MEM area. This is doable, but completely not related > to the CMA and this patch series. You've already been told why we can't unmap pages from the kernel direct mapping. Okay, so I'm just going to assume that CMA has _no_ _business_ being used on ARM, and is not something that should interest anyone in the ARM community. -- 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/