Skip to contentSkip to conversation

PCI-to-PCI bridge

Qemu-devel Wen Congyang 2 participants 4 messages Aug 16, 2011 – Aug 17, 2011

lore
Share & tools
lore
#0 lore raw

Hi, all

We'd like to add PCI-to-PCI Bridge for qemu(kvm) for x86/x86_64 box. I read the code, and find the following hardware calls the function pci_bridge_initfn():
1. apb
2. ioh3420
3. xio3130

ioh3420 and xio3130 is for PCIe, and apb is for sparc box. I do not find any PCI-to-PCI bridge for x86/x86_64 box. Is there some projects we can join ? If not, we'll start from scratch and add a new one.

Thanks
Wen Congyang

#1 lore raw
Quoted 9 lines · Wen Congyang

Hi, all

We'd like to add PCI-to-PCI Bridge for qemu(kvm) for x86/x86_64 box. I read the code, and find the following hardware calls the function pci_bridge_initfn():
1. apb
2. ioh3420
3. xio3130

Quoted 3 lines

ioh3420 and xio3130 is for PCIe, and apb is for sparc box. I do not find any PCI-to-PCI bridge for x86/x86_64 box. Is there some projects we can join ? If not, we'll start

There is one in hw/dec_pci.c. This isn't compiled by default, but that is just a configuration issue. I had some IRQ routing issues with that one though.

There is also http://patchwork.ozlabs.org/patch/103058/ which works fine after fixing the double irq_num. Michael wants implement hotplug support before merging it though.

cheers,
Gerd

#2 lore raw

At 08/16/2011 09:40 PM, Gerd Hoffmann Write:

Quoted 10 lines · Wen Congyang
Quoted 9 lines

Hi, all

We'd like to add PCI-to-PCI Bridge for qemu(kvm) for x86/x86_64 box. I read the code, and find the following hardware calls the function pci_bridge_initfn():
1. apb
2. ioh3420
3. xio3130

Quoted 7 lines
Quoted 3 lines

ioh3420 and xio3130 is for PCIe, and apb is for sparc box. I do not find any PCI-to-PCI bridge for x86/x86_64 box. Is there some projects we can join ? If not, we'll start

There is one in hw/dec_pci.c. This isn't compiled by default, but that is just a configuration issue. I had some IRQ routing issues with that one though.

Yes, I found this device. Do you mean there are some IRQ problems about this device?

Quoted 9 lines

There is also http://patchwork.ozlabs.org/patch/103058/ which works fine after fixing the double irq_num. Michael wants implement hotplug support before merging it though.

cheers,
Gerd

#3 lore raw
Quoted 7 lines · Wen Congyang

At 08/16/2011 09:40 PM, Gerd Hoffmann Write:

Quoted 3 lines

There is one in hw/dec_pci.c. This isn't compiled by default, but that is just a configuration issue. I had some IRQ routing issues with that one though.

Yes, I found this device. Do you mean there are some IRQ problems about this device?

I think so, I'm not fully sure though. Just did a quick test and figured devices behind the bridge where not working correctly. I think some IRQ bug is the most likely cause, but I didn't investigate in detail.

cheers,
Gerd