All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Paul Walmsley <paul@pwsan.com>,
	"Syed Mohammed, Khasim" <khasim@ti.com>,
	"Gadiyar, Anand" <gadiyar@ti.com>,
	"linux-arm-kernel@lists.arm.linux.org.uk"
	<linux-arm-kernel@lists.arm.linux.org.uk>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Juha Yrjola <juha.yrjola@solidboot.com>
Subject: [PATCH] ARM: Do early I/O mapping if spinlock debugging is enabled (Re: [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3)
Date: Wed, 1 Apr 2009 17:00:56 -0700	[thread overview]
Message-ID: <20090402000055.GK32530@atomide.com> (raw)
In-Reply-To: <87ocvghsk7.fsf@deeprootsystems.com>

[-- Attachment #1: Type: text/plain, Size: 1604 bytes --]

* Kevin Hilman <khilman@deeprootsystems.com> [090401 16:18]:
> Tony Lindgren <tony@atomide.com> writes:
> 
> > * Paul Walmsley <paul@pwsan.com> [090401 12:04]:
> >> On Wed, 1 Apr 2009, Syed Mohammed, Khasim wrote:
> >> 
> >> > > -----Original Message-----
> >> > > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of
> >> > > Gadiyar, Anand
> >> > > Sent: Wednesday, April 01, 2009 1:55 PM
> >> > > To: Russell King - ARM Linux
> >> > > Cc: Tony Lindgren; linux-arm-kernel@lists.arm.linux.org.uk; linux-omap@vger.kernel.org
> >> > > Subject: RE: [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3
> >> > > 
> >> > > On Wed, Apr 01, 2009 at 12:18 AM, Russell King - ARM Linux wrote:
> >> > > > On Tue, Mar 31, 2009 at 05:12:18PM +0530, Gadiyar, Anand wrote:
> >> > > > > I could not run the 3430 SDP defconfig from mainline. The image hangs at
> >> > > > > "Starting kernel ...". Enabling CONFIG_DEBUG_LL does not help.
> >> > > >
> >> > > > Did you add the necessary patch to kernel/printk.c ?
> >> > > >
> >> > > 
> >> > > Silly me, I had not done this (despite having read this so many times on this list).
> >> > > 
> >> > > Here's what I get now after adding the patch.

<snip>

> > Not seeing this on overo at least.
> >
> 
> And my Beagle is booting fine with mainline and attached .config.

<snip>

Well turns out it's the same old bug again Juha tracked down earlier..

If CONFIG_DEBUG_SPINLOCK is set, and CONFIG_DEBUG_LL is not set, the IO
does not get mapped. Juha's earlier patch is attached.

Russell, got any better fixes in mind for this?

Tony

[-- Attachment #2: spinlock-debug.patch --]
[-- Type: text/x-diff, Size: 870 bytes --]

>From c699464bd92629fda1062223467588fcb0e97bca Mon Sep 17 00:00:00 2001
From: Juha Yrjola <juha.yrjola@solidboot.com>
Date: Fri, 16 Jan 2009 16:00:50 +0200
Subject: [PATCH] ARM: Do early I/O mapping if spinlock debugging is enabled

At least on OMAP, sched_clock() requires the I/O maps to be initialized.
Spinlock debugging invokes sched_clock() very early.

Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
index 21e17dc..1bc918c 100644
--- a/arch/arm/kernel/head.S
+++ b/arch/arm/kernel/head.S
@@ -282,7 +282,7 @@ __create_page_tables:
 	.endif
 	str	r6, [r0]
 
-#ifdef CONFIG_DEBUG_LL
+#if defined(CONFIG_DEBUG_LL) || defined(CONFIG_DEBUG_SPINLOCK)
 	ldr	r7, [r10, #PROCINFO_IO_MMUFLAGS] @ io_mmuflags
 	/*
 	 * Map in IO space for serial debugging.

  reply	other threads:[~2009-04-02  0:01 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 22:43 [PATCH 0/4] Omap board updates for merge window after 2.6.29 Tony Lindgren
2009-03-13 22:44 ` [PATCH 1/4] ARM: OMAP3: Add SMSC911X support to Overo platform (V2) Tony Lindgren
2009-03-15 15:38   ` Russell King - ARM Linux
2009-03-15 16:36     ` Steve Sakoman
2009-03-15 17:00       ` Russell King - ARM Linux
2009-03-15 17:13         ` Steve Sakoman
2009-03-15 17:37           ` Russell King - ARM Linux
2009-03-16 18:08             ` Tony Lindgren
2009-03-17  8:18               ` Steve.Glendinning
2009-03-13 22:46 ` [PATCH 2/4] ARM: OMAP3: Add ADS7846 touchscreen support to Overo platform Tony Lindgren
2009-03-16 20:38   ` [PATCH 2/4] ARM: OMAP3: Add ADS7846 touchscreen support to Overo platform, v2 Tony Lindgren
2009-03-16 21:57     ` Felipe Balbi
2009-03-24  3:54       ` [PATCH 2/4] ARM: OMAP3: Add ADS7846 touchscreen support to Overo platform, v3 Tony Lindgren
2009-03-13 22:47 ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP Tony Lindgren
2009-03-15 15:47   ` Russell King - ARM Linux
2009-03-15 15:48     ` Russell King - ARM Linux
2009-03-16 18:14       ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v2 Tony Lindgren
2009-03-16 18:22         ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3 Tony Lindgren
2009-03-23 19:05           ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v4 Tony Lindgren
2009-03-31 11:42           ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3 Gadiyar, Anand
2009-03-31 13:37             ` Gadiyar, Anand
2009-03-31 14:50               ` Tony Lindgren
2009-03-31 18:48             ` Russell King - ARM Linux
2009-04-01  8:25               ` Gadiyar, Anand
2009-04-01  8:47                 ` Syed Mohammed, Khasim
2009-04-01 19:04                   ` Paul Walmsley
2009-04-01 22:07                     ` Tony Lindgren
2009-04-01 23:18                       ` Kevin Hilman
2009-04-02  0:00                         ` Tony Lindgren [this message]
2009-04-02  7:38                           ` [PATCH] ARM: Do early I/O mapping if spinlock debugging is enabled (Re: [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3) Russell King - ARM Linux
2009-04-02 14:54                             ` Tony Lindgren
2009-04-02  4:33                         ` [PATCH 3/4] ARM: OMAP3: Add support for 3430 SDP, v3 Pandita, Vikram
2009-04-02 20:01                           ` Pandita, Vikram
2009-04-03 19:14                     ` Paul Walmsley
2009-04-03 19:25                       ` Gadiyar, Anand
2009-04-04 11:18                         ` Gadiyar, Anand
2009-04-03 23:12                       ` Kevin Hilman
2009-04-03 23:29                         ` Paul Walmsley
2009-03-13 22:48 ` [PATCH 4/4] ARM OMAP3: Initial support for Nokia RX-51 Tony Lindgren
2009-03-15 15:47   ` Russell King - ARM Linux
2009-03-16 18:21     ` [PATCH 4/4] ARM OMAP3: Initial support for Nokia RX-51, v2 Tony Lindgren
2009-03-24  2:52 ` [PATCH 0/4] Omap board updates for merge window after 2.6.29 Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090402000055.GK32530@atomide.com \
    --to=tony@atomide.com \
    --cc=gadiyar@ti.com \
    --cc=juha.yrjola@solidboot.com \
    --cc=khasim@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=paul@pwsan.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.