PCI Hotplug Slot Naming Scheme
John Rose
johnrose at austin.ibm.com
Sat Mar 27 04:32:14 EST 2004
Don't we already do that? The problem is directories with 48 character
names.
Thanks-
John
On Fri, 2004-03-26 at 11:29, Linda Xie wrote:
> We can keep symlinks between "bus ids" and "loc-codes" and create
> symlinks look like,
> 0001:00:02.6 --> U7311.D11.104CE9A-P1-C1, So our tools can still use
> "loc-codes".
>
> Thoughts?
>
> Thanks,
>
> Linda
>
> Inactive hide details for
> garyhade at us.ltcfwd.linux.ibm.comgaryhade@us.ltcfwd.linux.ibm.com
>
>
>
>
> garyhade at us.ltcfwd.linux.ibm.com
> Sent by: owner-linuxppc64-dev at lists.linuxppc.org
>
> 03/26/04 11:10 AM
>
>
>
>
>
> To: John Rose
> <johnrose at austin.ibm.com>
> cc: External List
> <linuxppc64-dev at lists.linuxppc.org>
> Subject: Re: PCI
> Hotplug Slot Naming
> Scheme
>
>
> John,
> The 'acpiphp' ACPI PCI hotplug driver uses a simple 1,2,3,...
> slot directory naming scheme with the longer linux-style
> names stored in an 'address' files within each slot directory.
>
> If you changed to this simplified slot directory naming
> scheme you could store both styles in separate files within
> each slot directory.
>
> Gary
>
> --
> Gary Hade
> IBM Linux Technology Center
> 503-578-4503 IBM T/L: 775-4503
> garyhade at us.ibm.com
> http://www.ibm.com/linux/ltc
>
> On Fri, Mar 26, 2004 at 10:31:38AM -0600, John Rose wrote:
> >
> > Opinions requested. The PCI Hotplug module currently uses IBM-style
> bus
> > names when naming the PCI Hotplug slots. These are registered as
> kobjects,
> > and represented by sysfs directories.
> >
> > For a particular new hardware platform, to remain unnamed :), a
> firmware guy
> > tells us these names can be up to 48 chars long. We have been
> dealing with
> > 10 character slot names up to this point. Our options moving
> forward are
> >
> > 1) Continue to use ibm slot names, for which the hotplug directory
> could
> > look like:
> >
> > # ls /sys/bus/pci/slots
> > .. U7311.D11.104CE9A-P1-C1 U7879.001.DQD0027-P1-C2
> > U7311.D11.104CE9A-P1-C2 U7879.001.DQD0027-P1-C3
> > U7311.D11.104CE9A-P1-C3 U7879.001.DQD0027-P1-C4
> > U7311.D11.104CE9A-P1-C5 U7879.001.DQD0027-P1-C5
> > U7311.D11.104CE9A-P1-C6 U7879.001.DQD0027-P1-C6
> > U7311.D11.104CE9A-P1-C7 U9117.570.104F3DC-V1-C0
> >
> > These are just 23 chars long, imagine 48.
> >
> > 2) Use linux-style bus names, as in xxxx:xx:xx:x. This is more
> consistent
> > with other PCI Hotplug implementations, and the names are always
> 12 chars
> > long.
> >
> > Although it's late in the game to be asking such questions, we'd
> rather change
> > things now if necessary than after this functionality ships.
> Thoughts?
> >
> > Thanks-
> > John
> >
> >
> >
>
>
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list