]> 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)
commit51807b4d320932ab5b657c9382699fbde67f1bf1
treeaddc3be80b64e1fa9277da4c4c6005ae853fdcfb
parent512f961a2cdcc27818c924e3efe06889f13b9d03
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: c4519f3da0e4 ("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