Locking fixes for dc(4): please test!

Thierry Herbelot thierry at herbelot.com
Sun Aug 7 08:10:53 GMT 2005


Le Friday 5 August 2005 16:40, John Baldwin a écrit :
>
> Ok.  Try changing the IS_MPSAFE at around line 348 flag from 0 to 1 and see
> if it blows up then. :)  Thanks for testing.

it does blow up with the following message 
(GENERIC -current on an SMP, non-ACPI BP6, with your patch and IS_MPSAFE=1)

no kernel dump as the dump device is not yet defined (TBD through a loader 
tunable ?)

	TfH

console panic log :

dc0: <82c169 PNIC 10/100BaseTX> port 0x9400-0x94ff mem 0xd9000000-0xd90000ff 
irq 19 at device 9.0 on pci0
panic: lock (sleep mutex) dc0 not locked @ /usr/src/sys/pci/if_dc.c:839
cpuid = 0
KDB: enter: panic
[thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x2b: nop
db> where
Tracing pid 0 tid 0 td 0xc0921e40
kdb_enter(c085a72f) at kdb_enter+0x2b
panic(c085e4b0,c0875971,c1365710,c086dc10,347) at panic+0x127
witness_unlock(c1373af0,8,c086dc10,347) at witness_unlock+0xbc
_mtx_unlock_flags(c1373af0,0,c086dc10,347) at _mtx_unlock_flags+0x5b
dc_miibus_readreg(c12a8d80,0,1) at dc_miibus_readreg+0x176
mii_phy_probe(c12a8d80,c137303c,c072a7e0,c072a85c,0) at mii_phy_probe+0x8e
dc_attach(c12a8d80) at dc_attach+0xb67
device_attach(c12a8d80,e,c12a8d80,c135f580,c135f580) at device_attach+0x58
device_probe_and_attach(c12a8d80) at device_probe_and_attach+0xe0
bus_generic_attach(c135f580,c135f580,0,7c,0) at bus_generic_attach+0x16
pci_attach(c135f580) at pci_attach+0x7f
device_attach(c135f580,c1273600,c135f580,c135f600,c135f600) at 
device_attach+0x58
device_probe_and_attach(c135f580) at device_probe_and_attach+0xe0
bus_generic_attach(c135f600,c135f600,c087c1e4,0,0) at bus_generic_attach+0x16
mptable_hostb_attach(c135f600) at mptable_hostb_attach+0x69
device_attach(c135f600,c09065a0,c135f600,1,c1273600) at device_attach+0x58
device_probe_and_attach(c135f600) at device_probe_and_attach+0xe0
bus_generic_attach(c1273600,c1273600,c1273600,c1273600,0) at 
bus_generic_attach+0x16
legacy_attach(c1273600) at legacy_attach+0x8e
device_attach(c1273600,0,c1273600,c1273b80,0) at device_attach+0x58
device_probe_and_attach(c1273600) at device_probe_and_attach+0xe0
bus_generic_attach(c1273b80,c1273b80,c1273b80,c0c20d40,c064847c) at 
bus_generic_attach+0x16
nexus_attach(c1273b80) at nexus_attach+0x13
device_attach(c1273b80,c092e4a8,c1273b80,c08f9e50,c28000) at 
device_attach+0x58
device_probe_and_attach(c1273b80) at device_probe_and_attach+0xe0
root_bus_configure(c0c20d88,c060bdb2,0,c1ec00,c1e000) at 
root_bus_configure+0x16
configure(0,c1ec00,c1e000,0,c04457a5) at configure+0x9
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
db>      


More information about the freebsd-current mailing list