]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:47:19 +0000 (08:47 +0200)
commit9b46ee6192876ae23d61614b0657182ef66eddb7
treedfc231c20103dd72a45cff7471e92e45fb79c097
parent698e56363274627242412585fcb464d2af9bc758
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