On Thu, Jul 9, 2015 at 6:28 PM, Peter Maydell <peter.mayd...@linaro.org> wrote: > On 9 July 2015 at 17:03, Christoffer Dall <christoffer.d...@linaro.org> wrote: >> [whoops, re-adding qemu-devel] >> >> On Thu, Jul 9, 2015 at 5:07 PM, Alexander Graf <ag...@suse.de> wrote: >>> On 07/09/15 16:44, Christoffer Dall wrote: >>>> I'll be honest and say that I don't fully understand the details of the >>>> interrupt-map specification, and I cannot seem to find it online either >>>> (the working link I had before gives me a 404 these days). > > Try http://www.firmware.org/1275/practice/imap/imap0_9d.pdf >
that's the one, thanks for the working url. >> It explains it conceptually, yes, but it's hardly a spec. At least I >> can't understand from that page why the entries in the map have to be >> changed based on size-cells and address-cells in the interrupt >> controller... > > The interrupt map entries are: > * child unit interrupt specifier [4 cells for PCI, determined > by #address-cells + #interrupt-cells for the PCI controller node] > * interrupt parent phandle > * parent unit interrupt specifier [number of cells determined > by #address-cells + #interrupt-cells for the interrupt controller] > > So the extra two zeroes aren't part of the phandle, they're > the result of the parent unit-interrupt-specifier now being > 5 cells because of #address-cells being defined in the GIC node. Thanks for clearing this up! I owe you a cup of your favorite poison then:) -Christoffer