cxgb4: avoid collecting SGE_QBASE regs during traffic
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Sat, 27 Mar 2021 18:19:08 +0000 (23:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:24:15 +0000 (08:24 +0200)
commit200c8453287f660d129222bff718e3d8da503fc4
treedaa2b38e620f5c68b9905dcdb64705cd2fc6f531
parente9bdd3e45f0ecac310ba25bd977c2dbbfd63363d
cxgb4: avoid collecting SGE_QBASE regs during traffic

[ Upstream commit 1bfb3dea965ff9f6226fd1709338f227363b6061 ]

Accessing SGE_QBASE_MAP[0-3] and SGE_QBASE_INDEX registers can lead
to SGE missing doorbells under heavy traffic. So, only collect them
when adapter is idle. Also update the regdump range to skip collecting
these registers.

Fixes: 80a95a80d358 ("cxgb4: collect SGE PF/VF queue map")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c