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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 23:16:14 +0000 (16:16 -0700)
commit1bfb3dea965ff9f6226fd1709338f227363b6061
tree206623defe92ba08bf25e72cc42aa7f540d5dca3
parentfb6ec87f7229b92baa81b35cbc76f2626d5bfadb
cxgb4: avoid collecting SGE_QBASE regs during traffic

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>
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c