Commit 38cf478
net: ethernet: mtk_eth_soc: log DMA hangs discarded by the forced-reset gate
Commit 049c428 ("net: ethernet: mtk_eth_soc: support forced reset
control") gates the hang-triggered SER behind eth->reset.force, which
defaults to off. mtk_hw_reset_monitor_work() still evaluates
mtk_hw_check_dma_hang() every second, but when the gate is closed a
positive detection is discarded without a trace: the DMA engine stays
in whatever state tripped three consecutive hang checks, and nothing in
the log records that it happened.
Upstream schedules the recovery unconditionally here, so the gate is a
deliberate semantic deviation; keep it, but emit a ratelimited error
when a detection is dropped so that degraded-DMA states can be
correlated with traffic symptoms from the log alone.
No functional change when no hang is detected or when forced reset is
enabled.
Signed-off-by: Mihai Ordean <research@mihaiordean.com>1 parent cc5e92b commit 38cf478
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4644 | 4644 | | |
4645 | 4645 | | |
4646 | 4646 | | |
4647 | | - | |
4648 | | - | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
4649 | 4654 | | |
4650 | 4655 | | |
4651 | 4656 | | |
| |||
0 commit comments