From nobody Thu Apr 2 02:45:40 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1774905674; cv=none; d=zohomail.com; s=zohoarc; b=i3QboBDn3702WZbU6OtAN94a+K7LhM0TGjfn52aQGFMi/CKVqOCP2hkvgN+9IJVw7K8cjRqxmO23e7eRC6FonLjdW28ldziXMR/8rcDjARTGDpR9kKLBL7ttoqXbGNcxDHexmRm4stIJAFb7Rf7CfqOTurEt0UcUsUeKkReN5FU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1774905674; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=f1+yIGCZS+CKV09/AG3PQ5PtpH7p/o8bTcqPyB5UJ/c=; b=k0MD/XaCpMqXFxC1z9B02o/BrQepT03ZYEgzmejqlzV1n/SMDjNSKkjaIDYs/FPK5M8Rr4NokFvod4mM6VLrAi0sLEH8uIvMyACnyYhJHa9ngx3u3XD/5J/NvsVsZaeigAp436I5ZrXj5V1cOaRpQAemCDDpdrtI/m6C7LGxoiI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1774905674489581.2629005833043; Mon, 30 Mar 2026 14:21:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w7K0u-0000o4-0c; Mon, 30 Mar 2026 17:19:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w7K0r-0000mj-WD for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:19:10 -0400 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w7K0q-0003k8-E2 for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:19:09 -0400 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 66BC360141; Mon, 30 Mar 2026 21:19:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F857C2BCB5; Mon, 30 Mar 2026 21:19:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774905547; bh=9KHv+oggX6kZex2cOE1Y3qpglSe7tZsjJxsxtmMZ4wc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YDZcU4p9xyDpNMLTpbifsvFGRQ7ZykXnm4cemk5s+RFuYDHMkKi2pfEVIgCYyyIv5 n9ha7V/jJ+D3rMLxQ3FA4/D8GJcPt2VajbOuj2Y6Yuf/Afj2tmI7mzn9jIXclLbYqC U4goNfyDREwg7bAr/LUlvYFBoj8vNtjmTB5RPHewBpwfGdSWVL7vxV2VKFqsZmpArY gd7OrvNIOq9ieTs+SMNASqLb9HJyc2I9PnR7g0DmYVz8rSW042wVs7lp3ZTAYTEISR S5kOIS5DiPIOo83xtixoL3PzJzaSIlC+cs23tuBo+wnW98eU4zdjYBgtihpIaxwhRo 3VE9ylTrBRU+w== From: Helge Deller To: qemu-devel@nongnu.org Cc: deller@gmx.de, Richard Henderson Subject: [PATCH 04/11] hw/pci-host/astro: Fix initial addresses in IOC Date: Mon, 30 Mar 2026 23:18:51 +0200 Message-ID: <20260330211859.19317-5-deller@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260330211859.19317-1-deller@kernel.org> References: <20260330211859.19317-1-deller@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2600:3c04:e001:324:0:1991:8:25; envelope-from=deller@kernel.org; helo=tor.source.kernel.org X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.54, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @kernel.org) X-ZM-MESSAGEID: 1774905674701158500 Content-Type: text/plain; charset="utf-8" From: Helge Deller F-Extend the LMMIO and IOS distributed addresses. Use the 44-bit address for the IOS distributed address. Signed-off-by: Helge Deller --- 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] =3D LMMIO_DIST_BASE_ADDR | 0x01; /*= LMMIO_DIST_BASE (SBA) */ + s->ioc_ranges[(0x360 - 0x300) / 8] =3D F_EXTEND(LMMIO_DIST_BASE_ADDR) = | 0x01; s->ioc_ranges[(0x368 - 0x300) / 8] =3D 0xfc000000; /* LMMIO_D= IST_MASK */ s->ioc_ranges[(0x370 - 0x300) / 8] =3D 0; /* LMMIO_D= IST_ROUTE */ - s->ioc_ranges[(0x390 - 0x300) / 8] =3D IOS_DIST_BASE_ADDR | 0x01; /* I= OS_DIST_BASE */ + s->ioc_ranges[(0x390 - 0x300) / 8] =3D F_EXTEND(IOS_DIST_BASE_ADDR) | = 0x01; s->ioc_ranges[(0x398 - 0x300) / 8] =3D 0xffffff0000; /* IOS_DIS= T_MASK */ s->ioc_ranges[(0x3a0 - 0x300) / 8] =3D 0x3400000000000000ULL; /* IOS_D= IST_ROUTE */ - s->ioc_ranges[(0x3c0 - 0x300) / 8] =3D 0xfffee00000; /* IOS_DIR= ECT_BASE */ + s->ioc_ranges[(0x3c0 - 0x300) / 8] =3D IOS_DIST_BASE_ADDR; /* IOS_DIR= ECT_BASE */ s->ioc_ranges[(0x3c8 - 0x300) / 8] =3D 0xffffff0000; /* IOS_DIR= ECT_MASK */ s->ioc_ranges[(0x3d0 - 0x300) / 8] =3D 0x0; /* IOS_DIR= ECT_ROUTE */ =20 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_BRI= DGE) =20 #define LMMIO_DIRECT_RANGES 4 =20 -#define IOS_DIST_BASE_ADDR 0xfffee00000ULL -#define IOS_DIST_BASE_SIZE 0x10000ULL +#define IOS_DIST_BASE_ADDR 0xffffee00000ULL +#define IOS_DIST_BASE_SIZE 0x10000ULL =20 #define HF_ENABLE 0x40 /* enable HF mode (default is -1 mode) */ =20 --=20 2.53.0