Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2000 02:55:15 -0500 (EST)
From:      Bill Paul <wpaul@skynet.ctr.columbia.edu>
To:        Arjan.deVet@adv.iae.nl
Cc:        bugs@freebsd.org
Subject:   Re: kern/15986: xl ethernet interface hanging
Message-ID:  <200001090755.CAA17123@skynet.ctr.columbia.edu>
In-Reply-To: <20000108130109.A321E22CD@adv.iae.nl> from "Arjan de Vet" at Jan 8, 2000 02:01:09 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Of all the gin joints in all the towns in all the world, Arjan de Vet 
had to walk into mine and say:

> I noticed that my xl0 ethernet interface didn't work anymore (or with
> enormous delays) and I traced it back to revision 1.69 in if_xl.c:

Grrrrr. This is *NOT* a proper problem description. Where's your
*complete* dmesg output? Where's detailed description of the failure? 
Where's the instructions that show how to duplicate the problem?

First you say "hanging" in the subject line, then you say "didn't
work anymore." These are vague terms. Be specific. Don't assume that
I'm just going to somehow know exactly what you mean.

> Because the comment talks about RX/TX buffers I tried this fix:
 
> Index: if_xl.c
> ===================================================================
> RCS file: /home/freebsd/CVS/src/sys/pci/if_xl.c,v
> retrieving revision 1.71
> diff -u -r1.71 if_xl.c
> --- if_xl.c	2000/01/03 15:28:47	1.71
> +++ if_xl.c	2000/01/08 12:30:48
> @@ -2426,6 +2426,8 @@
>  	 */
>  	xl_stop(sc);
>  
> +	CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_RX_RESET);
> +	xl_wait(sc);
>  	CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_TX_RESET);
>  	xl_wait(sc);
>  	DELAY(10000);
> 
> and then my xl0 interface worked again. Is this a correct solution?

No. The whole reason I avoid RX reset is that is screws up other cards.
I really want a complete description of *all* the hardware involved here,
and I want a much more detailed description of your problem and how/when
it happens.

-Bill

-- 
=============================================================================
-Bill Paul            (212) 854-6020 | System Manager, Master of Unix-Fu
Work:         wpaul@ctr.columbia.edu | Center for Telecommunications Research
Home:  wpaul@skynet.ctr.columbia.edu | Columbia University, New York City
=============================================================================
 "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness"
=============================================================================


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001090755.CAA17123>