From nobody@FreeBSD.ORG Mon Oct  4 11:11:23 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id AC058154D8; Mon,  4 Oct 1999 11:11:23 -0700 (PDT)
Message-Id: <19991004181123.AC058154D8@hub.freebsd.org>
Date: Mon,  4 Oct 1999 11:11:23 -0700 (PDT)
From: boxiao63@hotmail.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: lnc driver is not working
X-Send-Pr-Version: www-1.0

>Number:         14123
>Category:       kern
>Synopsis:       lnc driver is not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct  4 11:20:00 PDT 1999
>Closed-Date:    Fri Jul 20 18:59:14 PDT 2001
>Last-Modified:  Wed Jul 25 16:00:03 PDT 2001
>Originator:     bo xiao
>Release:        3.2 and 3.3
>Organization:
>Environment:
>Description:
(soryy I press the submit button too fast last time while looking 
up my card model). 

3.2 and 3.3 claimed AMD fastether chips(79C974) were supported but 
it never worked (for me). Does anyone have it running?

GENERIC does NOT see lnc0. I built my own kernel. It found the card
as lnc1 but failed at port mapping. 

I went in the code pci/if_lnc_p.c and found it failed because 
pci_porten(pcicfgregs *cfg) returned 0 in pci_map_port(). cmdreg
was all 0. I tried to enable the port like many other drivers,
then re-read the cmdreg. It passed this point. So there is an 
order problem.

Then the kernel complains int 255 was too high although I config
it as 0x0a. intline was 0xff. I forced it to 0x0a. 

Now pci_wiredunit(cfg, dvp->pd_name) in pci_drvattach() gives a
huge negitive number. And my unit number is set to 1 after all.

Boots up fine. Finds the device and I can config the card.
But it is getting timeouts all the time and keeps resetting.
Never works. 

So after spending a day on this, it seems a better option
is to get another card. 

But I thought it was worth to report what I saw so some one 
else may get it fixed. 

Thanks.

Bo

>How-To-Repeat:
boot up the kernel.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Fri Jul 20 18:59:14 PDT 2001 
State-Changed-Why:  

From looking at the PR is appears the originator misconfigured 
his kernel. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14123 

From: Mike Barcroft <mike@FreeBSD.org>
To: Bo Xiao <boxiao63@hotmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/14123: lnc driver is not working
Date: Wed, 25 Jul 2001 19:11:55 -0400

 On Wed, Jul 25, 2001 at 10:27:50PM +0000, Bo Xiao wrote:
 > Hi Mike,
 > 
 > Although I no longer use this nic, I am really
 > curious as to how I should configure my kernel
 > to have it work.
 > 
 > Thanks.
 > Bo Xiao
 
 If you can't find the answer to your question by searching the
 -questions mailing list archive, send a message there with the
 details of your kernel configuration, how your hardware is
 configured, and any other information that might be of relevance.
 
 BTW, I just had a quick look at NOTES on a -CURRENT system and it
 appears the pcn driver supports that ethernet card, not lnc.
 This may be different than the drivers that came with 3.3-RELEASE.
 
 Best regards,
 Mike Barcroft
>Unformatted:
