Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-17 Thread Marcel Apfelbaum
On 08/14/2018 12:15 PM, Liu, Jing2 wrote: Hi Marcel, On 8/12/2018 3:11 PM, Marcel Apfelbaum wrote: Hi Laszlo, [...]   hw/pci-bridge/pci_bridge_dev.c | 20   1 file changed, 20 insertions(+) +cap_error: +    msi_uninit(dev); (4) This error handler doesn't look

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-17 Thread Marcel Apfelbaum
On 08/14/2018 12:32 PM, Liu, Jing2 wrote: On 8/12/2018 3:11 PM, Marcel Apfelbaum wrote: [...] I don't know what to suggest for the new capability's teardown, in pci_bridge_dev_exitfn()  -- should we just ignore it (as suggested by this patch)? No, we should remove it properly. I think

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-16 Thread Liu, Jing2
On 8/14/2018 9:27 PM, Laszlo Ersek wrote: [...]   +cap_error: +    msi_uninit(dev); (4) This error handler doesn't look entirely correct; we can reach it without having initialized MSI. (MSI setup is conditional; and even if we attempt it, it is permitted to fail with "msi=auto".)

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-14 Thread Laszlo Ersek
On 08/14/18 10:39, Liu, Jing2 wrote: > Hi Laszlo, > Sorry for late reply. I missed these mails because of wrong filter. > And thanks very much for comments. My reply as belows. > > On 8/7/2018 8:19 PM, Laszlo Ersek wrote: >> On 08/07/18 09:04, Jing Liu wrote: > [...] >>> @@ -46,6 +46,12 @@ struct

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-14 Thread Liu, Jing2
On 8/12/2018 3:11 PM, Marcel Apfelbaum wrote: [...] I don't know what to suggest for the new capability's teardown, in pci_bridge_dev_exitfn()  -- should we just ignore it (as suggested by this patch)? No, we should remove it properly. I think it is not considered a "big" issue since

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-14 Thread Liu, Jing2
Hi Marcel, On 8/12/2018 3:11 PM, Marcel Apfelbaum wrote: Hi Laszlo, [...]   hw/pci-bridge/pci_bridge_dev.c | 20   1 file changed, 20 insertions(+) +cap_error: +    msi_uninit(dev); (4) This error handler doesn't look entirely correct; we can reach it without having

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-14 Thread Liu, Jing2
Hi Laszlo, Sorry for late reply. I missed these mails because of wrong filter. And thanks very much for comments. My reply as belows. On 8/7/2018 8:19 PM, Laszlo Ersek wrote: On 08/07/18 09:04, Jing Liu wrote: [...] @@ -46,6 +46,12 @@ struct PCIBridgeDev { uint32_t flags;

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-12 Thread Laszlo Ersek
On 08/12/18 09:11, Marcel Apfelbaum wrote: > On 08/07/2018 06:59 PM, Laszlo Ersek wrote: >> First, under the label "shpc_error", we call pci_bridge_exitfn(), which >> seems to clean up everything (checking individually for each thing to >> clean up). Given this, I wonder why we introduced the

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-12 Thread Marcel Apfelbaum
Hi Laszlo, On 08/07/2018 06:59 PM, Laszlo Ersek wrote: On 08/07/18 14:19, Laszlo Ersek wrote: On 08/07/18 09:04, Jing Liu wrote: Add hint to firmware (e.g. SeaBIOS) to reserve addtional IO/MEM/PREF spaces for legacy pci-pci bridge, to enable some pci devices hotplugging whose IO/MEM/PREF

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-11 Thread Marcel Apfelbaum
Hi, On 08/07/2018 03:19 PM, Laszlo Ersek wrote: On 08/07/18 09:04, Jing Liu wrote: Add hint to firmware (e.g. SeaBIOS) to reserve addtional IO/MEM/PREF spaces for legacy pci-pci bridge, to enable some pci devices hotplugging whose IO/MEM/PREF spaces requests are larger than the ones in pci-pci

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-07 Thread Laszlo Ersek
On 08/07/18 14:19, Laszlo Ersek wrote: > On 08/07/18 09:04, Jing Liu wrote: >> Add hint to firmware (e.g. SeaBIOS) to reserve addtional >> IO/MEM/PREF spaces for legacy pci-pci bridge, to enable >> some pci devices hotplugging whose IO/MEM/PREF spaces >> requests are larger than the ones in

Re: [Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-07 Thread Laszlo Ersek
On 08/07/18 09:04, Jing Liu wrote: > Add hint to firmware (e.g. SeaBIOS) to reserve addtional > IO/MEM/PREF spaces for legacy pci-pci bridge, to enable > some pci devices hotplugging whose IO/MEM/PREF spaces > requests are larger than the ones in pci-pci bridge set > by firmware. > >

[Qemu-devel] [PATCH] hw/pci: add pci capability to pci-pci bridge

2018-08-07 Thread Jing Liu
Add hint to firmware (e.g. SeaBIOS) to reserve addtional IO/MEM/PREF spaces for legacy pci-pci bridge, to enable some pci devices hotplugging whose IO/MEM/PREF spaces requests are larger than the ones in pci-pci bridge set by firmware. Signed-off-by: Jing Liu --- hw/pci-bridge/pci_bridge_dev.c