[openib-general] Re: [PATCH] support domain names in /proc/bu s/pci names

Michael S. Tsirkin mst at mellanox.co.il
Sat Jan 15 13:02:36 PST 2005


Hello!
Quoting r. Tom Duffy (Tom.Duffy at Sun.COM) "Re: [openib-general] Re: [PATCH] support domain names in?/proc/bu s/pci names":
> On Sat, 2005-01-15 at 20:29 +0200, Michael S. Tsirkin wrote:
> > on others, while Tom's patch assumes /proc/bus/pci/bb/dd.f if
> > the domain is 0. Tom?
> 
> No, it assumes it is /proc/bus/pci/dddd:bb/dd.f if domain is 0 or
> anything positive.  If you don't pass in a domain, it assumes the old
> way (i.e. domain is -1).
> 
> -tduffy

Aha.

Problem is, pciutils looks at sysfs and so always prints the domain, so
people are likely to pass in the domain even on systems where it is
not supported by /proc/bus/pci.

I guess the right thing is to fix /proc/bus/pci on all systems,
but meanwhile, maybe to check both files in old and new locations
if domain is 0 or not supplied.

mst



More information about the general mailing list