NetBSD Problem Report #49018

From www@NetBSD.org  Fri Jul 18 19:23:37 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6FD63A5672
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 18 Jul 2014 19:23:37 +0000 (UTC)
Message-Id: <20140718192335.01959A654F@mollari.NetBSD.org>
Date: Fri, 18 Jul 2014 19:23:34 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Sun Ultra 25 Workstation cannot use bge0 and bge1.
X-Send-Pr-Version: www-1.0

>Number:         49018
>Category:       kern
>Synopsis:       Sun Ultra 25 Workstation cannot use bge0 and bge1.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    msaitoh
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 18 19:25:00 +0000 2014
>Closed-Date:    Thu Jul 24 07:37:35 +0000 2014
>Last-Modified:  Sun Dec 07 16:40:02 +0000 2014
>Originator:     nullnilaki
>Release:        NetBSD 6.99.47 (GENERIC) #1: Fri Jul 18 17:05:26 UTC 2014
>Organization:
Japan
>Environment:
NetBSD 6.99.47 (GENERIC) #1: Fri Jul 18 17:05:26 UTC 2014
        naruaki@:/usr/obj.sparc64/sys/arch/sparc64/compile/GENERIC
>Description:
Sun Ultra 25 Workstation has Two 10/100/1000 Base-T Gigabit Ethernet ports.
I tried to install NetBSD/sparc64 current version.
Successfully installe, but cannot use bge0 and bge1.
----------------------------------------------------------
ok boot cdrom
Boot device: /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom@0,0:f  File and args:
NetBSD IEEE 1275 Multi-FS Bootblock
Version $NetBSD: bootblk.fth,v 1.13 2010/06/24 00:54:12 eeh Exp $
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.17 (Fri Jul 18 16:37:09 UTC 2014)
=0xc96ab0
Loading netbsd: 9374928+617072+331936 [630888+416308]=0xde7fa8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 6.99.47 (GENERIC) #1: Fri Jul 18 17:05:26 UTC 2014
        naruaki@:/usr/obj.sparc64/sys/arch/sparc64/compile/GENERIC
total memory = 1024 MB
avail memory = 987 MB
sysctl_createv: sysctl_locate(multicast) returned 2
sysctl_createv: sysctl_locate(multicast_kludge) returned 2
mainbus0 (root): SUNW,Ultra-25 (Sun Ultra 25 Workstation): hostid 84581962
cpu0 at mainbus0: SUNW,UltraSPARC-IIIi @ 1336  MHz, CPU id 0
cpu0: system tick frequency 20 MHz
cpu0: 32K instruction (32 b/l), 64K data (32 b/l), 1024K external (64 b/l)
memory-controller at mainbus0 not configured
pyro0 at mainbus0: "Fire", rev 3, ign 780, bus A 2 to 12
pyro0: pci0 at pyro0
ppb0 at pci0 dev 0 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb0: PCI Express 1.0 <Upstream Port of PCI-E Switch>
pci1 at ppb0 bus 3
ppb1 at pci1 dev 1 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb1: PCI Express 1.0 <Downstream Port of PCI-E Switch> x2 @ 2.5Gb/s
pci2 at ppb1 bus 4
ppb2 at pci2 dev 0 function 0: Acer Labs M5249 Hypertransport to PCI Bridge (rev. 0x00)
ppb2: PCI Express 1.0 <PCI-E to PCI/PCI-X Bridge>
pci3 at ppb2 bus 5
ohci0 at pci3 dev 28 function 0: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci0: interrupting at ivec 780
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci3 dev 28 function 1: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci1: interrupting at ivec 780
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ohci2 at pci3 dev 28 function 2: Acer Labs M5237 USB 1.1 Host Controller (rev. 0x03)
ohci2: interrupting at ivec 780
ohci2: OHCI version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
ehci0 at pci3 dev 28 function 3: Acer Labs M5239 USB 2.0 Host Controller (rev. 0x01)
ehci0: interrupting at ivec 781
ehci0: companion controllers, 3 ports each: ohci0 ohci1 ohci2
usb3 at ehci0: USB revision 2.0
auacer0 at pci3 dev 29 function 0: Acer Labs M5455 Audio controller
auacer0: interrupting at ivec 785
auacer0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
auacer0: ac97: ext id 0x601<AC97_22,AMAP,VRA>
audio0 at auacer0: full duplex, playback, capture, mmap, independent
alipm0 at pci3 dev 30 function 1alipm0: can't map I/O space
aceride0 at pci3 dev 31 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc8)
aceride0: using ivec 1f84 for native-PCI interrupt
atabus0 at aceride0 channel 0
atabus1 at aceride0 channel 1
ppb3 at pci1 dev 2 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb3: PCI Express 1.0 <Downstream Port of PCI-E Switch> x2 @ 2.5Gb/s
pci4 at ppb3 bus 6
ppb4 at pci4 dev 0 function 0: ServerWorks BCM5714/BCM5715 Integral PCI-E to PCI-X Bridge (rev. 0xb3)
ppb4: PCI Express 1.0 <PCI-E to PCI/PCI-X Bridge>
pci5 at ppb4 bus 7
bge0 at pci5 dev 4 function 0: Broadcom BCM5715 Gigabit Ethernet
bge0: interrupting at ivec 3796
bge0: HW config 00000015, 00000015, 00000000, 00000000 00000000
bge0: ASIC BCM5715 A1 (0x9001), Ethernet address 00:14:4f:58:19:62
bge0: WARNING: failed to restrict dma range, falling back to parent bus dma range
brgphy0 at bge0 phy 1: BCM5714 1000BASE-T media interface, rev. 0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1 at pci5 dev 4 function 1: Broadcom BCM5715 Gigabit Ethernet
bge1: interrupting at ivec 3797
bge1: HW config 00010014, 00000014, 00000000, 00000000 00000000
bge1: ASIC BCM5715 A1 (0x9001), Ethernet address 00:14:4f:58:19:63
bge1: WARNING: failed to restrict dma range, falling back to parent bus dma range
brgphy1 at bge1 phy 1: BCM5714 1000BASE-T media interface, rev. 0
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb5 at pci1 dev 3 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb5: PCI Express 1.0 <Downstream Port of PCI-E Switch> x4 @ 2.5Gb/s
pci6 at ppb5 bus 8
ppb6 at pci1 dev 8 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb6: PCI Express 1.0 <Downstream Port of PCI-E Switch> x8 @ 2.5Gb/s
pci7 at ppb6 bus 9
ppb7 at pci1 dev 9 function 0: PLX Technology product 0x8532 (rev. 0xbb)
ppb7: PCI Express 1.0 <Downstream Port of PCI-E Switch> x8 @ 2.5Gb/s
pci8 at ppb7 bus 10
ppb8 at pci8 dev 0 function 0: Intel Serial to Parallel PCI Bridge A (rev. 0x09)
ppb8: PCI Express 1.0 <PCI-E to PCI/PCI-X Bridge>
pci9 at ppb8 bus 11
mpt0 at pci9 dev 1 function 0: Symbios Logic SAS1064 (rev. 0x02)
mpt0: interrupting at ivec 1f8f
mpt0: Phy 0: Link Status Unknown
mpt0: Phy 0: Link Status Unknown
scsibus0 at mpt0: 63 targets, 8 luns per target
ppb9 at pci8 dev 0 function 2: Intel Serial to Parallel PCI Bridge B (rev. 0x09)
ppb9: PCI Express 1.0 <PCI-E to PCI/PCI-X Bridge>
pci10 at ppb9 bus 12
radeonfb0 at pci10 dev 1 function 0: ATI Technologies Radeon 7000/VE QY (rev. 0x00)
pci_find_rom: bad rom data signature
radeonfb0: 32 MB aperture at 0x04000000, 64 KB registers at 0x00c00000
radeonfb0: display 0: initial virtual resolution 640x480 at 8 bpp
radeonfb0: using 16 MB per display
radeonfb0: port 0: physical 1024x768 60Hz
radeonfb0: port 1: physical 1024x768 60Hz
wsdisplay1 at radeonfb0 kbdmux 1
drm at radeonfb0 not configured
mpt1 at pci10 dev 2 function 0: Symbios Logic 53c1020/53c1030 (rev. 0x08)
mpt1: interrupting at ivec 1f90
scsibus1 at mpt1: 16 targets, 8 luns per target
mpt2 at pci10 dev 2 function 1: Symbios Logic 53c1020/53c1030 (rev. 0x08)
mpt2: interrupting at ivec 1f91
scsibus2 at mpt2: 16 targets, 8 luns per target
pyro1 at mainbus0: "Fire", rev 3, ign 7c0, bus B 2 to 2
pyro1: pci11 at pyro1
radeonfb1 at pci11 dev 0 function 0: ATI Technologies FireGL V3100 (RV370) 5B64 (rev. 0x80)
radeonfb1: 64 MB aperture at 0x10000000, 64 KB registers at 0x00100000
radeonfb1: display 0: initial virtual resolution 640x480 at 8 bpp
radeonfb1: using 32 MB per display
radeonfb1: port 0: physical 1024x768 60Hz
radeonfb1: port 1: physical 1024x768 60Hz
wsdisplay2 at radeonfb1 kbdmux 1
drm at radeonfb1 not configured
ebus0 at mainbus0: ign 7c0
flashprom at ebus0 addr 0-1fffff not configured
rtc0 at ebus0 addr 100000-10000f: mc146818 compatible time-of-day clock:
com0 at ebus0 addr 80-87 ipl 8: ns16550a, working fifo
com0: console
com1 at ebus0 addr 0-7 ipl 8: ns16550a, working fifo
env-monitor at ebus0 addr 0-41 not configured
pcfiic0 at ebus0 addr 80-81 ipl 1
iic0 at pcfiic0: I2C bus
gpio at iic0 addr 0x18 not configured
temperature at iic0 addr 0x2b not configured
temperature at iic0 addr 0x48 not configured
temperature at iic0 addr 0x4f not configured
seeprom0 at iic0 addr 0x52: front-io-fru-prom: size 8192
seeprom1 at iic0 addr 0x53: sas-backplane-fru-prom: size 8192
seeprom2 at iic0 addr 0x57: psu-fru-prom: size 256
hardware-monitor at iic0 addr 0x58 not configured
power at ebus0 addr e0-e1 ipl 3 not configured
i2c at mainbus0 not configured
i2c at mainbus0 not configured
i2c at mainbus0 not configured
ppm at mainbus0 not configured
pcons at mainbus0 not configured
No counter-timer -- using %stick at 20MHz as system clock.
scsibus0: waiting 2 seconds for devices to settle...
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
atapibus0 at atabus0: 2 targets
uhub0 at usb0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3 at usb3: Acer Labs EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
cd0 at atapibus0 drive 0: <MATSHITADVD-RAM UJ-85JS, , F100> cdrom removable
sd0 at scsibus0 target 0 lun 0: <ATA, HITACHI HDS7216S, AB8A> disk fixed
sd0: 149 GB, 152628 cyl, 16 head, 127 sec, 512 bytes/sect x 312581808 sectors
sd0: tagged queueing
sd1 at scsibus0 target 1 lun 0: <ATA, HITACHI HDS7216S, AB8A> disk fixed
sd1: 149 GB, 152628 cyl, 16 head, 127 sec, 512 bytes/sect x 312581808 sectors
sd1: tagged queueing
uhub4 at uhub3 port 7: vendor 0x0424 product 0x2502, class 9/0, rev 2.00/0.01, addr 2
uhub4: single transaction translator
root on cd0a dumps on cd0b
root file system type: cd9660
WARNING: preposterous TOD clock time
WARNING: using default initial time
warning: no /dev/console
init: kernel sec

You are using a serial console, we do not know your terminal emulation.
Please select one, typical values are:

        vt100
        ansi
        xterm

Terminal type (just hit ENTER for 'vt220'):

dhcpcd[53]: version 6.4.2 starting
dhcpcd[53]: bge0: disabling Kernel IPv6 auto link-local support
dhcpcd[53]: bge0: disabling Kernel IPv6 RA support
dhcpcd[53]: bge0: adding addressnd6_newaddrmsg: RTM_GET operation failed for fe80:1::b3c3:9662:8d55:e780 (errno=3)
 fe80::b3c3:9662:8d55:e780
dhcpcd[53]: bge0: vltime infinity, pltime infinity
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' PREINIT
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' CARRIER
dhcpcd[53]: DUID 00:01:00:01:12:d0:a0:88:00:14:4f:58:19:62
dhcpcd[53]: bge0: IAID 4f:58:19:62
dhcpcd[53]: bge0: delaying IPv6 router solictation for 0.3 seconds
dhcpcd[53]: bge0: delaying DHCP for 0.4 seconds
dhcpcd[53]: bge0: carrier lost
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' NOCARRIER
dhcpcd[53]: bge0: soliciting a DHCP lease
dhcpcd[53]: bge0: sending DISCOVER (xid 0x86643eca), next in 3.0 seconds
dhcpcd[53]: bge0: carrier acquired
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' CARRIER
dhcpcd[53]: bge0: IAID 4f:58:19:62
dhcpcd[53]: bge0: delaying IPv6 router solictation for 0.5 seconds
dhcpcd[53]: bge0: delaying DHCP for 0.9 seconds
dhcpcd[53]: bge0: sending DISCOVER (xid 0x86643eca), next in 8.5 seconds
dhcpcd[53]: bge0: soliciting an IPv6 router
dhcpcd[53]: bge0: delaying Router Solicitation for LL address
dhcpcd[53]: bge0: soliciting a DHCP lease
dhcpcd[53]: bge0: sending DISCOVER (xid 0x9fdbb5c6), next in 4.4 seconds
dhcpcd[53]: bge0: sending Router Solicitation
dhcpcd[53]: bge0: Router Advertisement from fe80::21b:8bff:fed8:dfbc
dhcpcd[53]: bge0: adding address 2001:a482:2369:0:3166:25f2:c726:5381/64
dhcpcd[53]: bge0: vltime 14400 seconds, pltime 12600 seconds
dhcpcd[53]: bge0: adding route to 2001:a482:2369::/64
dhcpcd[53]: bge0: adding default route via fe80::21b:8bff:fed8:dfbc
dhcpcd[53]: bge0: waiting for Router Advertisement DAD to complete
dhcpcd[53]: bge0: requesting DHCPv6 information
dhcpcd[53]: bge0: delaying INFORM6 (xid 0x8f232c), next in 0.6 seconds
dhcpcd[53]: bge0: fe80::21b:8bff:fed8:dfbc is unreachable, expiring it
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 1.0 seconds
dhcpcd[53]: bge0: Router Advertisement DAD completed
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 2.1 seconds
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 4.0 seconds
dhcpcd[53]: bge0: sending DISCOVER (xid 0x9fdbb5c6), next in 7.5 seconds
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 8.3 seconds
dhcpcd[53]: bge0: sending DISCOVER (xid 0x9fdbb5c6), next in 15.6 seconds
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 16.4 seconds
dhcpcd[53]: bge0: fe80::21b:8bff:fed8:dfbc is reachable again
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
dhcpcd[53]: bge0: fe80::21b:8bff:fed8:dfbc is unreachable, expiring it
dhcpcd[53]: bge0: executing `/libexec/dhcpcd-run-hooks' ROUTERADVERT
dhcpcd[53]: timed out
dhcpcd[53]: allowing 8 seconds for IPv4LL timeout
dhcpcd[53]: bge0: sending DISCOVER (xid 0x9fdbb5c6), next in 32.5 seconds
dhcpcd[53]: bge0: probing for an IPv4LL address
dhcpcd[53]: bge0: checking for 169.254.123.43
dhcpcd[53]: bge0: sending ARP probe (1 of 3), next in 1.1 seconds
dhcpcd[53]: bge0: sending ARP probe (2 of 3), next in 2.0 seconds
dhcpcd[53]: bge0: broadcasting INFORM6 (xid 0x8f232c), next in 31.8 seconds
dhcpcd[53]: bge0: sending ARP probe (3 of 3), next in 2.0 seconds
dhcpcd[53]: timed out
dhcpcd[53]: exited
 Status: Command failed                                                     Hit enter to continue
>How-To-Repeat:

>Fix:
Sorry...
I think that the cause of the problem is  NetBSD/sparc64 not supported bus_dmatag_subregion()?

>Release-Note:

>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: msaitoh@NetBSD.org
Subject: Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.
Date: Sat, 19 Jul 2014 12:46:17 +0200

 On Fri, Jul 18, 2014 at 07:25:00PM +0000, nullnilaki@gmail.com wrote:
 > bge0 at pci5 dev 4 function 0: Broadcom BCM5715 Gigabit Ethernet
 > bge0: interrupting at ivec 3796
 > bge0: HW config 00000015, 00000015, 00000000, 00000000 00000000
 > bge0: ASIC BCM5715 A1 (0x9001), Ethernet address 00:14:4f:58:19:62
 > bge0: WARNING: failed to restrict dma range, falling back to parent bus dma range
 [..]
 > I think that the cause of the problem is  NetBSD/sparc64 not supported bus_dmatag_subregion()?

 This would only be a problem if you had physical memory mapped above 1<<40,
 which is unlikely in your case.

 Masanobu, any ideas on this one?

 Martin

From: Takeshi Nakayama <tn@catvmics.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.
Date: Sun, 20 Jul 2014 02:02:08 +0900 (JST)

 >>> nullnilaki@gmail.com wrote

 > >Number:         49018
 > >Category:       kern
 > >Synopsis:       Sun Ultra 25 Workstation cannot use bge0 and bge1.

 I have no idea about this issue, but I remember some discussion on
 port-sparc64.

 http://mail-index.netbsd.org/port-sparc64/2012/10/17/msg001848.html
 http://mail-index.netbsd.org/port-sparc64/2013/10/28/msg002036.html

 -- Takeshi Nakayama

From: SAITOH Masanobu <msaitoh@execsw.org>
To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org, 
 gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, nullnilaki@gmail.com
Cc: msaitoh@execsw.org
Subject: Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.
Date: Tue, 22 Jul 2014 21:12:51 +0900

  Hi, all.

 Martin said:
 >  On Fri, Jul 18, 2014 at 07:25:00PM +0000, nullnilaki@gmail.com wrote:
 >  > bge0 at pci5 dev 4 function 0: Broadcom BCM5715 Gigabit Ethernet
 >  > bge0: interrupting at ivec 3796
 >  > bge0: HW config 00000015, 00000015, 00000000, 00000000 00000000
 >  > bge0: ASIC BCM5715 A1 (0x9001), Ethernet address 00:14:4f:58:19:62
 >  > bge0: WARNING: failed to restrict dma range, falling back to parent bus dma range
 >  [..]
 >  > I think that the cause of the problem is  NetBSD/sparc64 not supported bus_dmatag_subregion()?
 >  
 >  This would only be a problem if you had physical memory mapped above 1<<40,
 >  which is unlikely in your case.
 >  
 >  Masanobu, any ideas on this one?
 >  
 >  Martin

 Perhaps that problem isn't related to bus_dmatag_subregion().

 (2014/07/20 2:05), Takeshi Nakayama wrote:
 > The following reply was made to PR kern/49018; it has been noted by GNATS.
 > 
 > From: Takeshi Nakayama <tn@catvmics.ne.jp>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.
 > Date: Sun, 20 Jul 2014 02:02:08 +0900 (JST)
 > 
 >  >>> nullnilaki@gmail.com wrote
 >  
 >  > >Number:         49018
 >  > >Category:       kern
 >  > >Synopsis:       Sun Ultra 25 Workstation cannot use bge0 and bge1.
 >  
 >  I have no idea about this issue, but I remember some discussion on
 >  port-sparc64.
 >  
 >  http://mail-index.netbsd.org/port-sparc64/2012/10/17/msg001848.html
 >  http://mail-index.netbsd.org/port-sparc64/2013/10/28/msg002036.html
 >  
 >  -- Takeshi Nakayama


 Could you test the following patch? I've not tested on sparc64 though:


 Index: if_bge.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/if_bge.c,v
 retrieving revision 1.272
 diff -u -r1.272 if_bge.c
 --- if_bge.c	2 Jul 2014 22:25:14 -0000	1.272
 +++ if_bge.c	22 Jul 2014 12:11:46 -0000
 @@ -2176,7 +2176,7 @@
  			aprint_error_dev(sc->bge_dev, "reset timed out\n");
  			return -1;
  		}
 -	} else if ((sc->bge_flags & BGEF_NO_EEPROM) == 0) {
 +	} else {
  		/*
  		 * Poll the value location we just wrote until
  		 * we see the 1's complement of the magic number.
 @@ -2191,7 +2191,8 @@
  			DELAY(10);
  		}

 -		if (i >= BGE_TIMEOUT) {
 +		if ((i >= BGE_TIMEOUT)
 +		    && ((sc->bge_flags & BGEF_NO_EEPROM) == 0)) {
  			aprint_error_dev(sc->bge_dev,
  			    "firmware handshake timed out, val = %x\n", val);
  			return -1;
 @@ -4248,14 +4249,14 @@
  		BGE_SETBIT(sc, BGE_TLP_CONTROL_REG, BGE_TLP_DATA_FIFO_PROTECT);
  	}

 -	/* 5718 reset step 13, 57XX step 17 */
 -	/* Poll until the firmware initialization is complete */
 -	bge_poll_fw(sc);
 -
  	/* 5718 reset step 12, 57XX step 15 and 16 */
  	/* Fix up byte swapping */
  	CSR_WRITE_4(sc, BGE_MODE_CTL, BGE_DMA_SWAP_OPTIONS);

 +	/* 5718 reset step 13, 57XX step 17 */
 +	/* Poll until the firmware initialization is complete */
 +	bge_poll_fw(sc);
 +
  	/* 57XX step 21 */
  	if (BGE_CHIPREV(sc->bge_chipid) == BGE_CHIPREV_5704_BX) {
  		pcireg_t msidata;


 -- 
 -----------------------------------------------
                 SAITOH Masanobu (msaitoh@execsw.org
                                  msaitoh@netbsd.org)

From: "Naruaki.Etomi" <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: msaitoh@netbsd.org
Subject: Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.
Date: Thu, 24 Jul 2014 02:02:14 +0900

 Dear SAITOH-san.

 Thank you for your mail!

 >  Could you test the following patch? I've not tested on sparc64 though:
 >
 >
 >  Index: if_bge.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/dev/pci/if_bge.c,v
 >  retrieving revision 1.272
 >  diff -u -r1.272 if_bge.c
 >  --- if_bge.c   2 Jul 2014 22:25:14 -0000       1.272
 >  +++ if_bge.c   22 Jul 2014 12:11:46 -0000
 >  @@ -2176,7 +2176,7 @@
 >                         aprint_error_dev(sc->bge_dev, "reset timed out\n");
 >                         return -1;
 >                 }
 >  -      } else if ((sc->bge_flags & BGEF_NO_EEPROM) == 0) {
 >  +      } else {
 >                 /*
 >                  * Poll the value location we just wrote until
 >                  * we see the 1's complement of the magic number.
 >  @@ -2191,7 +2191,8 @@
 >                         DELAY(10);
 >                 }
 >
 >  -              if (i >= BGE_TIMEOUT) {
 >  +              if ((i >= BGE_TIMEOUT)
 >  +                  && ((sc->bge_flags & BGEF_NO_EEPROM) == 0)) {
 >                         aprint_error_dev(sc->bge_dev,
 >                             "firmware handshake timed out, val = %x\n", val);
 >                         return -1;
 >  @@ -4248,14 +4249,14 @@
 >                 BGE_SETBIT(sc, BGE_TLP_CONTROL_REG, BGE_TLP_DATA_FIFO_PROTECT);
 >         }
 >
 >  -      /* 5718 reset step 13, 57XX step 17 */
 >  -      /* Poll until the firmware initialization is complete */
 >  -      bge_poll_fw(sc);
 >  -
 >         /* 5718 reset step 12, 57XX step 15 and 16 */
 >         /* Fix up byte swapping */
 >         CSR_WRITE_4(sc, BGE_MODE_CTL, BGE_DMA_SWAP_OPTIONS);
 >
 >  +      /* 5718 reset step 13, 57XX step 17 */
 >  +      /* Poll until the firmware initialization is complete */
 >  +      bge_poll_fw(sc);
 >  +
 >         /* 57XX step 21 */
 >         if (BGE_CHIPREV(sc->bge_chipid) == BGE_CHIPREV_5704_BX) {
 >                 pcireg_t msidata;
 >
 >

 I apply this patch.
 It work fine and bge attached correctly.

 --------------------------------------------------------------------------------------------------

 pci5: i/o space, memory space enabled
 bge0 at pci5 dev 4 function 0: Broadcom BCM5715 Gigabit Ethernet
 bge0: interrupting at ivec 3796
 bge0: HW config 00000015, 00000015, 00000000, 00000000 00000000
 bge0: ASIC BCM5715 A1 (0x9001), Ethernet address 00:14:4f:58:19:62
 bge0: WARNING: failed to restrict dma range, falling back to parent
 bus dma range
 bge0: setting short Tx thresholds

 # ifconfig bge0
 bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>
         capabilities=3f00<UDP4CSUM_Rx,UDP4CSUM_Tx>
         enabled=0
         ec_capabilities=7<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU>
         ec_enabled=0
         address: 00:14:4f:58:19:62
         media: Ethernet autoselect (1000baseT
 full-duplex,flowcontrol,rxpause,txpause)
         status: active
         inet 192.168.1.6 netmask 0xffffff00 broadcast 192.168.1.255
         inet6 fe80::214:4fff:fe58:1962%bge0 prefixlen 64 scopeid 0x1

 # ping 192.168.1.1
 PING ntt.setup (192.168.1.1): 64 data bytes
 64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.112650 ms
 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=1.121150 ms
 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.192500 ms
 ^C
 ----ntt.setup PING Statistics----
 3 packets transmitted, 3 packets received, 0.0% packet loss
 round-trip min/avg/max/stddev = 1.112650/1.142100/1.192500/0.043854 ms

 --------------------------------------------------------------------------------------------------

 I think that the problem was solved.
 Thank you very much for fixing this.

  --
 That's very nice of you!
 nullnilaki@gmai.com

From: "SAITOH Masanobu" <msaitoh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49018 CVS commit: src/sys/dev/pci
Date: Thu, 24 Jul 2014 07:33:25 +0000

 Module Name:	src
 Committed By:	msaitoh
 Date:		Thu Jul 24 07:33:24 UTC 2014

 Modified Files:
 	src/sys/dev/pci: if_bge.c

 Log Message:
 - Fix a bug that bge can't be initialized correctly on some sparc64 systems
   (PR#49018).
   See also: http://mail-index.netbsd.org/port-sparc64/2013/10/28/msg002036.html
 - Change initializaton order as the same as the document, Linux tg3 and FreeBSD
   (part of r241436).


 To generate a diff of this commit:
 cvs rdiff -u -r1.273 -r1.274 src/sys/dev/pci/if_bge.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: kern-bug-people->msaitoh
Responsible-Changed-By: msaitoh@NetBSD.org
Responsible-Changed-When: Thu, 24 Jul 2014 07:37:35 +0000
Responsible-Changed-Why:
mine.


State-Changed-From-To: open->closed
State-Changed-By: msaitoh@NetBSD.org
State-Changed-When: Thu, 24 Jul 2014 07:37:35 +0000
State-Changed-Why:
Fixed in -current. Thanks.


From: John Nemeth <jnemeth@cue.bc.ca>
To: gnats-bugs@netbsd.org, msaitoh@netbsd.org, kern-bug-people@netbsd.org,
        netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, nullnilaki@gmail.com
Cc: 
Subject: Re: kern/49018 (Sun Ultra 25 Workstation cannot use bge0 and bge1.)
Date: Thu, 24 Jul 2014 11:47:23 -0700

 On Jul 24,  7:37am, msaitoh@NetBSD.org wrote:
 }
 } Synopsis: Sun Ultra 25 Workstation cannot use bge0 and bge1.
 } 
 } State-Changed-From-To: open->closed
 } State-Changed-By: msaitoh@NetBSD.org
 } State-Changed-When: Thu, 24 Jul 2014 07:37:35 +0000
 } State-Changed-Why:
 } Fixed in -current. Thanks.

      Shouldn't this be pulled up?

 }-- End of excerpt from msaitoh@NetBSD.org

From: Masanobu SAITOH <msaitoh@execsw.org>
To: John Nemeth <jnemeth@cue.bc.ca>, gnats-bugs@netbsd.org, 
 msaitoh@netbsd.org, kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, 
 gnats-admin@netbsd.org, nullnilaki@gmail.com
Cc: msaitoh@execsw.org
Subject: Re: kern/49018 (Sun Ultra 25 Workstation cannot use bge0 and bge1.)
Date: Fri, 25 Jul 2014 10:22:58 +0900

 On 2014/07/25 3:47, John Nemeth wrote:
 > On Jul 24,  7:37am, msaitoh@NetBSD.org wrote:
 > }
 > } Synopsis: Sun Ultra 25 Workstation cannot use bge0 and bge1.
 > }
 > } State-Changed-From-To: open->closed
 > } State-Changed-By: msaitoh@NetBSD.org
 > } State-Changed-When: Thu, 24 Jul 2014 07:37:35 +0000
 > } State-Changed-Why:
 > } Fixed in -current. Thanks.
 > 
 >       Shouldn't this be pulled up?

 Offcouse I will. -currnet's bge(4) has many fixes that the release branches
 don't have, so I'll make a jumbo patch.

  Thanks.

 > }-- End of excerpt from msaitoh@NetBSD.org
 > 


 -- 
 -----------------------------------------------
                 SAITOH Masanobu (msaitoh@execsw.org
                                  msaitoh@netbsd.org)

From: John Nemeth <jnemeth@cue.bc.ca>
To: Masanobu SAITOH <msaitoh@execsw.org>, gnats-bugs@netbsd.org,
        msaitoh@netbsd.org, kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org,
        gnats-admin@netbsd.org
Cc: 
Subject: Re: kern/49018 (Sun Ultra 25 Workstation cannot use bge0 and bge1.)
Date: Thu, 24 Jul 2014 18:38:55 -0700

 On Jul 25, 10:22am, Masanobu SAITOH wrote:
 } On 2014/07/25 3:47, John Nemeth wrote:
 } > On Jul 24,  7:37am, msaitoh@NetBSD.org wrote:
 } > }
 } > } Synopsis: Sun Ultra 25 Workstation cannot use bge0 and bge1.
 } > }
 } > } State-Changed-From-To: open->closed
 } > } State-Changed-By: msaitoh@NetBSD.org
 } > } State-Changed-When: Thu, 24 Jul 2014 07:37:35 +0000
 } > } State-Changed-Why:
 } > } Fixed in -current. Thanks.
 } > 
 } >       Shouldn't this be pulled up?
 } 
 } Offcouse I will. -currnet's bge(4) has many fixes that the release branches
 } don't have, so I'll make a jumbo patch.

      Ah, okay.  It's just that normally the status would have been
 changed to "pending-pullup".  But, since you will be doing one
 pullup that fixes all known issues, simply closing the PR might
 have been the right thing in this case.

 }-- End of excerpt from Masanobu SAITOH

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49018 CVS commit: [netbsd-6] src/sys/dev
Date: Sun, 7 Dec 2014 16:39:56 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Dec  7 16:39:55 UTC 2014

 Modified Files:
 	src/sys/dev/mii [netbsd-6]: brgphy.c brgphyreg.h
 	src/sys/dev/pci [netbsd-6]: if_bge.c if_bgereg.h if_bnx.c if_bnxreg.h
 	    if_bnxvar.h

 Log Message:
 Pull up the following, requested by msaitoh in #1207:

 sys/dev/mii/brgphy.c				1.69, 1.71-1.76 via patch
 sys/dev/mii/brgphyreg.h				1.6-1.7, 1.9
 sys/dev/pci/if_bge.c				1.259,1.267-1.276 via patch
 sys/dev/pci/if_bgereg.h				1.87-1.88
 sys/dev/pci/if_bnx.c				1.48, 1.49, 1.52-1.57 via patch
 sys/dev/pci/if_bnxreg.h				1.15-1.18
 sys/dev/pci/if_bnxvar.h				1.4-1.6

 	Changes for bge(4), bnx(4) and brgphy(4):
 	- Add device IDs for Broadcom BCM57710, BCM57711(E), BCM57712(E) and
 	  BCM5719 into pcidevs.
 	- Change BCM5720's device ID from 0x1658 to 0x165f. 0x1658 is only for
 	  the pre-product and not released to public.
 	- Fix detection of BGEPHYF_FIBER_{MII|TBI}
 	- Fix typo in comment.
 	- KNF
 	- brgphy(4):
 	  - Add BCM5708S support.
 	  - Add 2500SX support.
 	  - Fix bit definition of BRGPHY_MRBE_MSG_PG5_NP_T2 from FreeBSD.
 	  - Remove extra delay in brgphy_mii_phy_auto. Same as {Free,Open}BSD.
 	  - Fix media detect on some Fiber chips.
 	  - Add BCM5706.
 	- bge(4):
 	  - Print yet another hardware config word in SRAM(BGE_SRAM_DATA_CFG_5)
 	    for BCM5717 and newer devices.
 	  - Fix a trivial bug in #ifdef NOTYET.
 	  - Add BGEPHYF_NO_WIRESPEED flag for fiber devices.
 	  - Print APE firmware correctly.
 	  - Don't use the PHY Auto Poll Mode on many chips. This fixes a bug
 	    that MII Fiber NIC drop packets about 50%. Same as {Free,Open}BSD.
 	    Tested on HP Moonshot.
 	  - Add workaround for PR#48451. Some BCM5717-5720 based systems get
 	    NMI on boot. This problem doesn't occur when we don't use
 	    prefetchable memory in the APE area. I don't know the reason...
 	    Tested with HP MicroServer Gen8.
 	  - Fix a bug that bge can't be initialized correctly on some sparc64
 	    systems (PR#49018).
 	  - Change initializaton order as the same as the document, Linux tg3
 	    and FreeBSD (part of r241436).
 	  - In the BCM5703, the DMA read watermark should be set to less than
 	    or equal to the maximum memory read byte count of the PCI-X command
 	    register. Same as FreeBSD r204978 and Linux tg3 driver.
 	- bnx(4):
 	  - Enclose #ifdef BNX_DEBUG correctly.
 	  - Add 2500SX support.
 	  - Print some information (ASCI revision, PCI status, etc).
 	    From FreeBSD.


 To generate a diff of this commit:
 cvs rdiff -u -r1.59.8.6 -r1.59.8.7 src/sys/dev/mii/brgphy.c
 cvs rdiff -u -r1.5.14.1 -r1.5.14.2 src/sys/dev/mii/brgphyreg.h
 cvs rdiff -u -r1.200.2.3 -r1.200.2.4 src/sys/dev/pci/if_bge.c
 cvs rdiff -u -r1.56.18.3 -r1.56.18.4 src/sys/dev/pci/if_bgereg.h
 cvs rdiff -u -r1.45.8.1 -r1.45.8.2 src/sys/dev/pci/if_bnx.c
 cvs rdiff -u -r1.14 -r1.14.10.1 src/sys/dev/pci/if_bnxreg.h
 cvs rdiff -u -r1.2.8.1 -r1.2.8.2 src/sys/dev/pci/if_bnxvar.h

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.