Message ID | 20090402000055.GK32530@atomide.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On Wed, Apr 01, 2009 at 05:00:56PM -0700, Tony Lindgren wrote: > 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? No, and as I've said previously, the kernel assuming that sched_clock is usable before stuff has been initialized is a bug plain and simple. Your patch may fix OMAP, but it won't fix everything. It's just not going to be possible to make this work. spinlock debugging needs to stop using sched_clock. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
* Russell King - ARM Linux <linux@arm.linux.org.uk> [090402 00:38]: > On Wed, Apr 01, 2009 at 05:00:56PM -0700, Tony Lindgren wrote: > > 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? > > No, and as I've said previously, the kernel assuming that sched_clock > is usable before stuff has been initialized is a bug plain and simple. > > Your patch may fix OMAP, but it won't fix everything. > > It's just not going to be possible to make this work. spinlock debugging > needs to stop using sched_clock. Or maybe enable it later on like CONFIG_PRINTK_TIME was changed. Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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.