From nobody@FreeBSD.org Mon Oct 31 16:49:05 2005 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 878BC16A41F for ; Mon, 31 Oct 2005 16:49:05 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id F167143D45 for ; Mon, 31 Oct 2005 16:49:04 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9VGn4mE095259 for ; Mon, 31 Oct 2005 16:49:04 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9VGn4Qf095256; Mon, 31 Oct 2005 16:49:04 GMT (envelope-from nobody) Message-Id: <200510311649.j9VGn4Qf095256@www.freebsd.org> Date: Mon, 31 Oct 2005 16:49:04 GMT From: Simon Rigét To: freebsd-gnats-submit@FreeBSD.org Subject: Hme driver. Failure to initialize onboard NA on Sun Enterprise 250 X-Send-Pr-Version: www-2.3 >Number: 88279 >Category: sparc64 >Synopsis: Hme driver. Failure to initialize onboard NA on Sun Enterprise 250 >Confidential: no >Severity: serious >Priority: medium >Responsible: marius >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 31 16:50:16 GMT 2005 >Closed-Date: Mon Jan 23 16:59:30 GMT 2006 >Last-Modified: Mon Jan 23 16:59:30 GMT 2006 >Originator: Simon Rigét >Release: 5.4-release and 6.0 RC1 >Organization: Paragi >Environment: Sun Enterprise 250 2 x CPU 2Gb RAM 4 x 36Gb SCSI GEM Network adaptor. FreeBSD thor 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 22:21:34 UTC 2005 root@binkley.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 >Description: The driver for hme fails to initialize the build in network adapter, on boot, with the following messages: hme0: mem 0x8000-0xffff at device 1.1 on pci0 miibus0: on hme0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto hme0: Ethernet address: 08:00:20:e6:87:de hme0: couldn't establish interrupt there is also this: stray vector interrupt 2029 Which I suspect is related. The device has been tested with a Solaris 9 installation and works fine. I also tested with FreeBSD 6.0 RC1: same fault. Full message log: Oct 31 16:14:05 thor kernel: stray vector interrupt 2029 Oct 31 16:14:05 thor kernel: Copyright (c) 1992-2005 The FreeBSD Project. Oct 31 16:14:05 thor kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Oct 31 16:14:05 thor kernel: The Regents of the University of California. All rights reserved. Oct 31 16:14:05 thor kernel: FreeBSD 5.4-RELEASE #0: Sun May 8 22:21:34 UTC 2005 Oct 31 16:14:05 thor kernel: root@binkley.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Oct 31 16:14:06 thor kernel: real memory = 2147483648 (2048 MB) Oct 31 16:14:06 thor kernel: avail memory = 2082840576 (1986 MB) Oct 31 16:14:06 thor kernel: cpu0: Sun Microsystems UltraSparc-II Processor (400.00 MHz CPU) Oct 31 16:14:06 thor kernel: cpu1: Sun Microsystems UltraSparc-II Processor (400.00 MHz CPU) Oct 31 16:14:06 thor kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Oct 31 16:14:06 thor kernel: nexus0: Oct 31 16:14:06 thor kernel: nexus0: , type (unknown) (no driver attached) Oct 31 16:14:06 thor kernel: pcib0: on nexus0 Oct 31 16:14:06 thor kernel: pcib0: Psycho, impl 0, version 4, ign 0x7c0, bus B Oct 31 16:14:06 thor kernel: initializing counter-timer Oct 31 16:14:06 thor kernel: Timecounter "counter-timer" frequency 1000000 Hz quality 100 Oct 31 16:14:06 thor kernel: pcib0 dvma: DVMA map: 0xfc000000 to 0xffffffff Oct 31 16:14:06 thor kernel: pci0: on pcib0 Oct 31 16:14:06 thor kernel: ebus0: mem 0x71000000-0x717fffff,0x70000000-0x70ffffff at device 1.0 on pci0 Oct 31 16:14:06 thor kernel: auxio0: addr 0x140072f000-0x140072f003,0x140072c000-0x140072c003,0x140072a000-0x140072a003,0x1400728000-0x1400728003,0x1400726000-0x1400726003 on ebus0 Oct 31 16:14:06 thor kernel: ebus0: addr 0x1400724000-0x1400724003 (no driver attached) Oct 31 16:14:06 thor kernel: ebus0: addr 0x1400504000-0x1400504002 (no driver attached) Oct 31 16:14:06 thor kernel: ebus0: addr 0x1400500000-0x1400500007 (no driver attached) Oct 31 16:14:06 thor kernel: puc0: addr 0x1400400000-0x140040007f irq 43 on ebus0 Oct 31 16:14:06 thor kernel: uart0: on puc0 Oct 31 16:14:06 thor kernel: uart0: CTS oflow Oct 31 16:14:06 thor kernel: uart0: console (9600,n,8,1) Oct 31 16:14:06 thor kernel: uart1: on puc0 Oct 31 16:14:06 thor kernel: uart1: CTS oflow Oct 31 16:14:06 thor kernel: puc1: addr 0x1400200000-0x140020007f irq 35 on ebus0 Oct 31 16:14:06 thor kernel: uart2: on puc1 Oct 31 16:14:06 thor kernel: uart2: CTS oflow Oct 31 16:14:06 thor kernel: uart3: on puc1 Oct 31 16:14:06 thor kernel: uart3: CTS oflow Oct 31 16:14:06 thor kernel: uart4: <16550 or compatible> addr 0x14003083f8-0x14003083ff irq 41 on ebus0 Oct 31 16:14:06 thor kernel: uart5: <16550 or compatible> addr 0x14003062f8-0x14003062ff irq 33 on ebus0 Oct 31 16:14:06 thor kernel: ebus0: addr 0x1400700000-0x140070000f,0x1400300398-0x1400300399,0x14003043bc-0x14003043cb irq 33 (no driver attached) Oct 31 16:14:06 thor kernel: eeprom0: addr 0x1400000000-0x1400001fff on ebus0 Oct 31 16:14:06 thor kernel: eeprom0: model mk48t59 Oct 31 16:14:06 thor kernel: eeprom0: hostid 80e687de Oct 31 16:14:06 thor kernel: ebus0: addr 0x1000000000-0x10000fffff,0x1000000000-0x10000fffff (no driver attached) Oct 31 16:14:06 thor kernel: ebus0: addr 0x1400600000-0x1400600003 irq 37,40 (no driver attached) Oct 31 16:14:06 thor kernel: hme0: mem 0x8000-0xffff at device 1.1 on pci0 Oct 31 16:14:06 thor kernel: miibus0: on hme0 Oct 31 16:14:06 thor kernel: nsphy0: on miibus0 Oct 31 16:14:06 thor kernel: nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Oct 31 16:14:06 thor kernel: hme0: Ethernet address: 08:00:20:e6:87:de Oct 31 16:14:06 thor kernel: hme0: couldn't establish interrupt Oct 31 16:14:06 thor kernel: nsphy0: detached Oct 31 16:14:06 thor kernel: miibus0: detached Oct 31 16:14:06 thor kernel: device_attach: hme0 attach returned 22 Oct 31 16:14:06 thor kernel: sym0: <875> port 0x400-0x4ff mem 0x12000-0x12fff,0x10000-0x100ff at device 3.0 on pci0 Oct 31 16:14:06 thor kernel: sym0: No NVRAM, ID 7, Fast-20, SE, parity checking Oct 31 16:14:06 thor kernel: sym1: <875> port 0x800-0x8ff mem 0x16000-0x16fff,0x14000-0x140ff at device 3.1 on pci0 Oct 31 16:14:06 thor kernel: sym1: No NVRAM, ID 7, Fast-20, SE, parity checking Oct 31 16:14:06 thor kernel: pci0: at device 2.0 (no driver attached) Oct 31 16:14:06 thor kernel: xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xc00-0xc7f mem 0x1800000-0x180007f at device 5.0 on pci0 Oct 31 16:14:06 thor kernel: miibus0: on xl0 Oct 31 16:14:06 thor kernel: xlphy0: <3Com internal media interface> on miibus0 Oct 31 16:14:06 thor kernel: xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Oct 31 16:14:06 thor kernel: xl0: Ethernet address: 00:50:da:79:fb:1f Oct 31 16:14:06 thor kernel: pcib1: on nexus0 Oct 31 16:14:06 thor kernel: pcib1: Psycho, impl 0, version 4, ign 0x7c0, bus A Oct 31 16:14:06 thor kernel: pci1: on pcib1 Oct 31 16:14:06 thor kernel: gem0: mem 0x200000-0x3fffff at device 1.0 on pci1 Oct 31 16:14:06 thor kernel: gem0: phy probe failed: 6 Oct 31 16:14:06 thor kernel: gem0: could not be configured Oct 31 16:14:06 thor kernel: device_attach: gem0 attach returned 6 Oct 31 16:14:06 thor kernel: nexus0: , type system-service-processor (no driver attached) Oct 31 16:14:06 thor kernel: nexus0: , type memory-controller (no driver attached) Oct 31 16:14:06 thor kernel: Timecounters tick every 10.000 msec Oct 31 16:14:06 thor kernel: Waiting 15 seconds for SCSI devices to settle Oct 31 16:14:06 thor kernel: SMP: AP CPU #1 Launched! Oct 31 16:14:06 thor kernel: cd0 at sym0 bus 0 target 6 lun 0 Oct 31 16:14:06 thor kernel: cd0: Removable CD-ROM SCSI-2 device Oct 31 16:14:06 thor kernel: cd0: 20.000MB/s transfers (20.000MHz, offset 16) Oct 31 16:14:06 thor kernel: cd0: cd present [1025240 x 512 byte records] Oct 31 16:14:06 thor kernel: da0 at sym0 bus 0 target 8 lun 0 Oct 31 16:14:06 thor kernel: da0: Fixed Direct Access SCSI-3 device Oct 31 16:14:06 thor kernel: da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled Oct 31 16:14:06 thor kernel: da0: 34732MB (71132959 512 byte sectors: 255H 63S/T 4427C) Oct 31 16:14:06 thor kernel: Mounting root from ufs:/dev/da0a >How-To-Repeat: Fresh clean binary install and ever after. >Fix: >Release-Note: >Audit-Trail: From: Marius Strobl To: =?iso-8859-1?Q?Simon_Rig=E9t?= Cc: freebsd-gnats-submit@freebsd.org Subject: Re: sparc64/88279: Hme driver. Failure to initialize onboard NA on Sun Enterprise 250 Date: Mon, 31 Oct 2005 18:34:33 +0100 On Mon, Oct 31, 2005 at 04:49:04PM +0000, Simon Rigét wrote: > > >Description: > The driver for hme fails to initialize the build in network adapter, on boot, with the following messages: > > hme0: mem 0x8000-0xffff at device 1.1 on pci0 > miibus0: on hme0 > nsphy0: on miibus0 > nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > hme0: Ethernet address: 08:00:20:e6:87:de > hme0: couldn't establish interrupt > The underlying problem is an incorrect entry for the second on-board UART in the interrupt map provided by the firmware which further down the road causes hme(4) to fail to attach to the on-board HME. 6.0-RELEASE will contain a hack to work around the problem (already part of RELENG_6 and RELENG_6_0) and a proper solution is being worked on. > there is also this: > > stray vector interrupt 2029 > > Which I suspect is related. That's the interrupt of the second timer embedded in the Host-PCI bridge which is set up by the firmware and typically fires before FreeBSD can disable it. Read: unrelated and harmless. Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details. State-Changed-From-To: open->patched State-Changed-By: marius State-Changed-When: Tue Nov 22 22:35:50 GMT 2005 State-Changed-Why: Mark as patched (fixed in sys/sparc64/pci/psycho.c rev. 1.55), assign to me as MFC-reminder. Responsible-Changed-From-To: freebsd-sparc64->marius Responsible-Changed-By: marius Responsible-Changed-When: Tue Nov 22 22:35:50 GMT 2005 Responsible-Changed-Why: Mark as patched (fixed in sys/sparc64/pci/psycho.c rev. 1.55), assign to me as MFC-reminder. http://www.freebsd.org/cgi/query-pr.cgi?pr=88279 State-Changed-From-To: patched->closed State-Changed-By: marius State-Changed-When: Mon Jan 23 16:57:32 UTC 2006 State-Changed-Why: Close, fix was MFC'ed to RELENG_6 in sys/sparc64/pci/psycho.c rev. 1.53.2.1 and to RELENG_5 in rev. 1.52.2.2. http://www.freebsd.org/cgi/query-pr.cgi?pr=88279 >Unformatted: