NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49018: Sun Ultra 25 Workstation cannot use bge0 and bge1.



The following reply was made to PR kern/49018; it has been noted by GNATS.

From: "Naruaki.Etomi" <nullnilaki%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: msaitoh%netbsd.org@localhost
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@localhost
 


Home | Main Index | Thread Index | Old Index