aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>2011-09-01 17:51:42 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-15 15:40:06 -0400
commit4f2f25f9f04a92aab31e3bc1dcb84bec33acc773 (patch)
tree4d76d60547be115af513b05429fa6802ecafbaba /Documentation/networking
parent6096ce0b02c1cb5a5df6a726c5727c267b2468e0 (diff)
stmmac: update the doc with new info about the driver's debug (v3)
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/stmmac.txt33
1 files changed, 32 insertions, 1 deletions
diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt
index 57a24108b845..40ec92ce4c84 100644
--- a/Documentation/networking/stmmac.txt
+++ b/Documentation/networking/stmmac.txt
@@ -235,7 +235,38 @@ reset procedure etc).
235 o enh_desc.c: functions for handling enhanced descriptors 235 o enh_desc.c: functions for handling enhanced descriptors
236 o norm_desc.c: functions for handling normal descriptors 236 o norm_desc.c: functions for handling normal descriptors
237 237
2385) TODO: 2385) Debug Information
239
240The driver exports many information i.e. internal statistics,
241debug information, MAC and DMA registers etc.
242
243These can be read in several ways depending on the
244type of the information actually needed.
245
246For example a user can be use the ethtool support
247to get statistics: e.g. using: ethtool -S ethX
248(that shows the Management counters (MMC) if supported)
249or sees the MAC/DMA registers: e.g. using: ethtool -d ethX
250
251Compiling the Kernel with CONFIG_DEBUG_FS and enabling the
252STMMAC_DEBUG_FS option the driver will export the following
253debugfs entries:
254
255/sys/kernel/debug/stmmaceth/descriptors_status
256 To show the DMA TX/RX descriptor rings
257
258Developer can also use the "debug" module parameter to get
259further debug information.
260
261In the end, there are other macros (that cannot be enabled
262via menuconfig) to turn-on the RX/TX DMA debugging,
263specific MAC core debug printk etc. Others to enable the
264debug in the TX and RX processes.
265All these are only useful during the developing stage
266and should never enabled inside the code for general usage.
267In fact, these can generate an huge amount of debug messages.
268
2696) TODO:
239 o XGMAC is not supported. 270 o XGMAC is not supported.
240 o Review the timer optimisation code to use an embedded device that will be 271 o Review the timer optimisation code to use an embedded device that will be
241 available in new chip generations. 272 available in new chip generations.