From owner-freebsd-current@FreeBSD.ORG Mon Jun 2 21:37:12 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 274A2106566B for ; Mon, 2 Jun 2008 21:37:12 +0000 (UTC) (envelope-from flo@kasimir.com) Received: from kasimir.com (kasimir.com [85.214.51.166]) by mx1.freebsd.org (Postfix) with ESMTP id AB5D78FC1D for ; Mon, 2 Jun 2008 21:37:11 +0000 (UTC) (envelope-from flo@kasimir.com) Received: (qmail 86064 invoked from network); 2 Jun 2008 23:10:29 +0200 Received: from i53874f42.versanet.de (HELO nibbler-osx.local) (83.135.79.66) by kasimir.com with SMTP; 2 Jun 2008 23:10:29 +0200 Message-ID: <484461A5.1010003@kasimir.com> Date: Mon, 02 Jun 2008 23:09:57 +0200 From: Florian Smeets User-Agent: Thunderbird 2.0.0.15pre (Macintosh/20080602) MIME-Version: 1.0 To: John Baldwin References: <200805302339.33935.jhb@freebsd.org> In-Reply-To: <200805302339.33935.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: tx(4) MPSAFE patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 21:37:12 -0000 John Baldwin wrote: > I have a patch to make tx(4) MPSAFE. I do not have the hardware to test this > however. Unlike many of the previous patches, though, this driver appears to > be for hardware that is not entirely ancient, so there is hopefully a decent > chance someone can test this. > > http://www.FreeBSD.org/~jhb/patches/tx.patch > Hi John, sorry does not work, do you need anything else than the backtrace? FWIW, this is an SMP system with 2 CPUs. tx0: port 0xc400-0xc4ff mem 0xe7000000-0xe7000fff irq 18 at device 11.0 on pci0 panic: mutex tx0 not owned at /usr/src/sys/dev/tx/if_tx.c:1858 cpuid = 0 KDB: enter: panic [thread pid 0 tid 100000 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> where Tracing pid 0 tid 100000 td 0xc089f400 kdb_enter(c07e203e,c07e203e,c07e0b03,c0c20928,0,...) at kdb_enter+0x3a panic(c07e0b03,c2134860,c07d7a1c,742,c0c20954,...) at panic+0x12c _mtx_assert(c204bc54,4,c07d7a1c,742,0,...) at _mtx_assert+0x87 epic_miibus_readreg(c20f4d80,0,1,c20f4c00,c204bc00,...) at epic_miibus_readreg+0x38 mii_phy_probe(c20f4d80,c204bc0c,c0536920,c0534de0,c0533bb0,...) at mii_phy_probe+0xb3 epic_attach(c20f4d80,c20b0854,c085bc44,c07e47f9,80000000,...) at epic_attach+0x817 device_attach(c20f4d80,c20f4d80,c07e4757,935,c20f4d80,...) at device_attach+0x36f device_probe_and_attach(c20f4d80,c208d980,c0c20a94,c04861bc,c20f4c00,...) at device_probe_and_attach+0x100 bus_generic_attach(c20f4c00,c2116080,1,c0485c00,c20f4c00,0,c2116080) at bus_generic_attach+0x19 acpi_pci_attach(c20f4c00,c20d5854,c085bc44,c07e47f9,80000000,...) at acpi_pci_attach+0x18c device_attach(c20f4c00,c20f4c00,c07e4757,935,c20f4c00,...) at device_attach+0x36f device_probe_and_attach(c20f4c00,c208dc00,c0c20b34,c0488214,c208d980,...) at device_probe_and_attach+0x100 bus_generic_attach(c208d980,c0805f71,0,c0c20b24,c2116080,...) at bus_generic_attach+0x19 acpi_pcib_attach(c208d980,c211a2b4,0,c0c20b54,2,...) at acpi_pcib_attach+0x194 acpi_pcib_acpi_attach(c208d980,c20a9854,c085bc44,c07e47f9,80000000,...) at acpi_pcib_acpi_attach+0x236 device_attach(c208d980,c208d980,c07e4757,935,c208d980,...) at device_attach+0x36f device_probe_and_attach(c208d980,297,c0c20c54,c047defa,c208dc00,...) at device_probe_and_attach+0x100 bus_generic_attach(c208dc00,294,297,c2117768,294,...) at bus_generic_attach+0x19 acpi_attach(c208dc00,c20ab054,c085bc44,c07e47f9,80000000,...) at acpi_attach+0xb3a device_attach(c208dc00,c208dc00,c07e4757,935,c208dc00,...) at device_attach+0x36f device_probe_and_attach(c208dc00,c20f4280,c0c20ce8,c077450e,c20f4280,...) at device_probe_and_attach+0x100 bus_generic_attach(c20f4280,a,c07c962c,0) at bus_generic_attach+0x19 nexus_acpi_attach(c20f4280,c20f0854,c085bc44,c07e47f9,80000000,...) at nexus_acpi_attach+0x7e device_attach(c20f4280,c20f4280,c07e4757,935,c20f4280,...) at device_attach+0x36f device_probe_and_attach(c20f4280,c0810124,c0c20d6c,c07792bc,c08acf34,...) at device_probe_and_attach+0x100 root_bus_configure(c08acf34,c0c20d88,c056f3d6,0,c1ec00,...) at root_bus_configure+0x1b configure(0,c1ec00,c1ec00,c1e000,c25000,...) at configure+0xc mi_startup() at mi_startup+0x96 begin() at begin+0x2c Cheers, Florian