From nobody Tue Feb 10 17:30:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552208327307370.5745332571595; Sun, 10 Mar 2019 00:58:47 -0800 (PST) Received: from localhost ([127.0.0.1]:42192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2uI5-00032b-N8 for importer@patchew.org; Sun, 10 Mar 2019 04:58:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2tpF-00027T-PF for qemu-devel@nongnu.org; Sun, 10 Mar 2019 04:28:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2tpE-00024x-UB for qemu-devel@nongnu.org; Sun, 10 Mar 2019 04:28:53 -0400 Received: from ozlabs.org ([203.11.71.1]:55167) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h2tpE-0001r4-Hl; Sun, 10 Mar 2019 04:28:52 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 44HDqt5y77z9sPq; Sun, 10 Mar 2019 19:27:19 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1552206442; bh=3nQJBFvT0ClgZcsh9iSEilCXM4YD9V5C1Ur8pOjP74E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTFZzRpydrU2TQz0IAhTFNVK0FYW7z/Zkz2PnIF+tiI4mVQV5fjAqZyetRiR8E1ac dqbxKio+lOJkuCTyqkXXCdvoP54YYkLKj+C7WWm0h78kH0QJ3aVwyvVnedfNMMadwt UCVF7zBJyuy8ytQ+IM2miPCzTpp0umdKm7JiP9uc= From: David Gibson To: peter.maydell@linaro.org Date: Sun, 10 Mar 2019 19:26:48 +1100 Message-Id: <20190310082703.1245-46-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190310082703.1245-1-david@gibson.dropbear.id.au> References: <20190310082703.1245-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 45/60] ppc/pnv: lpc: fix OPB address ranges X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, groug@kaod.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: C=C3=A9dric Le Goater The PowerNV LPC Controller exposes different sets of registers for each of the functional units it encompasses, among which the OPB (On-Chip Peripheral Bus) Master and Arbitrer and the LPC HOST Controller. The mapping addresses of each register range are correct but the sizes are too large. Fix the sizes and define the OPB Arbitrer range to fill the gap between the OPB Master registers and the LPC HOST Controller registers. Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20190307223548.20516-4-clg@kaod.org> Signed-off-by: David Gibson --- hw/ppc/pnv_lpc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/ppc/pnv_lpc.c b/hw/ppc/pnv_lpc.c index 9b18ce55e3..547be609ca 100644 --- a/hw/ppc/pnv_lpc.c +++ b/hw/ppc/pnv_lpc.c @@ -89,10 +89,11 @@ enum { #define LPC_FW_OPB_SIZE 0x10000000 =20 #define LPC_OPB_REGS_OPB_ADDR 0xc0010000 -#define LPC_OPB_REGS_OPB_SIZE 0x00002000 +#define LPC_OPB_REGS_OPB_SIZE 0x00000060 +#define LPC_OPB_REGS_OPBA_ADDR 0xc0011000 +#define LPC_OPB_REGS_OPBA_SIZE 0x00000008 #define LPC_HC_REGS_OPB_ADDR 0xc0012000 -#define LPC_HC_REGS_OPB_SIZE 0x00001000 - +#define LPC_HC_REGS_OPB_SIZE 0x00000100 =20 static int pnv_lpc_dt_xscom(PnvXScomInterface *dev, void *fdt, int xscom_o= ffset) { --=20 2.20.1