From ender@tog.net  Mon Jan  3 03:01:33 2005
Return-Path: <ender@tog.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 32ED516A4CE; Mon,  3 Jan 2005 03:01:33 +0000 (GMT)
Received: from tog.net (tog.net [216.89.226.5])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id A392B43D2D; Mon,  3 Jan 2005 03:01:32 +0000 (GMT)
	(envelope-from ender@tog.net)
Received: by tog.net (Postfix, from userid 96)
	id 2B02729B73B; Sun,  2 Jan 2005 22:01:32 -0500 (EST)
Received: from tog.net (unknown [216.89.225.144])
	by tog.net (Postfix) with ESMTP
	id 49B4B29B732; Sun,  2 Jan 2005 22:01:27 -0500 (EST)
Message-Id: <41D8DE56.1040808@tog.net>
Date: Sun, 02 Jan 2005 21:55:34 -0800
From: ender <ender@tog.net>
To: cvs-src@FreeBSD.org, jhb@FreeBSD.org, freebsd-smp@FreeBSD.org,
	freebsd-bugs@freebsd.org, freebsd-gnats-submit@FreeBSD.org,
	rwatson@FreeBSD.org, bms@freebsd.org, r.hodges@ieee.org,
	phk@FreeBSD.org, scottl@freebsd.org
Subject: Atm driver problem. 

>Number:         75733
>Category:       kern
>Synopsis:       ATM driver problem.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    harti
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 03 03:10:23 GMT 2005
>Closed-Date:    Mon Nov 19 18:24:36 UTC 2007
>Last-Modified:  Mon Nov 19 18:24:36 UTC 2007
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Im having trouble getting feedback, i have sent this email to quite a 
 few people with no responces. None. Hopefully someone out there can help 
 me out. I now have 2 extra network cards to send to people to help 
 testing. and tons of time to devote to this problem. Long time freebsd 
 promoter here, and my last step would be to run linux, and i would hate 
 to do that.
 
 Hi, i am running freebsd 5.3 with a Fore LE25, PHY=77105. I have been 
 using the IDT driver for over a year now. There is a bug in this driver 
 i belive, becasue every 2 days, both boxes i have running idt stop 
 passing traffic, and require a restart. When they hit the random 1-2 day 
 mark, they completely run out of mbufs and no traffic can be passed. (2 
 servers with 1 atm card, and 1 normal nic in each of them)
 
 Here are some things i have done or found out:
 I have experenced this problem from 5.2.1-5.3 (like i said about 1 year 
 now) I also have tryed putting alot of memory in the boxes, and setting 
 the mbufs to alot, kern.ipc.nmbclusters=131072 (after the new mbuf code 
 was commited) Setting kern.ipc.nmbclusters=0 casues no trafffic to be 
 passed on the atm card.
 
 The new version of idt.c casues my dmesg to be spammed. and all my cpu 
 eaten up with interupts. It looks like this
 idt0: <IDT IDT77201/211 NICStAR ATM Adapter> port 0x9400-0x94ff mem 
 0xe3004000-0xe3004fff irq 5 at device 6.0 on pci1
 idt0: [GIANT-LOCKED]
 idt0: ATM card is Fore LE25, PHY=77105
 idt0: 32K words of RAM
 idt0: MAC address 00:20:48:21:11:4e, HWrev=2
 idt0: i=  0, status=64320000
 idt0: i=  0, status=64320000
 idt0: i=  0, status=64320000
 idt0: i=  0, status=64320000
 idt0: i=  0, status=64320000
 <repeat>
 I tracked down where this was coming from, 
 http://fxr.watson.org/fxr/source/dev/idt/idt.c Line 3311. I recompiled 
 my system after removing lines 3310 and 3311. The driver no longer ate 
 all my cpu. But it still stoped passing traffic every 1-2 days.. I am 
 currently running both versions of the driver(one on each box), and they 
 break at about the same rate.
 
 Google, and man pages say i should use the harp, OR cranor driver. not 
 both.
 #ATM (cranor)
 #other
 device          atm #(uncommented in my setup)
 #device          en
 #device          fatm                    #Fore PCA200E
 #device          hatm                    #Fore/Marconi HE155/622
 #device          patm                    #IDT77252 cards (ProATM and IDT)
 #device          utopia                  #ATM PHY driver
 #options         NATM                    #native ATM
 #options         LIBMBPOOL               #needed by patm, iatm
 
 
 #harp
 device          hfa                     #FORE PCA-200E ATM PCI
 device          harp                    #Pseudo-interface for NATM
 options         ATM_CORE                #core ATM protocol family
 options         ATM_IP                  #IP over ATM support
 options         ATM_UNI                 #UNI signalling manager
 options         ATM_SIGPVC              #SIGPVC signalling manager
 options         ATM_SPANS               #SPANS signalling manager
 
 Notes says that i should use one or the other, never both, and never a 
 mixture. Some things that have confused me, is my network card fails to 
 work unless device atm is uncommented. Also of the few places i found 
 online, people were using mixtures of each driver in there setup. I saw 
 alot of device atm, options atm_core, options atm_ip. Another thing to 
 note, is device idt does not work in the kernel, i have to load the 
 kernel module on boot.
 
 I can provide any information you need, just write me back. I am willing 
 to spend alot of time helping in any way i can to debug this. I can even 
 go as far as mailing one of the extra Fore LE25 atm network cards to 
 whoever needs it. I tryed the freebsd atm mailing list, and it seemed 
 quite dead. If there is someone else i should send this email too, or 
 something i could read, or extra information you need from me.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jan 3 05:55:06 GMT 2005 
