RE: [PATCH 04/37] atl1c: remove VPD register

From: Huang, Xiong
Date: Tue Apr 17 2012 - 04:36:42 EST


Ok, I will update it. thanks a lot

-Xiong
________________________________________
发件人: Ben Hutchings [bhutchings@xxxxxxxxxxxxxx]
发送时间: 2012年4月14日 22:22
收件人: Huang, Xiong
Cc: David Miller; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; qca-linux-team; nic-devel
主题: RE: [PATCH 04/37] atl1c: remove VPD register

On Sat, 2012-04-14 at 09:12 +0000, Huang, Xiong wrote:
>
> > -----Original Message-----
> > From: David Miller [mailto:davem@xxxxxxxxxxxxx]
> > Sent: Saturday, April 14, 2012 8:46
> > To: Huang, Xiong
> > Cc: netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; qca-linux-team; nic-
> > devel
> > Subject: Re: [PATCH 04/37] atl1c: remove VPD register
> >
> > From: xiong <xiong@xxxxxxxxxxxxxxxx>
> > Date: Fri, 13 Apr 2012 08:14:29 +0800
> >
> > > VPD register is only used for L1(devid=PCI_DEVICE_ID_ATTANSIC_L1) to
> > > access external NV-memory.
> > > l1c & later chip doesn't use it any more.
> > >
> > > Signed-off-by: xiong <xiong@xxxxxxxxxxxxxxxx>
> > > Tested-by: Liu David <dwliu@xxxxxxxxxxxxxxxx>
> >
> > You just broke ethtool register dumps with this change.
> >
> > Now, all the initial registers are reported offset by one entry, yet the last two are
> > still reported in their original spots.
> >
> > This layout is exposed to userspace, and interpreted by tools, and you cannot
> > change it.
> >
> > If this register always reports some value, you should just keep it there in the
> > dumps.
> >
> The VPD register doesn't report anything :(, just a dummy register now.
> we don't have any special tools in userspace to explain the dumped registers.
> Actually the purpose of dumping these registers via ethtool is just for debug.
[...]

Of course, the whole purpose of the operation is for debugging. But you
should bump the dump version number (currently 0) every time you change
the offsets of registers in the dump.

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.

N?叉??y??b??千v??藓{.n???{?赙zXФ?塄}?财??j:+v???赙zZ+?zf"?????i????ア??璀??撷f?^j谦y??@A?囤?0鹅h??i