]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: EST interrupts handling and error reporting
authorVoon Weifeng <weifeng.voon@intel.com>
Thu, 18 Mar 2021 00:50:52 +0000 (08:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:34:07 +0000 (14:34 -0700)
commit3d66c4842d037cab20aa3477693e05816e415c29
tree8aa370ee6745e43c45b8c9e353dbea7a28e70dc3
parent5820c7f336d2323b74421c2605b26850dbb63541
net: stmmac: EST interrupts handling and error reporting

Enabled EST related interrupts as below:
1) Constant Gate Control Error (CGCE)
2) Head-of-Line Blocking due to Scheduling (HLBS)
3) Head-of-Line Blocking due to Frame Size (HLBF).
4) Base Time Register error (BTRE)
5) Switch to S/W owned list Complete (SWLC)

For HLBS, the user will get the info of all the queues that shows this
error. For HLBF, the user will get the info of all the queue with the
latest frame size which causes the error. Frame size 0 indicates no
error.

The ISR handling takes place when EST feature is enabled by user.

Signed-off-by: Voon Weifeng <weifeng.voon@intel.com>
Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Co-developed-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac5.c
drivers/net/ethernet/stmicro/stmmac/dwmac5.h
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c