Skip to contentSkip to conversation

BUG: soft lockup detected on CPU#0! Process swapper

DISCUSSION Applied Heiko Carstens 2 participants 2 messages Feb 26, 2008 – Apr 13, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 12 lines · John Gnew

I copied this message from the dmesg listing. From time to time I have seen this BUG for swapper, events and kjournald. Now that I have some time, I thought I would attempt to see if there is a fix available or try to get some information that I can use to debug this.

Questions?
How do I determine is a fix has already addressed this issue. If no fix is available, how do I get additional data and submit this as a bug?

John

Quoted 8 lines

-------------------------------------------------

The kernel is at 2.6.16.27

BUG: soft lockup detected on CPU#0!

CPU: 0 Not tainted
Process swapper (pid: 0, task: 004f6400, ksp: 00551e80) [...]

This is not a bug as explained by others already. The patch below went into 2.6.19 to address the issue of false positives.

Adrian, would you please consider the patch below for your 2.6.16 stable series? Patch is for 2.6.16.60. Upstream commit id in Linus' tree is dea20a3fbdd08e5ae2a0b33d2577c794a3764a11 . Thanks!

Subject: [PATCH] Disable DETECT_SOFTLOCKUP for s390

From: Heiko Carstens <[email protected]>

We got several false bug reports because of enabled CONFIG_DETECT_SOFTLOCKUP. Disable soft lockup detection on s390, since it doesn't work on a virtualized architecture.

---

 lib/Kconfig.debug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig.debug +1 -1
Index: linux-2.6.16.60/lib/Kconfig.debug
===================================================================
@@ -48,7 +48,7 @@ config LOG_BUF_SHIFT
 
 config DETECT_SOFTLOCKUP
 	bool "Detect Soft Lockups"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && !S390
 	default y
 	help
 	  Say Y here to enable the kernel to detect "soft lockups",
Applied
#2 lore raw
Quoted 4 lines · Heiko Carstens

...
Adrian, would you please consider the patch below for your 2.6.16 stable series? Patch is for 2.6.16.60. Upstream commit id in Linus' tree is dea20a3fbdd08e5ae2a0b33d2577c794a3764a11 . Thanks!

Thanks, applied.

Quoted 19 lines

Subject: [PATCH] Disable DETECT_SOFTLOCKUP for s390

From: Heiko Carstens <[email protected]>

We got several false bug reports because of enabled CONFIG_DETECT_SOFTLOCKUP. Disable soft lockup detection on s390, since it doesn't work on a virtualized architecture.

---

 lib/Kconfig.debug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.16.60/lib/Kconfig.debug
===================================================================

lib/Kconfig.debug config LOG_BUF_SHIFT · line 54

Quoted 8 lines
lib/Kconfig.debug +1 -1
@@ -48,7 +48,7 @@ config LOG_BUF_SHIFT
 
 config DETECT_SOFTLOCKUP
 	bool "Detect Soft Lockups"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && !S390
 	default y
 	help
 	  Say Y here to enable the kernel to detect "soft lockups",

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed