From owner-freebsd-alpha@FreeBSD.ORG Sun Aug 7 08:10:53 2005 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5771D16A439; Sun, 7 Aug 2005 08:10:53 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D25D144014; Sun, 7 Aug 2005 07:38:10 +0000 (GMT) (envelope-from thierry@herbelot.com) Received: from herbelot.dyndns.org (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by postfix3-2.free.fr (Postfix) with ESMTP id 6BC7FC0B9; Sun, 7 Aug 2005 09:38:07 +0200 (CEST) Received: from diversion.herbelot.nom (diversion.herbelot.nom [192.168.2.6]) by herbelot.dyndns.org (8.13.3/8.13.3) with ESMTP id j777bwQN018684; Sun, 7 Aug 2005 09:38:03 +0200 (CEST) From: Thierry Herbelot To: freebsd-current@freebsd.org Date: Sun, 7 Aug 2005 09:37:48 +0200 User-Agent: KMail/1.8.2 References: <200508041255.05839.jhb@FreeBSD.org> <20050804212718.GD852@zaphod.nitro.dk> <200508051040.05333.jhb@FreeBSD.org> In-Reply-To: <200508051040.05333.jhb@FreeBSD.org> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200508070937.51119.thierry@herbelot.com> Cc: freebsd-alpha@freebsd.org Subject: Re: Locking fixes for dc(4): please test! X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: thierry@herbelot.com List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Aug 2005 08:10:53 -0000 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>