From: David Brownell Subject: Re: [PATCH] jffs2 summary allocation Date: Fri, 4 Apr 2008 16:09:40 -0700 Message-ID: <200804041609.41092.david-b@pacbell.net> References: <713171.37644.qm@web26213.mail.ukl.yahoo.com> <20080404124812.d39fa640.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Michael Trimarchi , spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Andrew Morton , dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org To: linux-arm-kernel-xIg/pKzrS19vn6HldHNs0ANdhmdF6hFW@public.gmane.org Return-path: In-Reply-To: <20080404124812.d39fa640.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Friday 04 April 2008, Andrew Morton wrote: > I'm assuming from the trace that the arm code tried to put that memory > under DMA (or at least, passed it into part of the DMA management code to > get the various caches sorted out) and that the arm DMA support code > doesn't like being given vmalloced memory. Actually, Documentation/DMA-Mapping.txt has a section right up front called "What memory is DMA'able?" ... which despite its ungrammatical title, says clearly: ... This means specifically that you may _not_ use the memory/addresses returned from vmalloc() for DMA. ... So I'm rather surprised to see *ANY* kernel code trying to do that. That rule has been in effect for many, many years now. - Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone