From: Christoffer Dall <christoffer.dall@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: [PATCH v2 0/3] Add support for for GICv2m and MSIs to arm-virt
Date: Sun, 24 May 2015 12:38:51 +0200 [thread overview]
Message-ID: <20150524103851.GA19095@cbox> (raw)
In-Reply-To: <CAFEAcA84kB2iq-fwW6950rVtjuh5Li5b=edkSxooo9bDMgDuPw@mail.gmail.com>
On Wed, May 06, 2015 at 05:39:28PM +0100, Peter Maydell wrote:
> On 6 May 2015 at 17:33, Peter Maydell <peter.maydell@linaro.org> wrote:
> > On 27 April 2015 at 18:31, Christoffer Dall <christoffer.dall@linaro.org> wrote:
> >> Now when we have a host generic PCIe controller in the virt board, it
> >> would be nice to be able to use MSIs so that we can eventually enable
> >> VHOST with KVM.
> >>
> >> With these patches you can use MSIs with TCG and with KVM, but you still
> >> need some fixes for the mapping of the IRQ index to the GSI number for
> >> IRQFD to work. A separate series that enables IRQFD and vhost
> >> is available: "ARM adaptations for vhost irqfd setup"
> >> https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01054.html)
> >>
> >> Tested with KVM on XGene and with TCG by configuring a virtio-pci
> >> network adapter for the guest and verifying MSIs going through as
> >> expected.
> >
> > You forgot to change the QOM device name to 'arm-gicv2m', but
> > I'll fix that up as I apply this to target-arm.next.
>
> ...except this series breaks booting of a linux guest using PCI
> on the virt board with aarch32:
>
> PCI host bridge /pcie@10000000 ranges:
> IO 0x3eff0000..0x3effffff -> 0x00000000
> MEM 0x10000000..0x3efeffff -> 0x10000000
> pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
> pci_bus 0000:00: root bus resource [bus 00-0f]
> pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
> pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
> PCI: bus0: Fast back to back transfers disabled
> pci 0000:00:01.0: of_irq_parse_pci() failed with rc=-22
> pci 0000:00:02.0: of_irq_parse_pci() failed with rc=-22
> pci 0000:00:02.0: BAR 6: assigned [mem 0x10000000-0x1003ffff pref]
> pci 0000:00:01.0: BAR 1: assigned [mem 0x10040000-0x10040fff]
> pci 0000:00:02.0: BAR 1: assigned [mem 0x10041000-0x10041fff]
> pci 0000:00:01.0: BAR 0: assigned [io 0x1000-0x103f]
> pci 0000:00:02.0: BAR 0: assigned [io 0x1040-0x105f]
> virtio-pci 0000:00:01.0: enabling device (0100 -> 0103)
> virtio-pci 0000:00:02.0: enabling device (0100 -> 0103)
> virtio_blk: probe of virtio32 failed with error -22
> virtio_net: probe of virtio33 failed with error -22
>
> (and without virtio-blk we don't mount our rootfs).
>
Shanker figured out that this was due to me changing address-cells and
size-cells in the gic node and breaking the irq-map in the DT and
provided a fix.
I will send a new series.
Thanks,
-Christoffer
WARNING: multiple messages have this Message-ID (diff)
From: Christoffer Dall <christoffer.dall@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Shanker Donthineni <shankerd@codeaurora.org>,
"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: [Qemu-devel] [PATCH v2 0/3] Add support for for GICv2m and MSIs to arm-virt
Date: Sun, 24 May 2015 12:38:51 +0200 [thread overview]
Message-ID: <20150524103851.GA19095@cbox> (raw)
In-Reply-To: <CAFEAcA84kB2iq-fwW6950rVtjuh5Li5b=edkSxooo9bDMgDuPw@mail.gmail.com>
On Wed, May 06, 2015 at 05:39:28PM +0100, Peter Maydell wrote:
> On 6 May 2015 at 17:33, Peter Maydell <peter.maydell@linaro.org> wrote:
> > On 27 April 2015 at 18:31, Christoffer Dall <christoffer.dall@linaro.org> wrote:
> >> Now when we have a host generic PCIe controller in the virt board, it
> >> would be nice to be able to use MSIs so that we can eventually enable
> >> VHOST with KVM.
> >>
> >> With these patches you can use MSIs with TCG and with KVM, but you still
> >> need some fixes for the mapping of the IRQ index to the GSI number for
> >> IRQFD to work. A separate series that enables IRQFD and vhost
> >> is available: "ARM adaptations for vhost irqfd setup"
> >> https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01054.html)
> >>
> >> Tested with KVM on XGene and with TCG by configuring a virtio-pci
> >> network adapter for the guest and verifying MSIs going through as
> >> expected.
> >
> > You forgot to change the QOM device name to 'arm-gicv2m', but
> > I'll fix that up as I apply this to target-arm.next.
>
> ...except this series breaks booting of a linux guest using PCI
> on the virt board with aarch32:
>
> PCI host bridge /pcie@10000000 ranges:
> IO 0x3eff0000..0x3effffff -> 0x00000000
> MEM 0x10000000..0x3efeffff -> 0x10000000
> pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
> pci_bus 0000:00: root bus resource [bus 00-0f]
> pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
> pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
> PCI: bus0: Fast back to back transfers disabled
> pci 0000:00:01.0: of_irq_parse_pci() failed with rc=-22
> pci 0000:00:02.0: of_irq_parse_pci() failed with rc=-22
> pci 0000:00:02.0: BAR 6: assigned [mem 0x10000000-0x1003ffff pref]
> pci 0000:00:01.0: BAR 1: assigned [mem 0x10040000-0x10040fff]
> pci 0000:00:02.0: BAR 1: assigned [mem 0x10041000-0x10041fff]
> pci 0000:00:01.0: BAR 0: assigned [io 0x1000-0x103f]
> pci 0000:00:02.0: BAR 0: assigned [io 0x1040-0x105f]
> virtio-pci 0000:00:01.0: enabling device (0100 -> 0103)
> virtio-pci 0000:00:02.0: enabling device (0100 -> 0103)
> virtio_blk: probe of virtio32 failed with error -22
> virtio_net: probe of virtio33 failed with error -22
>
> (and without virtio-blk we don't mount our rootfs).
>
Shanker figured out that this was due to me changing address-cells and
size-cells in the gic node and breaking the irq-map in the DT and
provided a fix.
I will send a new series.
Thanks,
-Christoffer
next prev parent reply other threads:[~2015-05-24 10:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 17:31 [PATCH v2 0/3] Add support for for GICv2m and MSIs to arm-virt Christoffer Dall
2015-04-27 17:31 ` [Qemu-devel] " Christoffer Dall
2015-04-27 17:31 ` [PATCH v2 1/3] target-arm: Add GIC phandle to VirtBoardInfo Christoffer Dall
2015-04-27 17:31 ` [Qemu-devel] " Christoffer Dall
2015-04-27 17:31 ` [PATCH v2 2/3] arm_gicv2m: Add GICv2m widget to support MSIs Christoffer Dall
2015-04-27 17:31 ` [Qemu-devel] " Christoffer Dall
2015-04-27 17:31 ` [PATCH v2 3/3] target-arm: Add the GICv2m to the virt board Christoffer Dall
2015-04-27 17:31 ` [Qemu-devel] " Christoffer Dall
2015-05-06 16:33 ` [PATCH v2 0/3] Add support for for GICv2m and MSIs to arm-virt Peter Maydell
2015-05-06 16:33 ` [Qemu-devel] " Peter Maydell
2015-05-06 16:39 ` Peter Maydell
2015-05-06 16:39 ` [Qemu-devel] " Peter Maydell
2015-05-24 10:38 ` Christoffer Dall [this message]
2015-05-24 10:38 ` Christoffer Dall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150524103851.GA19095@cbox \
--to=christoffer.dall@linaro.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.