]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
octeontx2-af: verify CQ context updates
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 17 Sep 2021 13:10:24 +0000 (18:40 +0530)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:52 +0000 (10:28 +0100)
commit70f45dbc5dfd7f1861a1578c7b5f7c1419b46a12
tree4ef443b7ba5dc1c4cf26c7fdcd921212166bb09a
parent9ce72ae837b09c7d9152c6fb7dd8c45ac6e0a5c4
octeontx2-af: verify CQ context updates

BugLink: https://bugs.launchpad.net/bugs/1959879
[ Upstream commit 14e94f9445a9e91d460f5d4b519f8892c3fb14bb ]

As per HW errata AQ modification to CQ could be discarded on heavy
traffic. This patch implements workaround for the same after each
CQ write by AQ check whether the requested fields (except those
which HW can update eg: avg_level) are properly updated or not.

If CQ context is not updated then perform AQ write again.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c