Commit ace17c36 authored by Tayar, Tomer's avatar Tayar, Tomer Committed by David S. Miller

qed: fix dump of context data

Currently when dumping a context data only word number '1' is read for the
entire context.

Fixes: c965db44 ("qed: Add support for debug data collection")
Signed-off-by: default avatarTomer Tayar <Tomer.Tayar@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 60cfe1ea
...@@ -2956,7 +2956,7 @@ static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn, ...@@ -2956,7 +2956,7 @@ static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn,
qed_wr(p_hwfn, qed_wr(p_hwfn,
p_ptt, p_ptt,
s_storm_defs[storm_id].cm_ctx_wr_addr, s_storm_defs[storm_id].cm_ctx_wr_addr,
BIT(9) | lid); (i << 9) | lid);
*(dump_buf + offset) = qed_rd(p_hwfn, *(dump_buf + offset) = qed_rd(p_hwfn,
p_ptt, p_ptt,
rd_reg_addr); rd_reg_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment