mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manfred <manfred@colorfullife.com>
To: alex.buell@tahallah.clara.co.uk, linux-kernel@vger.kernel.org
Subject: Re: Netgear FA311
Date: Mon, 25 Dec 2000 17:50:59 +0100	[thread overview]
Message-ID: <3A477AF3.E76A8083@colorfullife.com> (raw)

Alex wrote:
> In the logs I'm seeing this: 
> 
> Dec 25 15:25:18 tahallah last message repeated 2 times 
> Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0783. 
> Dec 25 15:25:19 tahallah kernel: eth0: Something Wicked happened! 0780. 

783 means:
	Tx Underrun
	Tx Idle
	Tx Packet Error
	Tx Descriptor
	Rx Packet Error
	Rx Descriptor
	Rx OK.

Hmm. I download the Documentation from National
(http://www.national.com/pf/DP/DP83815.html),
and the the tx burst size/fill threshold/drain threshold combination is
invalid:

<<<<<<<< from natsemi.c:
 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np->tx_config = (1<<28) +       /* Automatic transmit padding */
             (1<<23) +       /* Excessive collision retry */
             (0x0<<20) +     /* Max DMA burst = 512 byte */
             (8<<8) +        /* fill threshold = 256 byte */
             2;              /* drain threshold = 64 byte */
 writel(np->tx_config, ioaddr + TxConfig);
>>>>>>>>>>>>

But:
<<<<<<<< page 51
The MXDMA MUST NOT be greater than the Tx Fill Threshold 
>>>>>>>>>>

Could you try this setup?
<<<<<<<<
 /* Configure the PCI bus bursts and FIFO thresholds. */
 /* Configure for standard, in-spec Ethernet. */
 np->tx_config = (1<<28) +       /* Automatic transmit padding */
             (1<<23) +       /* Excessive collision retry */
             (6<<20) +     /* Max DMA burst = 128 byte */
             (8<<8) +        /* fill threshold = 256 byte */
             8;              /* drain threshold = 256 byte */
 writel(np->tx_config, ioaddr + TxConfig);
>>>>>>>>

--
  Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2000-12-25 17:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-25 16:50 Manfred [this message]
2000-12-25 17:40 ` Alex Buell
  -- strict thread matches above, loose matches on Subject: below --
2000-12-25 15:29 Alex Buell
2000-12-23 16:11 Alex Buell
2000-12-23 17:54 ` Mohammad A. Haque
2000-12-23 18:48 ` Mohammad A. Haque
2000-12-23 19:15   ` Marcus Meissner
2000-12-23 19:27     ` Alex Buell
2000-12-23 19:35       ` tc lewis

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=3A477AF3.E76A8083@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=alex.buell@tahallah.clara.co.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®