* [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer
@ 2010-01-25 19:28 Ben Hutchings
2010-01-25 19:36 ` Ben Hutchings
2010-01-25 23:50 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Ben Hutchings @ 2010-01-25 19:28 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-net-drivers
From: Guido Barzini <gbarzini@solarflare.com>
Due to a hardware bug in the SFC9000 family, the firmware must
transfer raw GMAC statistics to host memory before aggregating them
into the cooked (speed-independent) MAC statistics. Extend the stats
buffer to support this.
The length of the buffer is explicit in the MAC_STATS command, so this
change is backward-compatible on both sides.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
drivers/net/sfc/mcdi_pcol.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/net/sfc/mcdi_pcol.h b/drivers/net/sfc/mcdi_pcol.h
index 2a85360..73e71f4 100644
--- a/drivers/net/sfc/mcdi_pcol.h
+++ b/drivers/net/sfc/mcdi_pcol.h
@@ -1090,8 +1090,10 @@
#define MC_CMD_MAC_RX_LANES01_DISP_ERR 57
#define MC_CMD_MAC_RX_LANES23_DISP_ERR 58
#define MC_CMD_MAC_RX_MATCH_FAULT 59
+#define MC_CMD_GMAC_DMABUF_START 64
+#define MC_CMD_GMAC_DMABUF_END 95
/* Insert new members here. */
-#define MC_CMD_MAC_GENERATION_END 60
+#define MC_CMD_MAC_GENERATION_END 96
#define MC_CMD_MAC_NSTATS (MC_CMD_MAC_GENERATION_END+1)
/* MC_CMD_MAC_STATS:
--
1.5.5
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer
2010-01-25 19:28 [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer Ben Hutchings
@ 2010-01-25 19:36 ` Ben Hutchings
2010-01-25 23:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Ben Hutchings @ 2010-01-25 19:36 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-net-drivers
On Mon, 2010-01-25 at 19:28 +0000, Ben Hutchings wrote:
> From: Guido Barzini <gbarzini@solarflare.com>
>
> Due to a hardware bug in the SFC9000 family, the firmware must
> transfer raw GMAC statistics to host memory before aggregating them
> into the cooked (speed-independent) MAC statistics. Extend the stats
> buffer to support this.
>
> The length of the buffer is explicit in the MAC_STATS command, so this
> change is backward-compatible on both sides.
David,
I forgot to note that this is meant for net-2.6.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer
2010-01-25 19:28 [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer Ben Hutchings
2010-01-25 19:36 ` Ben Hutchings
@ 2010-01-25 23:50 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2010-01-25 23:50 UTC (permalink / raw)
To: bhutchings; +Cc: netdev, linux-net-drivers
From: Ben Hutchings <bhutchings@solarflare.com>
Date: Mon, 25 Jan 2010 19:28:00 +0000
> From: Guido Barzini <gbarzini@solarflare.com>
>
> Due to a hardware bug in the SFC9000 family, the firmware must
> transfer raw GMAC statistics to host memory before aggregating them
> into the cooked (speed-independent) MAC statistics. Extend the stats
> buffer to support this.
>
> The length of the buffer is explicit in the MAC_STATS command, so this
> change is backward-compatible on both sides.
>
> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-25 23:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 19:28 [PATCH 1/2] sfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer Ben Hutchings
2010-01-25 19:36 ` Ben Hutchings
2010-01-25 23:50 ` 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).