From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755984Ab2DMSik (ORCPT ); Fri, 13 Apr 2012 14:38:40 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:34254 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754432Ab2DMSii (ORCPT ); Fri, 13 Apr 2012 14:38:38 -0400 Date: Fri, 13 Apr 2012 19:38:13 +0100 From: Russell King - ARM Linux To: Marek Szyprowski Cc: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Kyungmin Park , Arnd Bergmann , Chunsang Jeong , Krishna Reddy , Konrad Rzeszutek Wilk , Hiroshi Doyu , Subash Patel Subject: Re: [PATCH 4/4] ARM: remove consistent dma region and use common vmalloc range for dma allocations Message-ID: <20120413183813.GO24211@n2100.arm.linux.org.uk> References: <1334325950-7881-1-git-send-email-m.szyprowski@samsung.com> <1334325950-7881-5-git-send-email-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1334325950-7881-5-git-send-email-m.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 On Fri, Apr 13, 2012 at 04:05:50PM +0200, Marek Szyprowski wrote: > This patch changes dma-mapping subsystem to use generic vmalloc areas > for all consistent dma allocations. This increases the total size limit > of the consistent allocations and removes platform hacks and a lot of > duplicated code. NAK. I don't think you appreciate the contexts from which the dma coherent code can be called from, and the reason why we pre-allocate the page tables (so that IRQ-based allocations work.) The vmalloc region doesn't allow that because page tables are allocated using GFP_KERNEL not GFP_ATOMIC. Sorry.