netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets.
@ 2011-12-23 10:32 Jeff Kirsher
  2012-01-12 13:11 ` Jeff Kirsher
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2011-12-23 10:32 UTC (permalink / raw)
  Cc: Matthew Vick, netdev, gospo, sassmann, Jeff Kirsher

From: Matthew Vick <matthew.vick@intel.com>

When support was added to dump the registers on 82575 chipset devices,
six register offsets (receive/transmit desc length, head, and tail)
were incorrectly mapped. This patch remaps the offsets to the correct
registers.

Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 igb.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/igb.c b/igb.c
index ec35d36..e0ccef9 100644
--- a/igb.c
+++ b/igb.c
@@ -200,13 +200,13 @@ igb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
 	/* Receive descriptor registers */
 	fprintf(stdout,
 		"0x02808: RDLEN  (Receive desc length)                 0x%08X\n",
-		regs_buff[142]);
+		regs_buff[137]);
 	fprintf(stdout,
 		"0x02810: RDH    (Receive desc head)                   0x%08X\n",
-		regs_buff[146]);
+		regs_buff[141]);
 	fprintf(stdout,
 		"0x02818: RDT    (Receive desc tail)                   0x%08X\n",
-		regs_buff[150]);
+		regs_buff[145]);
 
 	/* Transmit control register */
 	reg = regs_buff[38];
@@ -226,13 +226,13 @@ igb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
 	/* Transmit descriptor registers */
 	fprintf(stdout,
 		"0x03808: TDLEN       (Transmit desc length)           0x%08X\n",
-		regs_buff[214]);
+		regs_buff[219]);
 	fprintf(stdout,
 		"0x03810: TDH         (Transmit desc head)             0x%08X\n",
-		regs_buff[218]);
+		regs_buff[223]);
 	fprintf(stdout,
 		"0x03818: TDT         (Transmit desc tail)             0x%08X\n",
-		regs_buff[222]);
+		regs_buff[227]);
 
 
 	fprintf(stdout,
-- 
1.7.7.4

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

* Re: [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets.
  2011-12-23 10:32 [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets Jeff Kirsher
@ 2012-01-12 13:11 ` Jeff Kirsher
  2012-01-12 14:08   ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Kirsher @ 2012-01-12 13:11 UTC (permalink / raw)
  To: Ben Hutchings
  Cc: Vick, Matthew, netdev@vger.kernel.org, gospo@redhat.com,
	sassmann@redhat.com

[-- Attachment #1: Type: text/plain, Size: 2271 bytes --]

On Fri, 2011-12-23 at 02:32 -0800, Kirsher, Jeffrey T wrote:
> From: Matthew Vick <matthew.vick@intel.com>
> 
> When support was added to dump the registers on 82575 chipset devices,
> six register offsets (receive/transmit desc length, head, and tail)
> were incorrectly mapped. This patch remaps the offsets to the correct
> registers.
> 
> Signed-off-by: Matthew Vick <matthew.vick@intel.com>
> Tested-by: Aaron Brown <aaron.f.brown@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>  igb.c |   12 ++++++------
>  1 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/igb.c b/igb.c
> index ec35d36..e0ccef9 100644
> --- a/igb.c
> +++ b/igb.c
> @@ -200,13 +200,13 @@ igb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
>         /* Receive descriptor registers */
>         fprintf(stdout,
>                 "0x02808: RDLEN  (Receive desc length)                 0x%08X\n",
> -               regs_buff[142]);
> +               regs_buff[137]);
>         fprintf(stdout,
>                 "0x02810: RDH    (Receive desc head)                   0x%08X\n",
> -               regs_buff[146]);
> +               regs_buff[141]);
>         fprintf(stdout,
>                 "0x02818: RDT    (Receive desc tail)                   0x%08X\n",
> -               regs_buff[150]);
> +               regs_buff[145]);
> 
>         /* Transmit control register */
>         reg = regs_buff[38];
> @@ -226,13 +226,13 @@ igb_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
>         /* Transmit descriptor registers */
>         fprintf(stdout,
>                 "0x03808: TDLEN       (Transmit desc length)           0x%08X\n",
> -               regs_buff[214]);
> +               regs_buff[219]);
>         fprintf(stdout,
>                 "0x03810: TDH         (Transmit desc head)             0x%08X\n",
> -               regs_buff[218]);
> +               regs_buff[223]);
>         fprintf(stdout,
>                 "0x03818: TDT         (Transmit desc tail)             0x%08X\n",
> -               regs_buff[222]);
> +               regs_buff[227]);
> 
> 
>         fprintf(stdout,
> --
> 1.7.7.4
> 

Ben, what is the status of this patch?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets.
  2012-01-12 13:11 ` Jeff Kirsher
@ 2012-01-12 14:08   ` Ben Hutchings
  2012-01-12 14:35     ` Jeff Kirsher
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Hutchings @ 2012-01-12 14:08 UTC (permalink / raw)
  To: jeffrey.t.kirsher
  Cc: Vick, Matthew, netdev@vger.kernel.org, gospo@redhat.com,
	sassmann@redhat.com

On Thu, 2012-01-12 at 05:11 -0800, Jeff Kirsher wrote:
> On Fri, 2011-12-23 at 02:32 -0800, Kirsher, Jeffrey T wrote:
> > From: Matthew Vick <matthew.vick@intel.com>
> > 
> > When support was added to dump the registers on 82575 chipset devices,
> > six register offsets (receive/transmit desc length, head, and tail)
> > were incorrectly mapped. This patch remaps the offsets to the correct
> > registers.
[...]
> Ben, what is the status of this patch?

The status is 'arrived just as I went on vacation, and forgotten'.

I'll be sure to apply this before releasing ethtool 3.2.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
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] 4+ messages in thread

* Re: [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets.
  2012-01-12 14:08   ` Ben Hutchings
@ 2012-01-12 14:35     ` Jeff Kirsher
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2012-01-12 14:35 UTC (permalink / raw)
  To: Ben Hutchings
  Cc: Vick, Matthew, netdev@vger.kernel.org, gospo@redhat.com,
	sassmann@redhat.com

[-- Attachment #1: Type: text/plain, Size: 706 bytes --]

On Thu, 2012-01-12 at 14:08 +0000, Ben Hutchings wrote:
> On Thu, 2012-01-12 at 05:11 -0800, Jeff Kirsher wrote:
> > On Fri, 2011-12-23 at 02:32 -0800, Kirsher, Jeffrey T wrote:
> > > From: Matthew Vick <matthew.vick@intel.com>
> > > 
> > > When support was added to dump the registers on 82575 chipset devices,
> > > six register offsets (receive/transmit desc length, head, and tail)
> > > were incorrectly mapped. This patch remaps the offsets to the correct
> > > registers.
> [...]
> > Ben, what is the status of this patch?
> 
> The status is 'arrived just as I went on vacation, and forgotten'.

:)

> 
> I'll be sure to apply this before releasing ethtool 3.2.

Thanks Ben!



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2012-01-12 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 10:32 [ethtool] ethtool: Correct register dump offsets for Intel 82575 chipsets Jeff Kirsher
2012-01-12 13:11 ` Jeff Kirsher
2012-01-12 14:08   ` Ben Hutchings
2012-01-12 14:35     ` Jeff Kirsher

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