All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: frahm@irsamc.ups-tlse.fr
Cc: grundler@parisc-linux.org, linux-kernel@vger.kernel.org,
	jgarzik@pobox.org
Subject: Re: [Fwd: 2.6.10-rc3: tulip-driver: tulip_stop_rxtx() failed]
Date: Sun, 12 Dec 2004 20:36:55 -0700	[thread overview]
Message-ID: <20041213033655.GA26501@colo.lackof.org> (raw)
In-Reply-To: <200412130219.iBD2JKF4001537@albireo.free.fr>

On Mon, Dec 13, 2004 at 03:19:20AM +0100, frahm@irsamc.ups-tlse.fr wrote:
> Dear Grant, 
> 
> I am happy to help and to see my feedback was indeed useful.

yes, indeed.

>  First I
> would like to add to my first message, that I have observed a kind of
> freezing for several seconds (5-10 seconds) of Firefox with one
> particular web-page which heavily uses a flashplayer- and jave-plugin.
> This does not appear in exactly the same form up to 2.6.10-rc2 but the
> web-page under consideration is always kind of "heavy" and difficult to
> load even with a high-speed connection. 

Sorry - while this sounds like a pre-emption/scheduling problem,
I'm not much help in dealing with it. And I'm no friend of flash player
though I understand why corporate types like it (form of DRM).
But I don't like flash as it tends to take over the user session.

...
> Dec 13 02:42:57 albireo kernel: Linux Tulip driver version 1.1.13 (May 11, 2002)

Oh..that reminds me to ask for the "date" to either be updated or removed.

...
> The values of CSR5 and CSR6 are reproduceable
> but different for activation and deactivation:
> 
>   activation: (CSR5 0xfc664010 CSR6 0xff972113)
> deactivation: (CSR5 0xfc06c012 CSR6 0xff970111)

Yes - I agree with you summary - Thanks!

The bits in CSR5 that I care about are TS (22:20) and RS (19:17).
For activation, TS is 6 and for deactivation it's 0. That's correct.
For activation and deactivation, RS is 3, and that's wrong.

TS
0 == Stopped--RESET command or STOP COMMAND issued, or transmit jabber expired
6 == Suspended--Transmit FIFO underflow, or an unavailable transmit descriptor

RS
3 == Running, waiting for RX packet

And in CSR6, I only care about ST (bit 13) and SR (bit 1).
For activation ST is 1 and deactivation it's 0.
But SR is always 1. Again, that's wrong but agrees with "CSR5.RS".

ST = Start/Stop transmission
SR = Start/Stop Receive

To summarize, the CSR5 and CSR6 values agree.
It looks like this chip does not implement shutting down the RX engine
*or* it just lies about the state of the machine.

My advice is do NOT ifdown the NIC once you bring it up as I'm inclined
to believe the former. If the RX machine really isn't stopped, it will
continue to DMA and corrupt memory. One would either need a PCI bus
analyzer or hack the code to monitor the RX descriptors and associated
buffers  *after* tulip_stop_rxtx() had been called to see if they
get modified.

> I have also joined the output of /proc/pci for the network card in case
> it may contain some useful information:
> 
>   Bus  0, device  14, function  0:
>     Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 17).
>       IRQ 10.
>       Master Capable.  Latency=32.  Min Gnt=255.Max Lat=255.
>       I/O at 0xa400 [0xa4ff].
>       Non-prefetchable 32 bit memory at 0xe0000000 [0xe00003ff].

Nothing unusual here. Just good to document the defect.

thanks!
grant

  reply	other threads:[~2004-12-13  3:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <41BAAC04.6090706@pobox.com>
2004-12-12 21:48 ` [Fwd: 2.6.10-rc3: tulip-driver: tulip_stop_rxtx() failed] Grant Grundler
2004-12-13  2:19   ` frahm
2004-12-13  3:36     ` Grant Grundler [this message]
     [not found]   ` <200412130313.iBD3DAF4004365@albireo.free.fr>
2004-12-13  3:59     ` Grant Grundler
2004-12-13 11:52       ` FRAHM Klaus
2004-12-15  0:57       ` John W. Linville
2004-12-15 17:21         ` Grant Grundler
2004-12-13  3:14 frahm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041213033655.GA26501@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=frahm@irsamc.ups-tlse.fr \
    --cc=jgarzik@pobox.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.