[parisc-linux] [[email protected]: Re: DIFF 2.6.7-pa13 SMP fixes]
Folks,
Here's another good example of
"Just because it boots doesn't mean it's right"
Someone was asserting SMP is stable (based on their experience). But it was clearly corrupting the lock pointer.
Kudos to Thibaut Varene on the spinlock debug code.
thanks,
grant
----- Forwarded message from Randolph Chung <[email protected]> -----
From: Randolph Chung <[email protected]>
To: [email protected]
Subject: Re: [parisc-linux-cvs] linux-2.6 tausq
Quoted 8 lines
. :
Makefile
arch/parisc/kernel:entry.Ssmp.ctraps.c
include/asm-parisc:pgtable.hLog message:
2.6.7-pa13
Fix a bug inentry.Swherepa_dbit_lockwas being trashed Fix debug spinlock warnings inpgtable.h
<ggg> T-Bone deserves a big cookie :^)
Index: Makefile
===================================================================
RCS file: /var/cvs/linux-2.6/Makefile,v
retrieving revision 1.219
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 7 -EXTRAVERSION = -pa12 +EXTRAVERSION = -pa13 NAME=Zonked Quokka # *DOCUMENTATION*
Index: arch/parisc/kernel/entry.S
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/entry.S,v retrieving revision 1.15
parisc/kernel/entry.S +5 -5
@@ -518,7 +518,7 @@ /* Set the dirty bit (and accessed bit). No need to be * clever, this is only used from the dirty fault */ - .macro update_dirty ptep,pte,tmp,tmp1 + .macro update_dirty ptep,pte,tmp ldi _PAGE_ACCESSED|_PAGE_DIRTY,\tmp or \tmp,\pte,\pte STREG \pte,0(\ptep)
@@ -1559,7 +1559,7 @@ dbit_spin_20w: dbit_nolock_20w: #endif - update_dirty ptp,pte,t0,t1 + update_dirty ptp,pte,t1 make_insert_tlb spc,pte,prot
@@ -1596,7 +1596,7 @@ dbit_spin_11: dbit_nolock_11: #endif - update_dirty ptp,pte,t0,t1 + update_dirty ptp,pte,t1 make_insert_tlb_11 spc,pte,prot
@@ -1637,11 +1637,11 @@ dbit_spin_20: dbit_nolock_20: #endif - update_dirty ptp,pte,t0,t1 + update_dirty ptp,pte,t1 make_insert_tlb spc,pte,prot - f_extend pte,t0 + f_extend pte,t1 idtlbt pte,prot
Index: arch/parisc/kernel/smp.c
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/smp.c,v retrieving revision 1.8
parisc/kernel/smp.c +0 -2
@@ -54,8 +54,6 @@#define kDEBUG 0 -spinlock_t pa_dbit_lock =SPIN_LOCK_UNLOCKED ; -spinlock_t smp_lock =SPIN_LOCK_UNLOCKED ;volatile struct task_struct *smp_init_current_idle_task;
Index: arch/parisc/kernel/traps.c
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/traps.c,v retrieving revision 1.13
parisc/kernel/traps.c +4 -0
@@ -44,6 +44,10 @@#define PRINT_USER_FAULTS /* (turn this on if you want user faults to be */ /* dumped to the console via printk) */ +#if defined(CONFIG_SMP ) || defined(CONFIG_DEBUG_SPINLOCK ) +spinlock_t pa_dbit_lock =SPIN_LOCK_UNLOCKED ; +#endif +int printbinary (char *buf,unsigned long x,int nbits) {unsigned long mask =1UL << (nbits -1 );
Index: include/asm-parisc/pgtable.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/asm-parisc/pgtable.h,v retrieving revision 1.15
asm-parisc/pgtable.h +0 -4
@@ -455,11 +455,7 @@ static inline int ptep_test_and_clear_di#endif } -#ifdef CONFIG_SMP extern spinlock_t pa_dbit_lock; -#else -static spinlock_t pa_dbit_lock;/* dummy to keep the compilers happy */ -#endif static inline pte_t ptep_get_and_clear (pte_t *ptep) {
_______________________________________________
parisc-linux-cvs mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux-cvs
----- End forwarded message -----
_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux