diff options
author | Kumar Sanghvi <kumaras@chelsio.com> | 2014-03-13 20:50:48 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-13 14:36:05 -0400 |
commit | 0f4d201f74f0d4f1f88c367185591195c8151e9c (patch) | |
tree | 2052d03aeff0515a734694b6517c2e3e260f38e9 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 68bce1922fa95e307f605cf43eac65e42c9076a6 (diff) | |
download | op-kernel-dev-0f4d201f74f0d4f1f88c367185591195c8151e9c.zip op-kernel-dev-0f4d201f74f0d4f1f88c367185591195c8151e9c.tar.gz |
cxgb4: Rectify emitting messages about SGE Ingress DMA channels being potentially stuck
Based on original work by Casey Leedom <leedom@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 509c976..50abe1d 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -556,8 +556,13 @@ struct sge { u32 pktshift; /* padding between CPL & packet data */ u32 fl_align; /* response queue message alignment */ u32 fl_starve_thres; /* Free List starvation threshold */ - unsigned int starve_thres; - u8 idma_state[2]; + + /* State variables for detecting an SGE Ingress DMA hang */ + unsigned int idma_1s_thresh;/* SGE same State Counter 1s threshold */ + unsigned int idma_stalled[2];/* SGE synthesized stalled timers in HZ */ + unsigned int idma_state[2]; /* SGE IDMA Hang detect state */ + unsigned int idma_qid[2]; /* SGE IDMA Hung Ingress Queue ID */ + unsigned int egr_start; unsigned int ingr_start; void *egr_map[MAX_EGRQ]; /* qid->queue egress queue map */ |