[PATCH 3/5] Float the pci bus number on MPC8641HPCN board.

Kumar Gala galak at kernel.crashing.org
Sat Jun 2 05:58:00 EST 2007


On Jun 1, 2007, at 1:45 AM, Zhang Wei-r63237 wrote:

> Hi, Paul,
>
>> -----Original Message-----
>> From: Paul Mackerras [mailto:paulus at samba.org]
>>
>> Kumar Gala writes:
>>
>>>> That's my original doing. If there a PCI bridge card be
>> pluged into
>>>> PCI
>>>> slot of hose0, I can not ensue the bus_offset number of hose1.
>>>
>>> Ok, but can't we use hose0's last_busno and use that set hose1-
>>>> first_busno & hose1->bus_offset?
>>
>> Why do the bus numbers for hose0 and hose1 have to have any relation
>> to each other at all?  Aren't they separate PCI domains?
>
> There are lots of lagacy PCI codes in kernel, such as
> pci_bus_to_hose(busnr). If two hose's bus number have overlaps,
> pci_bus_to_hose() can not return the correct hose. And there will  
> effect
> /proc/pci and lspci tools.


So looking at the code it looks like pci_assign_all_buses should  
handle numbering the busses properly when we scan the busses, so  
what's the issue that causes that not to be correct?

- k



More information about the Linuxppc-dev mailing list