Subject: re: SMP success
To: matthew green <mrg@eterna.com.au>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-sparc
Date: 01/07/2003 09:52:24
At 16:50 Uhr +1100 7.1.2003, matthew green wrote:
>BTW, do you have ddb configured?  you really should.  everyone who
>runs SMP kernels should probably have DDB and it wouldn't be bad to
>also turn on the LOCKDEBUG option to check that simplelock's are
>correctly used ...

After patching sparc/locore.s, the ss10 comes up multi-user, but eventually
locks up. Breaking into ddb, I get an endless stream of

simple_lock: locking against myself
lock: 0xf023d4e4, currently at: /usr/src/sys/arch/sparc/sparc/cpu.c:758
on cpu 0
last locked: /usr/src/sys/arch/sparc/sparc/cpu.c:667
last unlocked: /usr/src/sys/arch/sparc/sparc/cpu.c:745
0x0(0x1, 0xf0281000, 0xc, 0x81, 0x14, 0xa) at db_suspend_others+0x84
db_suspend_others(0x81, 0xf02323b0, 0xfe024000, 0xf0002000, 0xffff, 0xfffffffe)
at kdb_trap+0x58
kdb_trap(0x81, 0x40401dc7, 0xf01d56d8, 0xf02323b0, 0x0, 0xfc070000) at
trap+0x38
trap(0x0, 0x23, 0x23, 0xf0002000, 0xffff, 0x38) at Lslowtrap_reenter+0x38
Lslowtrap_reenter(0x0, 0x100, 0xf02497d8, 0xffffffff, 0xf089cf90, 0x4000)
at zs_
abort+0x24
zs_abort(0xf089b670, 0x0, 0xf01af864, 0xf023e420, 0x0, 0x2) at zstty_stint+0x88
zstty_stint(0x8, 0xf089cea0, 0xfe024000, 0xf0002000, 0xffff, 0x1c76f00) at
zsc_i
ntr_hard+0x68
zsc_intr_hard(0x0, 0xf01ad290, 0xd00, 0x408010e4, 0x14, 0x14) at zshard+0x40
zshard(0x400400, 0xf0200830, 0x2b8, 0xfffffc00, 0x14, 0xa) at
sparc_interrupt44c
+0x150
sparc_interrupt44c(0xf02816c4, 0xf4c7537, 0x400040, 0xf0200800, 0x0,
0xfffffffe)
 at _lockmgr+0xc18
_lockmgr(0x42, 0xf0002000, 0xf5fb6000, 0xffffffff, 0x0, 0xfc070000) at
_kernel_l
ock+0x54
_kernel_lock(0x1ba80, 0x24c38d, 0xf5fb6000, 0x40800da0, 0x200, 0x38) at
intr_loc
k_kernel+0x4
intr_lock_kernel(0x8, 0x8, 0xf5fb6000, 0x2, 0xf089cf90, 0x4000) at
sparc_interru
pt44c+0x118
sparc_interrupt44c(0xf000862c, 0xf09cfc00, 0x0, 0x0, 0x0, 0x2) at 0xf0002000
v8_srem_len(0xf023e800, 0xf021c000, 0x1010de4c, 0xf7665fb0, 0xca62c1d6,
0x1c76f0
0) at trap+0x444
trap(0x1015ce30, 0xffffffc0, 0x10176f28, 0xeffff4e8, 0x14, 0x14) at
Lslowtrap_re
enter+0x38

until finally a watchdog interrupt returns me to the ofw prompt.

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards