[Description]

Change ADMA RX HANG condition
-- ADMA RX HANG condition
   - PSE p0 output queue is not zero
   - CDM1 FSM indication CDM is from PSE to ADMA status
   - ADMA DBG MONITOR show CURR_STAT is zero
   - CDM_FIFO_RDY is zero
   - remove check RX_FIFO_WCNT is zero because sometimes it is not zero

[Release-log]
N/A

Change-Id: I666d3df5eddc128f6f2fc4df44b9c76aa8b64254
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6182238
This commit is contained in:
developer 2022-06-30 12:27:05 +08:00 committed by hanwckf
parent cb8d930879
commit 9c0d04cab0

View File

@ -206,7 +206,6 @@ void mtk_dma_monitor(struct timer_list *t)
u32 is_oq0_stuck = (mtk_r32(eth, MTK_PSE_OQ_STA(0)) & 0x1FF) != 0;
u32 is_cdm1_busy = (mtk_r32(eth, MTK_FE_CDM1_FSM) & 0xFFFF0000) != 0;
u32 is_adma_busy = ((mtk_r32(eth, MTK_ADMA_RX_DBG0) & 0x1F) == 0) &&
((mtk_r32(eth, MTK_ADMA_RX_DBG1) & 0x3F0000) == 0) &&
((mtk_r32(eth, MTK_ADMA_RX_DBG0) & 0x40) == 0);
if (cur_wdidx == prev_wdidx && is_wtx_busy &&