diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2015-04-01 21:41:16 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-01 14:47:20 -0400 |
commit | ae469b68a557d1bd538c9122eaf99cf09fc242f2 (patch) | |
tree | 3d0fb3e2945446990f51a14117633829fb8f31d9 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 7ef65a42111270f343b26673c10e48180871326b (diff) | |
download | lwn-ae469b68a557d1bd538c9122eaf99cf09fc242f2.tar.gz lwn-ae469b68a557d1bd538c9122eaf99cf09fc242f2.zip |
cxgb4: Fix to dump devlog, even if FW is crashed
Add new Common Code routines to retrieve Firmware Device Log
parameters from PCIE_FW_PF[7]. The firmware initializes its Device Log very
early on and stores the parameters for its location/size in that register.
Using the parameters from the register allows us to access the Firmware
Device Log even when the firmware crashes very early on or we're not
attached to the firmware
Based on original work by Casey Leedom <leedom@chelsio.com>
Signed-off-by: Hariprasad Shenai <hariprasad@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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 8816c645de7d..c6ff4890d171 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -1136,6 +1136,8 @@ int cxgb4_t4_bar2_sge_qregs(struct adapter *adapter, unsigned int qtimer_val(const struct adapter *adap, const struct sge_rspq *q); + +int t4_init_devlog_params(struct adapter *adapter); int t4_init_sge_params(struct adapter *adapter); int t4_init_tp_params(struct adapter *adap); int t4_filter_field_shift(const struct adapter *adap, int filter_sel); |