From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: Helge Deller <deller@gmx.de>,
Richard Henderson <richard.henderson@linaro.org>,
Anton Johansson <anjo@rev.ng>
Subject: [PATCH 4/6] hw/pci-host/astro: Use proper region names
Date: Tue, 17 Mar 2026 20:51:47 +0100 [thread overview]
Message-ID: <20260317195149.8386-5-deller@kernel.org> (raw)
In-Reply-To: <20260317195149.8386-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
All 64-bit hppa machines have at least 4 Elroy PCI busses in the system.
Make sure to use proper names in the qemu device tree, e.g. "elroy0" or
"elroy2-pci-mmio", to be able to distinguish between the various chips.
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/pci-host/astro.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c
index 626aa9ce22..2c97d400bf 100644
--- a/hw/pci-host/astro.c
+++ b/hw/pci-host/astro.c
@@ -433,7 +433,7 @@ static void elroy_pcihost_realize(DeviceState *dev, Error **errp)
/* Elroy config access from CPU. */
memory_region_init_io(&s->this_mem, obj, &elroy_chip_ops,
- s, "elroy", 0x2000);
+ s, dev->id, 0x2000);
/* Elroy PCI config. */
memory_region_init_io(&phb->conf_mem, obj,
@@ -448,7 +448,9 @@ static void elroy_pcihost_realize(DeviceState *dev, Error **errp)
&phb->data_mem);
/* Elroy PCI bus memory. */
- memory_region_init(&s->pci_mmio, obj, "pci-mmio", UINT64_MAX);
+ g_autofree char *elroy_mmio_name;
+ elroy_mmio_name = g_strdup_printf("%s-pci-mmio", dev->id);
+ memory_region_init(&s->pci_mmio, obj, elroy_mmio_name, UINT64_MAX);
memory_region_init_io(&s->pci_io, obj, &unassigned_io_ops, obj,
"pci-isa-mmio",
((uint32_t) IOS_DIST_BASE_SIZE) / ROPES_PER_IOC);
--
2.53.0
next prev parent reply other threads:[~2026-03-17 19:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 19:51 [PATCH 0/6] HPPA fixes for v11 Helge Deller
2026-03-17 19:51 ` [PATCH 1/6] hw/hppa: Fix description of the HP A400-44 server Helge Deller
2026-03-18 17:22 ` Anton Johansson via qemu development
2026-03-17 19:51 ` [PATCH 2/6] hw/hppa: Adjust physical addresses of Astro and Elroy Helge Deller
2026-03-18 17:26 ` Anton Johansson via qemu development
2026-03-17 19:51 ` [PATCH 3/6] target/hppa: Always map 64-bit firmware at 0xfffffff0f0000000 Helge Deller
2026-03-18 17:29 ` Anton Johansson via qemu development
2026-03-17 19:51 ` Helge Deller [this message]
2026-03-18 6:47 ` [PATCH 4/6] hw/pci-host/astro: Use proper region names Philippe Mathieu-Daudé
2026-03-17 19:51 ` [PATCH 5/6] hw/hppa: Fix crash of 64-bit HP-UX 11 while flushing caches Helge Deller
2026-03-18 21:15 ` Anton Johansson via qemu development
[not found] ` <20260317195149.8386-7-deller@kernel.org>
2026-03-18 21:16 ` [PATCH 6/6] target/hppa: Update SeaBIOS-hppa to version 23 Anton Johansson via qemu development
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=20260317195149.8386-5-deller@kernel.org \
--to=deller@kernel.org \
--cc=anjo@rev.ng \
--cc=deller@gmx.de \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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.