NetBSD Problem Report #20988
Received: (qmail 19547 invoked by uid 605); 3 Apr 2003 15:11:38 -0000
Message-Id: <Pine.GSO.4.53.0304031607400.15040@uxa.liv.ac.uk>
Date: Thu, 3 Apr 2003 16:11:08 +0100 (BST)
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Cc: "Mr G.D. Tyson" <Dave.Tyson@liverpool.ac.uk>,
Joe Battle <battlej@groove.com>
Subject: gsip gigabit ethernet driver fails with Netgear GA621
>Number: 20988
>Category: kern
>Synopsis: gsip gigabit ethernet driver fails with Netgear GA621
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 03 15:12:00 +0000 2003
>Closed-Date:
>Last-Modified: Sun Apr 15 21:45:39 +0000 2012
>Originator: Dave Tyson
>Release: NetBSD current 1.6Q from snapshot 25th March 2003
>Organization:
The University of Liverpool
>Environment:
System:NetBSD 1.6Q (GENERIC) #5: Tue Mar 25 11:14:20 GMT 2003 root@splunge:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: i386
Machine: i386
>Description:
The GA621 is a fibre gigabit card using the National Semiconductor
chipset supported by the gsip driver. The driver recognises the card and
configures it thus:
gsip0 at pci2 dev 1 function 0: NatSemi DP83820 Gigabit Ethernet, rev 00
gsip0: interrupting at irq 11
gsip0: Ethernet address 00:40:f4:29:5e:d1
gsip0: 64-bit PCI slot detected, using 64-bit data transfers
gsip0: using ten-bit interface
ukphy0 at gsip0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 1000baseSX, 1000baseSX-FDX, auto
With the card connected to a cisco gigbit switch and the link configured
to be up the card reports no carrier. The link light on the card appears
to be on implying it can see a carrier from the cisco box. The cisco link
light remains off. This state of affairs remains the same for all the
possible media/mediaopt combinations. e.g
gsip0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
enabled=0<>
address: 00:40:f4:29:5e:d1
media: Ethernet 1000baseSX full-duplex
status: no carrier
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
inet6 fe80::240:f4ff:fe29:5ed1%gsip0 prefixlen 64 scopeid 0x1
>How-To-Repeat:
Insert a Netgear GA621 in a system. load NetBSD-current. Observe you
cannot get the link to pass packets
>Fix:
none supplied (sorry).
The card works fine with FreeBSD 5.0 - but we want to use NetBSD!
The problem looks to be with the handling of the PHY - the OUI etc being
reported as all zeros looks suspicious. The interface chip between the NS
controller is made by Aligent (sp?) and appears from the data sheet to be a
fairly dumb convertor which drives the fibre laser - it is not programmable.
Initially I thought I might be able to fix it, but long hours reading the
code and the NS data sheet show I have a bit more to learn on the relationship
between the driver layer and phy layer :-) Help!
--
=====================================================================
Computing Services Dept Phone/Fax: 0151-794-3731/3759
The University of Liverpool Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street WWW: http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF Open Source O/S: www.netbsd.org
=====================================================================
>Release-Note:
>Audit-Trail:
From: Jason Thorpe <thorpej@wasabisystems.com>
To: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
Cc: gnats-bugs@gnats.netbsd.org, Joe Battle <battlej@groove.com>
Subject: Re: kern/20988: gsip gigabit ethernet driver fails with Netgear GA621
Date: Thu, 3 Apr 2003 12:10:56 -0800
On Thursday, April 3, 2003, at 07:11 AM, Dave Tyson wrote:
> The GA621 is a fibre gigabit card using the National Semiconductor
> chipset supported by the gsip driver. The driver recognises the card
> and
> configures it thus:
First of all, please add the "gentbi" driver to your kernel (it's a PHY
driver; I guess I've forgotten to add it to GENERIC).
Secondly, I had a GA621 for a while, and was not able to get it
working. I no longer have access to that hardware.
I would very much appreciate if you could try and track down the
problem.
-- Jason R. Thorpe <thorpej@wasabisystems.com>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
To: Jason Thorpe <thorpej@wasabisystems.com>
Cc: gnats-bugs@gnats.netbsd.org, Joe Battle <battlej@groove.com>
Subject: Re: kern/20988: gsip gigabit ethernet driver fails with Netgear
GA621
Date: Fri, 4 Apr 2003 10:03:37 +0100 (BST)
On Thu, 3 Apr 2003, Jason Thorpe wrote:
>
>On Thursday, April 3, 2003, at 07:11 AM, Dave Tyson wrote:
>
>> The GA621 is a fibre gigabit card using the National Semiconductor
>> chipset supported by the gsip driver. The driver recognises the card
>> and
>> configures it thus:
>
>First of all, please add the "gentbi" driver to your kernel (it's a PHY
>driver; I guess I've forgotten to add it to GENERIC).
>
Jason, thanks for the fast response! I have added the gentbi phy. The
dmesg now reports:
gsip0 at pci2 dev 1 function 0: NatSemi DP83820 Gigabit Ethernet, rev 00
gsip0: interrupting at irq 11
gsip0: Ethernet address 00:40:f4:29:5e:d1
gsip0: 64-bit PCI slot detected, using 64-bit data transfers
gsip0: using ten-bit interface
gentbi0 at gsip0 phy 0: Generic ten-bit interface, rev. 0
gentbi0: 1000baseSX, 1000baseSX-FDX, auto
However the symptoms remain the same. The link light on the card is
off when connected to the gigabit switch. If I autoconfig the interface
up it stays off (media auto). Setting the media to 1000baseSX (either
duplex) turns the link light on. The switch still thinks the link is
dead.
>Secondly, I had a GA621 for a while, and was not able to get it
>working. I no longer have access to that hardware.
>
>I would very much appreciate if you could try and track down the
>problem.
>
I'll have another poke around the source and see if I can add some
debugging. My guess is the card is not setting the carrier output on
and this means media autoselect will not config the card properly.
Forcing the media to be 1000baseSX means the card correctly sees the
carrier from the switch and sets the link light on.
Dave
--
=====================================================================
Computing Services Dept Phone/Fax: 0151-794-3731/3759
The University of Liverpool Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street WWW: http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF Open Source O/S: www.netbsd.org
=====================================================================
State-Changed-From-To: open->feedback
State-Changed-By: perry
State-Changed-When: Sat Apr 5 10:44:02 PST 2003
State-Changed-Why:
Waiting for the submitter to send more debugging information.
Responsible-Changed-From-To: kern-bug-people->thorpej
Responsible-Changed-By: perry
Responsible-Changed-When: Sat Apr 5 10:44:02 PST 2003
Responsible-Changed-Why:
Although Jason doesn't have the hardware, he's best equipped to
judge any patches etc. that the submitter sends since he's
the expert on the gsip.
From: "Perry E. Metzger" <perry@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/20988 CVS commit: src/sys/arch/i386/conf
Date: Sat, 5 Apr 2003 21:41:20 +0300 (EEST)
Module Name: src
Committed By: perry
Date: Sat Apr 5 18:41:20 UTC 2003
Modified Files:
src/sys/arch/i386/conf: GENERIC
Log Message:
Add gentbi* PHYs
I noted in reading the log for PR kern/20988 that they were missing
XXX I'm not sure I got the name in the comment right, but if I don't
XXX do this who will?
To generate a diff of this commit:
cvs rdiff -r1.551 -r1.552 src/sys/arch/i386/conf/GENERIC
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 07 Jul 2008 06:38:28 +0000
State-Changed-Why:
Feedback timeout. Anyone else have this hardware?
Responsible-Changed-From-To: thorpej->kern-bug-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 15 Apr 2012 21:45:39 +0000
Responsible-Changed-Why:
Back to role account, thorpej left
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.