diff options
author | Tayar, Tomer <Tomer.Tayar@cavium.com> | 2017-06-13 05:15:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-13 13:32:58 -0400 |
commit | ace17c369295f088dc8ac8ff468602646fa5cced (patch) | |
tree | 47f80451036b6efb752983ff5e379f1f95eb664f | |
parent | 60cfe1eaccb8af598ebe1bdc44e157ea30fcdd81 (diff) |
qed: fix dump of context data
Currently when dumping a context data only word number '1' is read for the
entire context.
Fixes: c965db444629 ("qed: Add support for debug data collection")
Signed-off-by: Tomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_debug.c b/drivers/net/ethernet/qlogic/qed/qed_debug.c index 483241b4b05d..a672f6a860dc 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_debug.c +++ b/drivers/net/ethernet/qlogic/qed/qed_debug.c | |||
@@ -2956,7 +2956,7 @@ static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn, | |||
2956 | qed_wr(p_hwfn, | 2956 | qed_wr(p_hwfn, |
2957 | p_ptt, | 2957 | p_ptt, |
2958 | s_storm_defs[storm_id].cm_ctx_wr_addr, | 2958 | s_storm_defs[storm_id].cm_ctx_wr_addr, |
2959 | BIT(9) | lid); | 2959 | (i << 9) | lid); |
2960 | *(dump_buf + offset) = qed_rd(p_hwfn, | 2960 | *(dump_buf + offset) = qed_rd(p_hwfn, |
2961 | p_ptt, | 2961 | p_ptt, |
2962 | rd_reg_addr); | 2962 | rd_reg_addr); |