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/
This archive was generated by hypermail 2b29 : Sun Dec 31 2000 - 21:00:08 EST