Responsible-Changed-Why:  
Attempt to rescue this one from the 'pending' category. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75733 
Responsible-Changed-From-To: freebsd-bugs->freebsd-atm 
Responsible-Changed-By: arved 
Responsible-Changed-When: Sat Jun 4 20:43:51 GMT 2005 
Responsible-Changed-Why:  
Over to ATM Mailinglist 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75733 

From: Harti Brandt <hartmut.brandt@dlr.de>
To: bug-followup@freebsd.org, ender@tog.net
Cc:  
Subject: Re: kern/75733
Date: Thu, 9 Jun 2005 17:05:21 +0200 (CEST)

 Hi,
 
 with regards to configuration: you can use the following:
 
 - Harp (netatm) with its own drivers (idt, hfa)
 - Harp (netatm) with natm drivers (hatm, fatm, patm)
 - Natm with natm drivers
 
 In your case you're forced to use the first setup, because I've not yet 
 finished the 77211 driver. In that case you shouldn't need options atm.
 
 What happens if you don't use 'options atm'? Does the card just not work?
 Does the driver not load? You should also not need device hfa and device 
 harp (hfa is for the Fore PCA200 and harp is the pseudo-driver that 
 enables option 2 above).
 
 It would be interesting to see stat_val directly after it has been read 
 from the register. Could you add the following line just after the 
 stat_val assigment at the beginning of nicstar_intr()?
 
  	printf("%s: %08x %08x\n", stat_val, config_val);
 
 harti
Responsible-Changed-From-To: freebsd-atm->harti 
Responsible-Changed-By: harti 
Responsible-Changed-When: Fri Jun 10 07:03:56 GMT 2005 
Responsible-Changed-Why:  
I'll take care of this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75733 
State-Changed-From-To: open->feedback 
State-Changed-By: kmacy 
State-Changed-When: Mon Nov 19 08:20:30 UTC 2007 
State-Changed-Why:  

Did this ever get fixed? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75733 
State-Changed-From-To: feedback->closed 
State-Changed-By: kmacy 
State-Changed-When: Mon Nov 19 18:24:10 UTC 2007 
State-Changed-Why:  

Submitter mail bounces and harti could not reproduce. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75733 
>Unformatted:
