From: Eric Auger <eric.auger@redhat.com>
To: eric.auger.pro@gmail.com, eric.auger@redhat.com,
peter.maydell@linaro.org, alex.williamson@redhat.com,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: christoffer.dall@linaro.org, agraf@suse.de,
pranavkumar@linaro.org, drjones@redhat.com, wei@redhat.com
Subject: [Qemu-devel] [PATCH v3 2/3] hw/arm/virt: Set INTx/gsi mapping
Date: Tue, 13 Jun 2017 15:31:16 +0200 [thread overview]
Message-ID: <1497360677-4780-3-git-send-email-eric.auger@redhat.com> (raw)
In-Reply-To: <1497360677-4780-1-git-send-email-eric.auger@redhat.com>
From: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Let's provide the GPEX host bridge with the INTx/gsi mapping. This is
needed for INTx/gsi routing.
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
---
hw/arm/virt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 010f724..f86c229 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -1012,6 +1012,7 @@ static void create_pcie(const VirtMachineState *vms, qemu_irq *pic)
char *nodename;
int i;
PCIHostState *pci;
+ GPEXHost *s;
dev = qdev_create(NULL, TYPE_GPEX_HOST);
qdev_init_nofail(dev);
@@ -1047,8 +1048,11 @@ static void create_pcie(const VirtMachineState *vms, qemu_irq *pic)
/* Map IO port space */
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 2, base_pio);
+ s = GPEX_HOST(dev);
+
for (i = 0; i < GPEX_NUM_IRQS; i++) {
sysbus_connect_irq(SYS_BUS_DEVICE(dev), i, pic[irq + i]);
+ gpex_set_irq_num(s, i, irq + i);
}
pci = PCI_HOST_BRIDGE(dev);
--
2.5.5
next prev parent reply other threads:[~2017-06-13 13:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 13:31 [Qemu-devel] [PATCH v3 0/3] Generic PCIe host bridge INTx determination for INTx routing Eric Auger
2017-06-13 13:31 ` [Qemu-devel] [PATCH v3 1/3] hw/pci-host/gpex: Set INTx index/gsi mapping Eric Auger
2017-06-13 13:31 ` Eric Auger [this message]
2017-06-13 13:31 ` [Qemu-devel] [PATCH v3 3/3] hw/pci-host/gpex: Implement PCI INTx routing Eric Auger
2017-07-03 11:37 ` [Qemu-devel] [PATCH v3 0/3] Generic PCIe host bridge INTx determination for " Auger Eric
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=1497360677-4780-3-git-send-email-eric.auger@redhat.com \
--to=eric.auger@redhat.com \
--cc=agraf@suse.de \
--cc=alex.williamson@redhat.com \
--cc=christoffer.dall@linaro.org \
--cc=drjones@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=pranavkumar@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wei@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).