NetBSD Problem Report #26118

Received: (qmail 10008 invoked by uid 605); 29 Jun 2004 20:33:22 -0000
Message-Id: <200406292018.UAA01301@sopwith.solgatos.com>
Date: Tue, 29 Jun 2004 20:18:13 GMT
From: Dieter <netbsd@sopwith.solgatos.com>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: netbsd@sopwith.solgatos.com
To: gnats-bugs@gnats.netbsd.org
Subject: multiple tulip boards do not work in 1.6.2 using tlp driver
X-Send-Pr-Version: 3.95

>Number:         26118
>Category:       kern
>Synopsis:       multiple tulip boards do not work in 1.6.2 using tlp driver
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 29 20:34:00 +0000 2004
>Closed-Date:    
>Last-Modified:  Tue Jun 29 23:05:01 +0000 2004
>Originator:     Dieter
>Release:        NetBSD 1.6.2
>Organization:

>Environment:


System: NetBSD sopwith.uucp 1.6.2 NetBSD 1.6.2 (ALPHA-$Revision: 1.4 $) #11: Tue Jun 29 12:05:05 PDT 2004 root@sopwith.uucp:/usr/src/sys/arch/alpha/compile/SOPWITH alpha
Architecture: alpha
Machine: alpha
>Description:
	Multiple tulip boards, using the tlp driver, attempt to share an interrupt,
and don't work.

See:
	http://mail-index.NetBSD.org/netbsd-help/2004/05/18/0006.html
	http://mail-index.NetBSD.org/netbsd-help/2004/05/19/0006.html
	http://mail-index.NetBSD.org/netbsd-help/2004/05/21/0001.html
	http://mail-index.NetBSD.org/netbsd-help/2004/05/21/0002.html

>How-To-Repeat:
	Plug in 2 tulip boards, use the tlp driver, observe that only one works,
presumably because they are attempting to share an interrupt.
>Fix:

workaround #1:

	The fix in http://mail-index.NetBSD.org/netbsd-help/2004/05/19/0006.html
works for me, however note that Manuel Bouyer says it will break multi-port boards.

workaround #2:

	I did get the de driver working, by hard coding the media type
in /etc/rc.conf.  However, I get the impression that the de driver may go
away someday?
>Release-Note:
>Audit-Trail:

From: "Charles M. Hannum" <abuse@spamalicious.com>
To: netbsd@sopwith.solgatos.com
Cc: gnats-bugs@gnats.netbsd.org, current-users@netbsd.org
Subject: Re: kern/26118: multiple tulip boards do not work in 1.6.2 using tlp driver
Date: Tue, 29 Jun 2004 21:15:01 +0000

 --Boundary-00=_Vvd4AH61JZ0Gp+X
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline

 On Tuesday 29 June 2004 20:18, Dieter wrote:
 > 	The fix in http://mail-index.NetBSD.org/netbsd-help/2004/05/19/0006.html
 > works for me, however note that Manuel Bouyer says it will break multi-port
 > boards.

 Something like the following would at least be an improvement, though it 
 wouldn't fix the problem in all cases.

 If someone has one of the Cogent boards, could you set tlp_srom_debug and 
 email me the output?

 --Boundary-00=_Vvd4AH61JZ0Gp+X
 Content-Type: text/x-diff;
   charset="iso-8859-1";
   name="tlp.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="tlp.diff"

 Index: if_tlp_pci.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/if_tlp_pci.c,v
 retrieving revision 1.76
 diff -u -r1.76 if_tlp_pci.c
 --- if_tlp_pci.c	17 Mar 2004 13:54:09 -0000	1.76
 +++ if_tlp_pci.c	29 Jun 2004 21:08:53 -0000
 @@ -1212,6 +1212,8 @@
  	const u_int8_t *enaddr;
  {

 +	if (strcmp(psc->sc_tulip.sc_dev.dv_parent->dv_cfdata->cf_name, "ppb"))
 +		return;
  	strcpy(psc->sc_tulip.sc_name, "Cogent multi-port");
  	psc->sc_flags |= TULIP_PCI_SHAREDINTR|TULIP_PCI_SHAREDROM;
  }

 --Boundary-00=_Vvd4AH61JZ0Gp+X--

From: "Steven M. Bellovin" <smb@research.att.com>
To: "Charles M. Hannum" <abuse@spamalicious.com>
Cc: netbsd@sopwith.solgatos.com, gnats-bugs@gnats.netbsd.org,
  current-users@NetBSD.org
Subject: Re: kern/26118: multiple tulip boards do not work in 1.6.2 using tlp driver 
Date: Tue, 29 Jun 2004 19:04:40 -0400

 Whatever the problem, it's not all instances of two Tulip boards; I've 
 been running this way for about a year on 1.6.x:

 $ dmesg|egrep tlp
 tlp0 at pci0 dev 9 function 0: ADMtek AN985 Ethernet, pass 1.1
 tlp0: interrupting at irq 10
 tlp0: Ethernet address 00:0c:41:22:cc:01
 ukphy0 at tlp0 phy 1: Generic IEEE 802.3u media interface
 tlp1 at pci0 dev 11 function 0: ADMtek AN985 Ethernet, pass 1.1
 tlp1: interrupting at irq 12
 tlp1: Ethernet address 00:20:78:1e:1f:ef
 acphy0 at tlp1 phy 1: ACXXX 10/100 media interface, rev. 0


 		--Steve Bellovin, http://www.research.att.com/~smb


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.