Skip to contentSkip to conversation

PCI Device 16 and over

DISCUSSION Simon Horman 2 participants 3 messages Mar 5, 2009 – Mar 8, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I've been playing with moving devices around as a prelude to the GSI mapping work that has been discussed.

http://lists.xensource.com/archives/html/xen-devel/2009-03/msg00046.html

At the moment I am just hacking xend to see what kind of assignments work and what don't. I haven't actually implemented a new device allocation function yet.

In the course of doing this I have noticed two things:

1. The following device seems to need to live at virtual PCI device 1 (this actually isn't a big problem, just a curiosity)

00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] 00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] 00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)

2. While give devices a virtual PCI device number > 15, my test device, which is an ioemu rt8139 does not seem to function.

Suspecting this is related to firmware issues I started to poke around there, and noticed that in tools/firmware/hvmloader/acpi/dsdt.asl "Device 1" - "Device 15" are mentioned, but devices 16+ are not.

I have to admit that I don't understand dsdt.asl (though any pointers would be welcome). But this does seem curious.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en
#1 lore raw
Quoted 6 lines · Simon Horman

Suspecting this is related to firmware issues I started to poke around there, and noticed that in tools/firmware/hvmloader/acpi/dsdt.asl "Device 1" - "Device 15" are mentioned, but devices 16+ are not.

I have to admit that I don't understand dsdt.asl (though any pointers would be welcome). But this does seem curious.

The DSDT contains all sorts of platform description. One thing it does is describe PCI INTx routing to GSIs. As you note, I guess the table is incomplete. The $PIR table in rombios.c will probably have the same limitation. You can probably work out how to extend the pattern in these two tables up to full 32 devices. I can help if not.

-- Keir

#2 lore raw
Quoted 6 lines · Keir Fraser
Quoted 4 lines · Simon Horman

Suspecting this is related to firmware issues I started to poke around there, and noticed that in tools/firmware/hvmloader/acpi/dsdt.asl "Device 1" - "Device 15" are mentioned, but devices 16+ are not.

Quoted 8 lines
Quoted 2 lines

I have to admit that I don't understand dsdt.asl (though any pointers would be welcome). But this does seem curious.

The DSDT contains all sorts of platform description. One thing it does is describe PCI INTx routing to GSIs. As you note, I guess the table is incomplete. The $PIR table in rombios.c will probably have the same limitation. You can probably work out how to extend the pattern in these two tables up to full 32 devices. I can help if not.

Hi Keir,

thanks for the advice. I seem to have a patch that works and
I have posted it as "HVM: Expand the number of PCI interrupts from 16 to 32"

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en