Skip to content

Commit 042bf24

Browse files
LorenzoBianconikuba-moo
authored andcommitted
net: ethernet: mtk_wed: add some more info in wed_txinfo_show handler
Add some new info in Wireless Ethernet Dispatcher wed_txinfo_show debugfs handler useful during debugging. Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://lore.kernel.org/r/3390292655d568180b73d2a25576f61aa63310e5.1693157377.git.lorenzo@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent a014c35 commit 042bf24

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

drivers/net/ethernet/mediatek/mtk_wed_debugfs.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,17 @@ wed_txinfo_show(struct seq_file *s, void *data)
127127
DUMP_WDMA_RING(WDMA_RING_RX(0)),
128128
DUMP_WDMA_RING(WDMA_RING_RX(1)),
129129

130-
DUMP_STR("TX FREE"),
130+
DUMP_STR("WED TX FREE"),
131131
DUMP_WED(WED_RX_MIB(0)),
132+
DUMP_WED_RING(WED_RING_RX(0)),
133+
DUMP_WED(WED_WPDMA_RX_COHERENT_MIB(0)),
134+
DUMP_WED(WED_RX_MIB(1)),
135+
DUMP_WED_RING(WED_RING_RX(1)),
136+
DUMP_WED(WED_WPDMA_RX_COHERENT_MIB(1)),
137+
138+
DUMP_STR("WED WPDMA TX FREE"),
139+
DUMP_WED_RING(WED_WPDMA_RING_RX(0)),
140+
DUMP_WED_RING(WED_WPDMA_RING_RX(1)),
132141
};
133142
struct mtk_wed_hw *hw = s->private;
134143
struct mtk_wed_device *dev = hw->wed_dev;

drivers/net/ethernet/mediatek/mtk_wed_regs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ struct mtk_wdma_desc {
266266

267267
#define MTK_WED_WPDMA_TX_MIB(_n) (0x5a0 + (_n) * 4)
268268
#define MTK_WED_WPDMA_TX_COHERENT_MIB(_n) (0x5d0 + (_n) * 4)
269+
#define MTK_WED_WPDMA_RX_MIB(_n) (0x5e0 + (_n) * 4)
270+
#define MTK_WED_WPDMA_RX_COHERENT_MIB(_n) (0x5f0 + (_n) * 4)
269271

270272
#define MTK_WED_WPDMA_RING_TX(_n) (0x600 + (_n) * 0x10)
271273
#define MTK_WED_WPDMA_RING_RX(_n) (0x700 + (_n) * 0x10)

0 commit comments

Comments
 (0)