From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753565Ab0JKJY2 (ORCPT ); Mon, 11 Oct 2010 05:24:28 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:39935 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752494Ab0JKJY1 (ORCPT ); Mon, 11 Oct 2010 05:24:27 -0400 Date: Mon, 11 Oct 2010 11:24:24 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Russell King - ARM Linux Cc: Felipe Contreras , Greg KH , linux-main , linux-arm , Arnd Hannemann , Han Jonghun , Hemant Pedanekar Subject: Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM Message-ID: <20101011092424.GX29673@pengutronix.de> References: <20101008175308.GA10975@n2100.arm.linux.org.uk> <20101008230451.GB10975@n2100.arm.linux.org.uk> <20101008232539.GA28697@kroah.com> <20101008234448.GD10975@n2100.arm.linux.org.uk> <20101009092127.GB20975@n2100.arm.linux.org.uk> <20101011083508.GW29673@pengutronix.de> <20101011090212.GA27153@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20101011090212.GA27153@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2010 at 10:02:12AM +0100, Russell King - ARM Linux wrote: > On Mon, Oct 11, 2010 at 10:35:08AM +0200, Uwe Kleine-König wrote: > > Alternatively when calling fixup only after parse_tags in setup_arch() > > it worked. But I guess this change is not for discussion. > > OTOH I wonder why fixup gets passed meminfo. It's not very useful if > > it's not yet filled. > > Because, rather than pass in ATAGs or set the memory on the command line, > they instead wanted to hard-code it in C - something which still happens > today: > > arch/arm/mach-msm/board-halibut.c > arch/arm/mach-msm/board-mahimahi.c > arch/arm/mach-msm/board-sapphire.c > arch/arm/mach-msm/board-trout.c > arch/arm/mach-pxa/eseries.c > arch/arm/mach-pxa/spitz.c > arch/arm/mach-s3c2412/mach-smdk2413.c > arch/arm/mach-s3c2412/mach-vstms.c > arch/arm/mach-tegra/board-harmony.c > > This is part of the on-going pain of poor quality boot loaders. Yep, so (at least regarding the memory layout) the name "fixup" is wrong, it's more "initializ"ish. So what now? Do the memory reservation in mdesc->reserve as Felipe suggested? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ |