Skip to content

Commit ace17c3

Browse files
Tayar, Tomerdavem330
authored andcommitted
qed: fix dump of context data
Currently when dumping a context data only word number '1' is read for the entire context. Fixes: c965db4 ("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>
1 parent 60cfe1e commit ace17c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qed/qed_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn,
29562956
qed_wr(p_hwfn,
29572957
p_ptt,
29582958
s_storm_defs[storm_id].cm_ctx_wr_addr,
2959-
BIT(9) | lid);
2959+
(i << 9) | lid);
29602960
*(dump_buf + offset) = qed_rd(p_hwfn,
29612961
p_ptt,
29622962
rd_reg_addr);

0 commit comments

Comments
 (0)