]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: NIX TX overwrites SQ_CTX_HW_S[SQ_INT]
authorRatheesh Kannoth <rkannoth@marvell.com>
Wed, 2 Nov 2022 03:11:13 +0000 (08:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Nov 2022 10:55:05 +0000 (10:55 +0000)
commit51afe9026d0c63263abe9840e629f118d7405b36
treeaddc3be80b64e1fa9277da4c4c6005ae853fdcfb
parent1a0c016a4831ea29be09bbc8162d4a2a0690b4b8
octeontx2-pf: NIX TX overwrites SQ_CTX_HW_S[SQ_INT]

In scenarios where multiple errors have occurred
for a SQ before SW starts handling error interrupt,
SQ_CTX[OP_INT] may get overwritten leading to
NIX_LF_SQ_OP_INT returning incorrect value.
To workaround this read LMT, MNQ and SQ individual
error status registers to determine the cause of error.

Fixes: 4ff7d1488a84 ("octeontx2-pf: Error handling support")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_struct.h