netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] qed: fix dump of context data
@ 2017-06-13  9:15 Tomer Tayar
  2017-06-13 17:33 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Tomer Tayar @ 2017-06-13  9:15 UTC (permalink / raw)
  To: davem, netdev; +Cc: yuval.mintz, Tomer Tayar

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>
---
 drivers/net/ethernet/qlogic/qed/qed_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/qlogic/qed/qed_debug.c b/drivers/net/ethernet/qlogic/qed/qed_debug.c
index 483241b..a672f6a 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,
 				qed_wr(p_hwfn,
 				       p_ptt,
 				       s_storm_defs[storm_id].cm_ctx_wr_addr,
-				       BIT(9) | lid);
+				       (i << 9) | lid);
 				*(dump_buf + offset) = qed_rd(p_hwfn,
 							      p_ptt,
 							      rd_reg_addr);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net] qed: fix dump of context data
  2017-06-13  9:15 [PATCH net] qed: fix dump of context data Tomer Tayar
@ 2017-06-13 17:33 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-06-13 17:33 UTC (permalink / raw)
  To: Tomer.Tayar; +Cc: netdev, yuval.mintz

From: Tomer Tayar <Tomer.Tayar@cavium.com>
Date: Tue, 13 Jun 2017 12:15:59 +0300

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-13 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13  9:15 [PATCH net] qed: fix dump of context data Tomer Tayar
2017-06-13 17:33 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).