Via-Rhine stalls - transmit errors
Quoted 4 lines
That patch was an attempt to fix failed transmission and it contains all sorts of junk. It worked for Andy, but not for one of the others with that
problem
Quoted 4 lines
(and that motherboard, a Dragon+ with on-board eth chip).
You probably shouldn't use that patch at all ...
Ok, I'll follow your advice and start from scratch... or the kernel driver that is :) Interestingly, however,
I was able to somehow get consistent stall-free transfers for a while using your patch and some other fixes of my own...but then I changed things and was unable to reproduce the same situation... This is happening again with the kernel driver. Sometimes my card works great, sometimes it works ok, and sometimes it doesn't. I am losing faith in all hardware... now I don't trust my Netgear card on the other side either. The thing is, this Via-rhine card works fine under Win 98 (I have a dual-boot) or under light load (ping or ping flood). It only breaks under heavy transmit.
Quoted 3 lines
VIA has drivers for VT86c100A, the VT6102 and the VT6105, available here:
http://www.viaarena.com/?PageID=71
tried that one...it seemed to fix transmit when initiated from my desktop computer, but it freezes everything when I initiate the transmit in the same direction from the laptop.
....just like the time I decided to divide by 0 in the kernel :)
Quoted 2 lines
There is also the Donald Becker driver at
http://www.scyld.com/
This one won't compile. Lots of errors.
Entire include files are missing.
Quoted 5 lines
There is an explanation of common "something wicked" errors on
http://www.scyld.com/network/ethercard.html...So if you trust the explanations of the errors it
I do, the erorrs are correct. However for some of those errors you can't even get the "something wicked" message the way that the code is written. Other errors are handled elsewhere. The whole thing is complicated and may cause redundancies and problems. Error handling needs improvement.
Quoted 4 lines
There were ideas on changed meaning
of an interrupt bit (0x0200) and the "fix" for that is probably causing
this.
Isn't this your patch?
It adds a mii/underflow inerrupt switch scheme.
By the way,
/* Enable interrupts by setting the interrupt mask. */
writew(IntrRxDone | IntrRxErr | IntrRxEmpty|
IntrRxOverflow| IntrRxDropp
ed|IntrTxDone | IntrTxAbort | IntrTxUnderrun | IntrPCIErr | IntrStatsMax | IntrLinkChange | IntrMIIChange, ioaddr + IntrEnable);
Where's IntrRxEarly? IntrRxNoBuf? IntrRxWakeUp? IntrTxAborted? .... I added those to my version.
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
Quoted 4 lines · Ivan Gurdiev
tried that one...it seemed to fix transmit when initiated from my desktop computer, but it freezes everything when I initiate the transmit in the same direction from the laptop.
Ok, that's bad but still not so bad. It could be a locking problem in the via driver but that is fixable you just need to find out where it hangs and then guess why :)
(sysrq to get stacktraces and run through ksymoops, or kernel debugger or
some deadlock detection thing, if no one gives you more specific directions search for ikd)
Quoted 2 lines
This one won't compile. Lots of errors. Entire include files are missing.
You need to follow the instructions on those pages, there are some additional header files for backwards compatibility. I don't know if it compiles under 2.4 but I think the idea is that it should.
Quoted 6 lines
I do, the erorrs are correct. However for some of those errors you can't even get the "something wicked" message the way that the code is written. Other errors are handled elsewhere. The whole thing is complicated and may cause redundancies and problems. Error handling needs improvement.
I believe the "something wicked" is for an error/uncommon event that isn't handled and so the known events are filtered out. If you get a IntrTxAbort by itself then a message isn't printed, but if you get a IntrTxAbort and IntrTxDone you get some output (000a).
If you look at the via code or the parts I copied from it, then yes errors are handled both in the error and the tx parts of the interrupt handler. The reason for that is that some handling is done for error bits set in the descriptor word and the others are based on the interrupt bits.
Perhaps those aren't the redundancies you mean.
Quoted 6 lines
Quoted 4 lines
There were ideas on changed meaning
of an interrupt bit (0x0200) and the "fix" for that is probably causing
this.Isn't this your patch?
Yes? I don't understand that question to that statement.
People around me (in a virtual sense) had ideas that the newer datasheets described a different function for that bit. When fixing that it seems like the older chips weren't too happy. But the goal of that patch was to try and fix the "Dragon+" errors so it wasn't tested on older chips.
Quoted 2 lines
Where's IntrRxEarly? IntrRxNoBuf? IntrRxWakeUp? IntrTxAborted? .... I added those to my version.
I don't know. Possibly those flags are never set without also setting another flag, like IntrRxErr, and the driver doesn't want to do anything special on a "IntrRxNoBuf" error anyway. I see no harm in adding them.
Maybe ask Donald Becker why he didn't when he wrote that code?
/Urban