From owner-freebsd-net@FreeBSD.ORG Fri Jul 26 13:23:08 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A24E47C2 for ; Fri, 26 Jul 2013 13:23:08 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm1-vm1.bullet.mail.bf1.yahoo.com (nm1-vm1.bullet.mail.bf1.yahoo.com [98.139.213.163]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 529BD2B4D for ; Fri, 26 Jul 2013 13:23:08 +0000 (UTC) Received: from [98.139.215.142] by nm1.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jul 2013 13:23:01 -0000 Received: from [98.139.211.202] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 26 Jul 2013 13:23:01 -0000 Received: from [127.0.0.1] by smtp211.mail.bf1.yahoo.com with NNFMP; 26 Jul 2013 13:23:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1374844981; bh=I2IU7ojlz6ChBBwObLYi/kE7SO4iUJPWz7tDh4mLCDs=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=Y55Nu49gSlU9/AoUhVUM77nf1O3R/VrOE3/v59sDwgwrlKjw7bgasomQjtOL5V5MevnSakmHuzt5JlyqW8kVkLtUP7BYKIL6l8orQeU/S8lFEz3BxYpXebUSDljrZZbwHJsEFRLuhX4ni1mKj34wf8khID11yMPOXdkljTpGaA0= X-Yahoo-Newman-Id: 80649.62018.bm@smtp211.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: BYhMEv0VM1lqHPdnTvaRJ6l2lZpyrZ2Kg7ZezIcb6s_1Xwk NqLrwvNqkkeVpeBBVvo5I3.abouiX44sJ1MuHoY0daTz4DlfFr.Zb_EclzY6 OgGGX813NkSQQq5WqXrIESX_NkcG46ztBze.VIRDP6s2Ly.qbYZQJyy6J.ey YALK_Ix6miknpsYsWiQ0cG37Q98zT6Rmnk.paC6E.8FKWhwvysS.yEfnj61B .V5jWC4_a9quHR.gAKnPR99hIMx8qMtkZ87kTHjVFXy1ytiiYngLV1GZUo6I AflYO7CHIt28y4Gk4v_QlrnxkPae_fAGtlBK1i4L0D_AFGc_rJIrTTkJ9vjU i5J0HRSUZE.jc1xzBYAvgWtvHb.Yhj95RF6qIHMCRMTxXl5mFQA.OB_WOSrj nqnAIlw5hLrv1xuq5ogFzd.wvr5Vnz2zK9sIsBywNDr.LscQE0tAEPQUm5q2 i.JZsvFTDw.Z0rQMw9rJkJrutWQ3S.DjNIlxmb9VQwgVYcA.3MhTTmGoz1Np IR_xiFVQrKlVzcv2hEo1NO2n6hOyda93KiR3A0W2gfyWN7BBVdIKfITcc6RD U2Avq2DVQozGX5ThHFKOS7XpxBl8OyeAcQvXhx0ibj4YZ2Z8DjEOmFkxicQ- - X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.210] (sean_bruno@71.202.40.63 with ) by smtp211.mail.bf1.yahoo.com with SMTP; 26 Jul 2013 06:23:00 -0700 PDT Subject: Re: bce(4) panics, 9.2rc1, IPMI related? From: Sean Bruno To: "freebsd-net@freebsd.org" In-Reply-To: <1374774441.1438.12.camel@localhost> References: <1374700042.1493.14.camel@localhost> <1374701022.1964.0.camel@localhost> <1374774441.1438.12.camel@localhost> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-II4MRHQ0nn4a6qVoRST0" Date: Fri, 26 Jul 2013 06:22:59 -0700 Message-ID: <1374844979.1477.14.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 13:23:08 -0000 --=-II4MRHQ0nn4a6qVoRST0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > >=20 > > bce0: mem > > 0xda000000-0xdbffffff irq 36 at device 0.0 on pci1 > > miibus0: on bce0 > > brgphy0: PHY 1 on miibus0 > > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > bce0: Ethernet address: d4:ae:52:8d:42:fc > > bce0: ASIC (0x57092008); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.2.3); > > Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NCSI 2.0.11) > > Coal (RX:6,6,18,18; TX:20,20,80,80) > > bce1: mem > > 0xdc000000-0xddffffff irq 48 at device 0.1 on pci1 > > miibus1: on bce1 > > brgphy1: PHY 1 on miibus1 > > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > > 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow > > bce1: Ethernet address: d4:ae:52:8d:42:fd > > bce1: ASIC (0x57092008); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.2.3); > > Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NCSI 2.0.11) > > Coal (RX:6,6,18,18; TX:20,20,80,80) > >=20 >=20 There was no change reverting r253128. I don't think that this affects what I'm seeing. However ... see below >=20 > These machines are using IPMI for management (Dell R410) and seem to be > unable to attach to /dev/ipmi0: >=20 > ipmi0: port 0xca8,0xcac on acpi0 > ipmi0: KCS mode found at io 0xca8 on acpi > .... > ipmi1: on isa0 > device_attach: ipmi1 attach returned 16 > ipmi1: on isa0 > device_attach: ipmi1 attach returned 16 > ... > ipmi0: Timed out waiting for GET_DEVICE_ID >=20 >=20 > Sean >=20 tl;dr need a review of http://people.freebsd.org/~sbruno/ipmi_fixes.txt I don't understand why, but ipmi_isa.c attach isn't seeing that ipmi_acpi.c is attached at all. Moreover, it takes slightly more that 3 seconds for the BMC on a Dell R410 to respond to GET_DEVICE_ID while using the SOL console at 9600. :-( So, I've adjusted ipmivars.h::MAX_TIMEOUT to be (6 * hz) to properly attach to ipmi0. I've also done something gross, but I can't really see any way around it. I've added detection to ipmi_isa.c to see if the acpi IPMI interface is enabled/disabled via "acpi_disabled" which means I have to include ACPI header files in acpi_isa.c ... amusing, but it seems to work. I've been able to return the IPMI controller to the same behavior that it appears to have in stable/7 now with the attached patch. --- ipmi0: port 0xca8,0xcac on acpi0 ipmi0: KCS mode found at io 0xca8 on acpi ipmi0: IPMI device rev. 0, firmware rev. 1.90, version 2.0 ipmi0: Number of channels 5 ipmi0: Attached watchdog --- It looks like our implementation of IPMI somehow tries to attach TWICE to the IPMI controller, once via ACPI and once via ISA. This is really confusing the hell out of the Broadcom management firmware even though the second attachment fails. Sean --=-II4MRHQ0nn4a6qVoRST0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAABAgAGBQJR8ngvAAoJEBkJRdwI6BaH4G4IAJFVhxAOiiYrYWfZNG/cGrhs P+7j0SGKWk1C5CF2VxV5a6V8ma/2LkwNOyteem98dEIeV+Yj9YvPsZ9U/M8s8JJb hskulFV7fPnDKXkX6R9SoaB60a+5C4UirWSqw8OpOx0kBzYg8OtBKQfqeZs4JWMR f0Dlcw6QM+un7hDRWC+z45OfyiR8MzP68Zs6IRqiSS3BEOaiSpe1eg3f5Es1XJxc kVTosH/meOqhzqbhAoMYC6hYbObtCOq0FRs+BDMgbHXXtVH6oXkEA1Vhd5tSH8cO bhOmodMlD4tdFa4baH13ND1MngR6vOHZYI1DxOeISH0bxPkfX5BFJDNLyn9xLm4= =hR/H -----END PGP SIGNATURE----- --=-II4MRHQ0nn4a6qVoRST0--