]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Unlock contexts in the queue context cache in case of fault detection
authorSuman Ghosh <sumang@marvell.com>
Tue, 7 Mar 2023 10:49:08 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:28 +0000 (08:50 +0100)
commit1796bf8e154b6068040cc6c798f16ddd94c9adeb
tree7b80ff5703661d21e03cdd131f0a5c2b0142098a
parente493c8bd2f981920c2ec901f7a55aa17b2cf37ac
octeontx2-af: Unlock contexts in the queue context cache in case of fault detection

[ Upstream commit 410fea48b0aa5c63d8247d691488be7074cb6c31 ]

NDC caches contexts of frequently used queue's (Rx and Tx queues)
contexts. Due to a HW errata when NDC detects fault/poision while
accessing contexts it could go into an illegal state where a cache
line could get locked forever. To makesure all cache lines in NDC
are available for optimum performance upon fault/lockerror/posion
errors scan through all cache lines in NDC and clear the lock bit.

Fixes: d5ff4853f5b8 ("octeontx2-af: NPA AQ instruction enqueue support")
Signed-off-by: Suman Ghosh <sumang@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h