Subject: Re: kern/26118: multiple tulip boards do not work in 1.6.2 using tlp driver
To: None <netbsd@sopwith.solgatos.com>
From: Charles M. Hannum <abuse@spamalicious.com>
List: current-users
Date: 06/29/2004 21:15:01
--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--