MSI-X: Fix endianness
The MSI-X vector tables are usually stored in little endian in memory,so let's mark the accessors as such.
This fixes MSI-X on e500 for me.
Signed-off-by: Alexander Graf <agraf@suse.de>Acked-by: Michael S. Tsirkin <mst@redhat.com>
openpic: fix minor coding style issues
This patch removes all remaining occurences of spaces before functionparameter indicating parenthesis.
Signed-off-by: Alexander Graf <agraf@suse.de>
openpic: Accelerate pending irq search
When we're done with one interrupt, we need to search for the next pendinginterrupt in the queue. This search has grown quite big now that we havemore than 256 possible irq lines.
So let's memorize how many interrupts we have pending in our bitmaps, so...
PPC: E500: PCI: Make first slot qdev settable
Today the first slot id in our e500 pci implementation is hardcoded to0x11. Keep it there as default, but allow users to change the default toa different id.
PPC: E500: PCI: Make IRQ calculation more generic
The IRQ line calculation is more or less hardcoded today. Instead, let'swrite it as an algorithmic function that theoretically allows an arbitrarynumber of PCI slots.
PPC: E500: Generate dt pci irq map dynamically
Today we're hardcoding the PCI interrupt map in the e500 machine file.Instead, let's write it dynamically so that different machine typescan have different slot properties.
PPC: E500: Move PCI slot information into params
We have a params struct that allows us to expose differences betweene500 machine models. Include PCI slot information there, so we can havedifferent machines with different PCI slot topology.
PPC: E500plat: Make a lot of PCI slots available
The ppce500 machine doesn't have to stick to hardware limitations,as it's defined as being fully device tree based.
Thus we can change the initial PCI slot ID to 0x1 which gives us awhopping 31 PCI devices we can support with this machine now!...
PPC: e500: pci: Export slot2irq calculation
We need the calculation method to get from a PCI slot ID to its respectiveinterrupt line twice. Once in the internal map function and once whenassembling the device tree.
So let's extract the calculation to a separate function that can be called...
PPC: e500: Declare pci bridge as bridge
The new PCI host bridge device needs to identify itself as PCI host bridge.Declare it as such.
View revisions
Also available in: Atom