Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-30 Thread Gerd Hoffmann
Hi, > > I'm curious; what does tape backup have to do with the number of PCI > > slots/busses? > > I'm not very clear about how tape works in qemu, but the problem is pcie > devices under q35. The pcie topology requires one device per bus, therefore > the 256 bus might not be enough if we have

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-29 Thread Zihan Yang
Kevin O'Connor 于2018年9月28日周五 上午6:30写道: > > On Thu, Sep 27, 2018 at 11:05:13PM +0800, Zihan Yang wrote: > > Laszlo Ersek 于2018年9月26日周三 上午1:17写道: > > > First, I fail to see the use case where ~256 PCI bus numbers aren't > > > enough. If I strain myself, perhaps I can imagine using ~200 PCIe root >

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-29 Thread Zihan Yang
Dr. David Alan Gilbert 于2018年9月28日周五 上午1:53写道: > > * Zihan Yang (whois.zihan.y...@gmail.com) wrote: > > HI Laszlo > > Laszlo Ersek 于2018年9月26日周三 上午1:17写道: > > > > > > On 09/25/18 17:38, Kevin O'Connor wrote: > > > > On Mon, Sep 17, 2018 at 11:02:59PM +0800, Zihan Yang wrote: > > > >> To support

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-27 Thread Kevin O'Connor
On Thu, Sep 27, 2018 at 11:05:13PM +0800, Zihan Yang wrote: > Laszlo Ersek 于2018年9月26日周三 上午1:17写道: > > First, I fail to see the use case where ~256 PCI bus numbers aren't > > enough. If I strain myself, perhaps I can imagine using ~200 PCIe root > > ports on Q35 (each of which requires a separate

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-27 Thread Dr. David Alan Gilbert
* Zihan Yang (whois.zihan.y...@gmail.com) wrote: > HI Laszlo > Laszlo Ersek 于2018年9月26日周三 上午1:17写道: > > > > On 09/25/18 17:38, Kevin O'Connor wrote: > > > On Mon, Sep 17, 2018 at 11:02:59PM +0800, Zihan Yang wrote: > > >> To support multiple pci domains of pxb-pcie device in qemu, we need to > >

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-27 Thread Zihan Yang
HI Laszlo Laszlo Ersek 于2018年9月26日周三 上午1:17写道: > > On 09/25/18 17:38, Kevin O'Connor wrote: > > On Mon, Sep 17, 2018 at 11:02:59PM +0800, Zihan Yang wrote: > >> To support multiple pci domains of pxb-pcie device in qemu, we need to > >> setup > >> mcfg range in seabios. We use [0x8000,

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-26 Thread Gerd Hoffmann
On Wed, Sep 26, 2018 at 10:47:42AM +0200, Laszlo Ersek wrote: > On 09/26/18 06:44, Gerd Hoffmann wrote: > > Hi, > > > >> Second, the v5 RFC doesn't actually address the alleged bus number > >> shortage. IIUC, it supports a low number of ECAM ranges under 4GB, but > >> those are (individually)

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-26 Thread Laszlo Ersek
On 09/26/18 06:44, Gerd Hoffmann wrote: > Hi, > >> Second, the v5 RFC doesn't actually address the alleged bus number >> shortage. IIUC, it supports a low number of ECAM ranges under 4GB, but >> those are (individually) limited in the bus number ranges they can >> accommodate (due to 32-bit

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-25 Thread Gerd Hoffmann
Hi, > Second, the v5 RFC doesn't actually address the alleged bus number > shortage. IIUC, it supports a low number of ECAM ranges under 4GB, but > those are (individually) limited in the bus number ranges they can > accommodate (due to 32-bit address space shortage). So more or less the >

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-25 Thread Laszlo Ersek
On 09/25/18 17:38, Kevin O'Connor wrote: > On Mon, Sep 17, 2018 at 11:02:59PM +0800, Zihan Yang wrote: >> To support multiple pci domains of pxb-pcie device in qemu, we need to setup >> mcfg range in seabios. We use [0x8000, 0xb000) to hold new domain >> mcfg >> table for now, and we need

Re: [SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-25 Thread Kevin O'Connor
On Mon, Sep 17, 2018 at 11:02:59PM +0800, Zihan Yang wrote: > To support multiple pci domains of pxb-pcie device in qemu, we need to setup > mcfg range in seabios. We use [0x8000, 0xb000) to hold new domain mcfg > table for now, and we need to retrieve the desired mcfg size of each

[SeaBIOS] [RFC v3] pciinit: setup mcfg for pxb-pcie to support multiple pci domains

2018-09-17 Thread Zihan Yang
To support multiple pci domains of pxb-pcie device in qemu, we need to setup mcfg range in seabios. We use [0x8000, 0xb000) to hold new domain mcfg table for now, and we need to retrieve the desired mcfg size of each pxb-pcie from a hidden bar because they may not need the whole 256