* PCI VPD size
@ 2008-10-24 19:50 Stephen Hemminger
2008-10-24 20:52 ` Ben Hutchings
2008-10-24 21:18 ` Jesse Barnes
0 siblings, 2 replies; 4+ messages in thread
From: Stephen Hemminger @ 2008-10-24 19:50 UTC (permalink / raw)
To: Jesse Barnes, Benjamin Li; +Cc: netdev, linux-pci
Why did you choose to limit VPD access by using PCI quirks:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99cb233d60cbe644203f19938c729ea2bb004d70
Rather than controlling size in the device driver which is what my
patches (which seem to have been ignored) did:
http://marc.info/?l=linux-netdev&m=122393195716363&w=2
The problem with the quirk scheme is that it means putting more
per device settings in a location farther away in the source code
than the underlying device driver.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCI VPD size
2008-10-24 19:50 PCI VPD size Stephen Hemminger
@ 2008-10-24 20:52 ` Ben Hutchings
2008-10-24 21:18 ` Jesse Barnes
1 sibling, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2008-10-24 20:52 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Jesse Barnes, Benjamin Li, netdev, linux-pci
Stephen Hemminger wrote:
> Why did you choose to limit VPD access by using PCI quirks:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=99cb233d60cbe644203f19938c729ea2bb004d70
>
> Rather than controlling size in the device driver which is what my
> patches (which seem to have been ignored) did:
> http://marc.info/?l=linux-netdev&m=122393195716363&w=2
>
> The problem with the quirk scheme is that it means putting more
> per device settings in a location farther away in the source code
> than the underlying device driver.
The limit needs to be set in quirks because VPD I/O beyond that limit
causes those devices to stop responding. If I understand correctly,
you're only reducing the limit as an optimisation.
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] 4+ messages in thread
* Re: PCI VPD size
2008-10-24 19:50 PCI VPD size Stephen Hemminger
2008-10-24 20:52 ` Ben Hutchings
@ 2008-10-24 21:18 ` Jesse Barnes
2008-10-24 21:24 ` Stephen Hemminger
1 sibling, 1 reply; 4+ messages in thread
From: Jesse Barnes @ 2008-10-24 21:18 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: Benjamin Li, netdev, linux-pci
On Friday, October 24, 2008 12:50 pm Stephen Hemminger wrote:
> Why did you choose to limit VPD access by using PCI quirks:
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h
>=99cb233d60cbe644203f19938c729ea2bb004d70
>
> Rather than controlling size in the device driver which is what my
> patches (which seem to have been ignored) did:
> http://marc.info/?l=linux-netdev&m=122393195716363&w=2
>
> The problem with the quirk scheme is that it means putting more
> per device settings in a location farther away in the source code
> than the underlying device driver.
The last status I received on that was a comment from Jeff about assuming the
maximum size for the VPD space. That's the whole reason we have the quirks:
on many devices accessing beyond the end of VPD space can cause a device hang.
And since that space is available from a sysfs file we need to be extra
careful.
Other than that, your patches looked fine, I was just waiting for you to
address that last comment.
--
Jesse Barnes, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCI VPD size
2008-10-24 21:18 ` Jesse Barnes
@ 2008-10-24 21:24 ` Stephen Hemminger
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2008-10-24 21:24 UTC (permalink / raw)
To: Jesse Barnes; +Cc: Benjamin Li, netdev, linux-pci
On Fri, 24 Oct 2008 14:18:38 -0700
Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On Friday, October 24, 2008 12:50 pm Stephen Hemminger wrote:
> > Why did you choose to limit VPD access by using PCI quirks:
> >
> > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h
> >=99cb233d60cbe644203f19938c729ea2bb004d70
> >
> > Rather than controlling size in the device driver which is what my
> > patches (which seem to have been ignored) did:
> > http://marc.info/?l=linux-netdev&m=122393195716363&w=2
> >
> > The problem with the quirk scheme is that it means putting more
> > per device settings in a location farther away in the source code
> > than the underlying device driver.
>
> The last status I received on that was a comment from Jeff about assuming the
> maximum size for the VPD space. That's the whole reason we have the quirks:
> on many devices accessing beyond the end of VPD space can cause a device hang.
> And since that space is available from a sysfs file we need to be extra
> careful.
>
> Other than that, your patches looked fine, I was just waiting for you to
> address that last comment.
>
The max size of vpd issue was addressed in last round (I thought).
I'll respin against 2.6.28-rc1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-24 21:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 19:50 PCI VPD size Stephen Hemminger
2008-10-24 20:52 ` Ben Hutchings
2008-10-24 21:18 ` Jesse Barnes
2008-10-24 21:24 ` Stephen Hemminger
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).