Эх сурвалжийг харах

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>
Tayar, Tomer 8 жил өмнө
parent
commit
ace17c3692

+ 1 - 1
drivers/net/ethernet/qlogic/qed/qed_debug.c

@@ -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);