Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-15 Thread Yijing Wang
>> Currently, if platform does not know the end bus number (not provide the bus >> resource), >> we will update the max bus number returned by pci_scan_child_bus() to the >> bus resource end, >> and I think this is reasonable. I consider to introduce a flag to identify >> the bus resource >> whi

Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-13 Thread Bjorn Helgaas
On Thu, Mar 12, 2015 at 10:28 PM, Yijing Wang wrote: It's a nice idea to move this test into the core. While you're at it, why don't you check for any overlap with the bus ranges of existing host bridges? For example, if we're trying to create a new host bridge to [bus 40-7f]

Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-12 Thread Yijing Wang
>>> It's a nice idea to move this test into the core. While you're at it, why >>> don't you check for any overlap with the bus ranges of existing host >>> bridges? For example, if we're trying to create a new host bridge to >>> [bus 40-7f], it should conflict with existing bridges to [bus 00-7f]

Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-12 Thread Bjorn Helgaas
On Thu, Mar 12, 2015 at 09:03:12PM +0800, Yijing Wang wrote: > On 2015/3/12 10:55, Bjorn Helgaas wrote: > > On Mon, Mar 09, 2015 at 10:34:07AM +0800, Yijing Wang wrote: > >> Introduce pci_host_bridge_list to manage pci host > >> bridges in system, so we could detect whether > >> the host in domain:

Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-12 Thread Yijing Wang
On 2015/3/12 10:55, Bjorn Helgaas wrote: > On Mon, Mar 09, 2015 at 10:34:07AM +0800, Yijing Wang wrote: >> Introduce pci_host_bridge_list to manage pci host >> bridges in system, so we could detect whether >> the host in domain:bus is alreay registered. >> Then we could remove bus alreay exist test

Re: [PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-11 Thread Bjorn Helgaas
On Mon, Mar 09, 2015 at 10:34:07AM +0800, Yijing Wang wrote: > Introduce pci_host_bridge_list to manage pci host > bridges in system, so we could detect whether > the host in domain:bus is alreay registered. > Then we could remove bus alreay exist test in > __pci_create_root_bus(). It's a nice ide

[PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-08 Thread Yijing Wang
Introduce pci_host_bridge_list to manage pci host bridges in system, so we could detect whether the host in domain:bus is alreay registered. Then we could remove bus alreay exist test in __pci_create_root_bus(). Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/host-bridge