From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: deller@gmx.de, Richard Henderson <richard.henderson@linaro.org>
Subject: [PATCH 04/11] hw/pci-host/astro: Fix initial addresses in IOC
Date: Mon, 30 Mar 2026 23:18:51 +0200 [thread overview]
Message-ID: <20260330211859.19317-5-deller@kernel.org> (raw)
In-Reply-To: <20260330211859.19317-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
F-Extend the LMMIO and IOS distributed addresses.
Use the 44-bit address for the IOS distributed address.
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/pci-host/astro.c | 6 +++---
include/hw/pci-host/astro.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/pci-host/astro.c b/hw/pci-host/astro.c
index 6a09dc15e7..87bc98f553 100644
--- a/hw/pci-host/astro.c
+++ b/hw/pci-host/astro.c
@@ -804,13 +804,13 @@ static void astro_reset(DeviceState *dev)
* The LBA BASE/MASK registers control IO -> System routing (in Elroy)
*/
memset(&s->ioc_ranges, 0, sizeof(s->ioc_ranges));
- s->ioc_ranges[(0x360 - 0x300) / 8] = LMMIO_DIST_BASE_ADDR | 0x01; /* LMMIO_DIST_BASE (SBA) */
+ s->ioc_ranges[(0x360 - 0x300) / 8] = F_EXTEND(LMMIO_DIST_BASE_ADDR) | 0x01;
s->ioc_ranges[(0x368 - 0x300) / 8] = 0xfc000000; /* LMMIO_DIST_MASK */
s->ioc_ranges[(0x370 - 0x300) / 8] = 0; /* LMMIO_DIST_ROUTE */
- s->ioc_ranges[(0x390 - 0x300) / 8] = IOS_DIST_BASE_ADDR | 0x01; /* IOS_DIST_BASE */
+ s->ioc_ranges[(0x390 - 0x300) / 8] = F_EXTEND(IOS_DIST_BASE_ADDR) | 0x01;
s->ioc_ranges[(0x398 - 0x300) / 8] = 0xffffff0000; /* IOS_DIST_MASK */
s->ioc_ranges[(0x3a0 - 0x300) / 8] = 0x3400000000000000ULL; /* IOS_DIST_ROUTE */
- s->ioc_ranges[(0x3c0 - 0x300) / 8] = 0xfffee00000; /* IOS_DIRECT_BASE */
+ s->ioc_ranges[(0x3c0 - 0x300) / 8] = IOS_DIST_BASE_ADDR; /* IOS_DIRECT_BASE */
s->ioc_ranges[(0x3c8 - 0x300) / 8] = 0xffffff0000; /* IOS_DIRECT_MASK */
s->ioc_ranges[(0x3d0 - 0x300) / 8] = 0x0; /* IOS_DIRECT_ROUTE */
diff --git a/include/hw/pci-host/astro.h b/include/hw/pci-host/astro.h
index fce052c9f8..5eb1fa57c1 100644
--- a/include/hw/pci-host/astro.h
+++ b/include/hw/pci-host/astro.h
@@ -26,8 +26,8 @@ OBJECT_DECLARE_SIMPLE_TYPE(ElroyState, ELROY_PCI_HOST_BRIDGE)
#define LMMIO_DIRECT_RANGES 4
-#define IOS_DIST_BASE_ADDR 0xfffee00000ULL
-#define IOS_DIST_BASE_SIZE 0x10000ULL
+#define IOS_DIST_BASE_ADDR 0xffffee00000ULL
+#define IOS_DIST_BASE_SIZE 0x10000ULL
#define HF_ENABLE 0x40 /* enable HF mode (default is -1 mode) */
--
2.53.0
next prev parent reply other threads:[~2026-03-30 21:21 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-30 21:18 [PATCH 00/11] HPPA Patches for qemu-v11 Helge Deller
2026-03-30 21:18 ` [PATCH 01/11] hw/pci-host/astro: Update copyright and documentation link Helge Deller
2026-03-31 9:35 ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 02/11] hw/hppa: Disable Artist graphics card on 64-bit machines Helge Deller
2026-03-30 21:42 ` Philippe Mathieu-Daudé
2026-03-31 8:58 ` Helge Deller
2026-03-31 9:34 ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 03/11] hw/pci-host/astro: Make astro address arrays accessible for other users Helge Deller
2026-03-30 21:18 ` Helge Deller [this message]
2026-03-30 21:18 ` [PATCH 05/11] hw/pci-host/astro: Implement LMMIO registers Helge Deller
2026-03-30 21:18 ` [PATCH 06/11] hw/pci-host/astro: Fix LMMIO DIRECT mappings Helge Deller
2026-03-30 21:18 ` [PATCH 07/11] hw/pci-host/astro: Add GMMIO mapping Helge Deller
2026-03-30 21:56 ` Philippe Mathieu-Daudé
2026-03-30 22:29 ` Helge Deller
2026-03-31 9:14 ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 08/11] hw/pci-host/astro: Add comment about Astro version numbers Helge Deller
2026-03-30 21:54 ` Philippe Mathieu-Daudé
2026-03-31 16:57 ` Helge Deller
2026-03-30 21:18 ` [PATCH 09/11] target/hppa: Fix TOC handler for 64-bit CPUs Helge Deller
2026-03-30 21:52 ` Philippe Mathieu-Daudé
2026-03-30 21:18 ` [PATCH 10/11] hw/hppa: Implement memory ranges Helge Deller
2026-03-31 13:09 ` [PATCH 00/11] HPPA Patches for qemu-v11 Philippe Mathieu-Daudé
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=20260330211859.19317-5-deller@kernel.org \
--to=deller@kernel.org \
--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.