<div><br><div class="gmail_quote"><div dir="auto">ср, 19 июля 2017 г. в 16:57, Konrad Rzeszutek Wilk <<a href="mailto:konrad.wilk@oracle.com">konrad.wilk@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Jul 19, 2017 at 04:20:12PM +0300, Aleksandr Bezzubikov wrote:<br>
> Now PCI bridges (and PCIE root port too) get a bus range number in system init,<br>
> basing on currently plugged devices. That's why when one wants to hotplug another bridge,<br>
> it needs his child bus, which the parent is unable to provide.<br>
<br>
Could you explain how you trigger this?</blockquote><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div dir="auto">I'm trying to hot plug pcie-pci bridge into pcie root port, and Linux says 'cannot allocate bus number for device bla-bla'. This obviously does not allow me to use the bridge at all.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> The suggested workaround is to have vendor-specific capability in RedHat generic pcie-root-port<br>
> that contains number of additional bus to reserve on BIOS PCI init.<br>
<br>
But wouldn't the proper fix be for the PCI bridge to have the subordinate<br>
value be extended to fit more bus ranges?</blockquote><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote><div dir="auto">What do you mean? This is what I'm trying to do. Do you suppose to get rid of vendor-specific cap and use original register value instead of it?</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
><br>
> Aleksandr Bezzubikov (2):<br>
> pci: add support for direct usage of bdf for capability lookup<br>
> pci: enable RedHat pci bridges to reserve more buses<br>
><br>
> src/fw/pciinit.c | 12 ++++++++++--<br>
> src/hw/pcidevice.c | 24 ++++++++++++++++++++++++<br>
> src/hw/pcidevice.h | 1 +<br>
> 3 files changed, 35 insertions(+), 2 deletions(-)<br>
><br>
> --<br>
> 2.7.4<br>
><br>
><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Alexander Bezzubikov</div></div></div></div>