Forum Discussion
Dzar
Occasional Contributor
7 years agoReading HPS EMAC counters not reliable
UPDATE: Seems EMAC1 is looking OK. The problem, there, was understanding what's meant by "good" in some cases. But EMAC0 looks like it's almost not counting anything. It's quite sporadic when I see a...
- 7 years ago
Final answer... Set the PR bit, not the RA bit. One does not need both, but the PR bit is the correct one if one wants counters to work. No documentation on this, sadly, but that's what we've deduced.
Dzar
Occasional Contributor
7 years agoI am setting the fsf bit (bit 25) on both EMAC's DMA controller. Always have been.
I do see that on a Linux system, it seems to be able to read the RX counters on EMAC0. (Assuming that ifconfig and /dev use those). So I've been pouring over the driver (supplied by Altera/Intel) for Linux to see if I'm doing anything wrong/different and have not found that, yet. So it's still confounding.