octeontx2-af: Add NIX Errata workaround on CN10K silicon
authorGeetha sowjanya <gakula@marvell.com>
Fri, 17 Feb 2023 05:51:12 +0000 (11:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 10:42:37 +0000 (10:42 +0000)
commit933a01ad599766cf9bcda788f956f425a8b0b0a2
treeab85573d13b2761177ada86bfa410aa94f4057cc
parentc2a978c171a6d44d4d9710e7e4455f75d34aecee
octeontx2-af: Add NIX Errata workaround on CN10K silicon

This patch adds workaround for below 2 HW erratas

1. Due to improper clock gating, NIXRX may free the same
NPA buffer multiple times.. to avoid this, always enable
NIX RX conditional clock.

2. NIX FIFO does not get initialized on reset, if the SMQ
flush is triggered before the first packet is processed, it
will lead to undefined state. The workaround to perform SMQ
flush only if packet count is non-zero in MDQ.

Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h