Re: [PATCH 0/5][RFC] Physical PCI slot objects

Kristen Carlson Accardi
2007-11-13T23:36:19Z

On Tue, 13 Nov 2007 16:04:00 -0700
Matthew Wilcox <matthew@wil.cx> wrote:

> On Tue, Nov 13, 2007 at 02:56:05PM -0800, Greg KH wrote:
> > Why not just use the code in the linux firmware kit that does this
> > already today from userspace (thanks to Kristen for pointing this out to
> > me on irc.)?
>
> So then we have something that works on ACPI-based machines. Who will
> add support for all the other kinds of firmware and non-firmware based
> slots?
>

As far as being able to retrieve the slot number (which it seemed from
the HP manageablity application perspective is the goal here), that
information is available from userspace as well for at least standard PCI
and pcie based systems for occupied slots. For standard pci, you have
to make something up anyway - for shpchp we just use an incremental
number and combine it with the bus number to represent the slot. For
pcie, you can get this info from the slot capabilities register.