Skip to contentSkip to conversation

ia64: enable CONFIG_DEBUG_SPINLOCK_SLEEP

PATCH In review [email protected] 2 participants 6 messages Dec 19, 2006 – Dec 20, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ia64: enable CONFIG_DEBUG_SPINLOCK_SLEEP

From: Andrew Morton <[email protected]>

Some trivial bugs are coming from ia64 developers. Try to help them.

---

 arch/ia64/configs/bigsur_defconfig    |    2 +-
 arch/ia64/configs/gensparse_defconfig |    2 +-
 arch/ia64/configs/sim_defconfig       |    2 +-
 arch/ia64/configs/sn2_defconfig       |    2 +-
 arch/ia64/configs/tiger_defconfig     |    4 ++--
 arch/ia64/configs/zx1_defconfig       |    2 +-
 arch/ia64/defconfig                   |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
arch/ia64/configs/bigsur_defconfig renamed from arch/ia64/configs/bigsur_defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/configs/bigsur_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/bigsur_defconfig
@@ -1305,7 +1305,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 CONFIG_DEBUG_PREEMPT=y
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 # CONFIG_DEBUG_INFO is not set
 # CONFIG_DEBUG_FS is not set
arch/ia64/configs/sim_defconfig renamed from arch/ia64/configs/sim_defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/configs/sim_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/sim_defconfig
@@ -694,7 +694,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 CONFIG_DEBUG_PREEMPT=y
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 CONFIG_DEBUG_INFO=y
 # CONFIG_DEBUG_FS is not set
arch/ia64/configs/sn2_defconfig renamed from arch/ia64/configs/sn2_defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/configs/sn2_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/sn2_defconfig
@@ -1284,7 +1284,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 # CONFIG_DEBUG_SPINLOCK is not set
 # CONFIG_DEBUG_MUTEXES is not set
 # CONFIG_DEBUG_RWSEMS is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
 # CONFIG_DEBUG_KOBJECT is not set
 CONFIG_DEBUG_INFO=y
arch/ia64/configs/tiger_defconfig renamed from arch/ia64/configs/tiger_defconfig~ia64-enable-config_debug_spinlock_sleep +2 -2
diff -puN arch/ia64/configs/tiger_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/tiger_defconfig
@@ -1,4 +1,4 @@
-#
+;#
 # Automatically generated make config: don't edit
 # Linux kernel version: 2.6.16-rc5
 # Mon Feb 27 15:49:18 2006
@@ -1190,7 +1190,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 # CONFIG_DEBUG_SLAB is not set
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 # CONFIG_DEBUG_INFO is not set
 # CONFIG_DEBUG_FS is not set
arch/ia64/configs/zx1_defconfig renamed from arch/ia64/configs/zx1_defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/configs/zx1_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/zx1_defconfig
@@ -1359,7 +1359,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 # CONFIG_DEBUG_SLAB is not set
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 # CONFIG_DEBUG_INFO is not set
 # CONFIG_DEBUG_FS is not set
arch/ia64/configs/gensparse_defconfig renamed from arch/ia64/configs/gensparse_defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/configs/gensparse_defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/configs/gensparse_defconfig
@@ -1339,7 +1339,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 # CONFIG_DEBUG_SLAB is not set
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 # CONFIG_DEBUG_INFO is not set
 # CONFIG_DEBUG_FS is not set
arch/ia64/defconfig renamed from arch/ia64/defconfig~ia64-enable-config_debug_spinlock_sleep +1 -1
diff -puN arch/ia64/defconfig~ia64-enable-config_debug_spinlock_sleep arch/ia64/defconfig
@@ -1339,7 +1339,7 @@ CONFIG_DETECT_SOFTLOCKUP=y
 # CONFIG_DEBUG_SLAB is not set
 CONFIG_DEBUG_MUTEXES=y
 # CONFIG_DEBUG_SPINLOCK is not set
-# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
+CONFIG_DEBUG_SPINLOCK_SLEEP=y
 # CONFIG_DEBUG_KOBJECT is not set
 # CONFIG_DEBUG_INFO is not set
 # CONFIG_DEBUG_FS is not set

_

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andrew" = akpm <[email protected]> writes:

Andrew> From: Andrew Morton <[email protected]> Some trivial bugs are Andrew> coming from ia64 developers. Try to help them.

Ugh!

Please don't do this in the sn2 defconfig! Spin lock debugging totally kills scalability. I'll end up with a ton of internal complaints over the kernel not performing if this goes in :-(

Cheers,
Jes

#2 lore raw
In reply to [email protected]
Quoted 10 lines · On 20 Dec 2006 04:27:11 -0500 Jes Sorensen <[email protected]> wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andrew" = akpm <[email protected]> writes:

Andrew> From: Andrew Morton <[email protected]> Some trivial bugs are Andrew> coming from ia64 developers. Try to help them.

Ugh!

Please don't do this in the sn2 defconfig! Spin lock debugging totally kills scalability. I'll end up with a ton of internal complaints over the kernel not performing if this goes in :-(

Well you tell me how to stop ia64 developers from submitting stuff which has stupid bugs which instamanifest for everyone else? It is not uncommon.

#3 lore raw
In reply to [email protected]
Quoted 6 lines · Andrew Morton
Quoted 3 lines

Please don't do this in the sn2 defconfig! Spin lock debugging totally kills scalability. I'll end up with a ton of internal complaints over the kernel not performing if this goes in :-(

Well you tell me how to stop ia64 developers from submitting stuff which has stupid bugs which instamanifest for everyone else? It is not uncommon.

Beat them with a stick?

Seriously, not sure how to deal with it. I try and keep the sn2_defconfig to match the actual hardware and my colleagues rely on being able to build that. With spin lock debugging enabled we can barely boot the system on medium to large boxes.

If you get stuff like that from someone with an sgi.com address, let me know and I'll apply the clue 2x4.

Cheers,
Jes

#4 lore raw
In reply to [email protected]
Quoted 9 lines · On Wed, 20 Dec 2006 10:46:40 +0100 Jes Sorensen <[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 3 lines

Please don't do this in the sn2 defconfig! Spin lock debugging totally kills scalability. I'll end up with a ton of internal complaints over the kernel not performing if this goes in :-(

Well you tell me how to stop ia64 developers from submitting stuff which has stupid bugs which instamanifest for everyone else? It is not uncommon.

Beat them with a stick?

Make it a pointy stick and I can improve on that.

I've been thinking that we could do with a CONFIG_RC_KERNEL or something which gets turned on up until -rc4 or so, then gets turned off. So we can make the devel kernels more debugging-friendly.

The main problem would be remembering to turn the dang thing off and on at the right times.

#5 lore raw
In reply to [email protected]
Quoted 1 line · Andrew Morton

Make it a pointy stick and I can improve on that.

Aye! aye! sir!

Quoted 6 lines

I've been thinking that we could do with a CONFIG_RC_KERNEL or something which gets turned on up until -rc4 or so, then gets turned off. So we can make the devel kernels more debugging-friendly.

The main problem would be remembering to turn the dang thing off and on at the right times.

I like that idea! I wonder if we could somehow do this with some script magic? but we may also want to be able to offer it as a config option that people can force off if they want to (with some flashy neon signs telling them they are entering rogue territory).

Cheers,
Jes