From nobody Mon Feb 9 20:12:27 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1649715755694400.79252801199857; Mon, 11 Apr 2022 15:22:35 -0700 (PDT) Received: from localhost ([::1]:36584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne2Qc-000086-AS for importer@patchew.org; Mon, 11 Apr 2022 18:22:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne2Mt-0003qA-Ec for qemu-devel@nongnu.org; Mon, 11 Apr 2022 18:18:43 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:45049) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne2Mr-0006r8-Tx for qemu-devel@nongnu.org; Mon, 11 Apr 2022 18:18:43 -0400 Received: by mail-lj1-x233.google.com with SMTP id u19so12268755ljd.11 for ; Mon, 11 Apr 2022 15:18:41 -0700 (PDT) Received: from localhost.localdomain (31-208-27-151.cust.bredband2.com. [31.208.27.151]) by smtp.gmail.com with ESMTPSA id w22-20020a197b16000000b0046b89a0232esm1112829lfc.105.2022.04.11.15.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 15:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e1UIucD+H7zVkiUrL9j+hlx06ir6lOyP2goZsk3QxdQ=; b=PJROW4abegxRYmRvisVqJXnOkgnp2W+CDJMUz3nOOAU0xVQhJJPG2kkXoQECPtKlBy vFeroyjxuwVvboehkTagAFWxsM/L8Tnid51utlty/XMpPQQbLl+UvPXCZD3p508FxCYB T7ret7ngBnbjyFiblsqAq/QaoCSrq+ucIIJ8eeCythyykTTaYOr+EUvJu3AGr9ZPUhNQ NDS+ODi6bTDDGb0Zs3fQrDOPlNMNX7SAHUcrXJ9rkmvQRYr7nR9D8Wt4AL5PMZKGlJUN Mc6Xnud6sLpAP0AxbPVRPRtPKCknd2Gt1LKlMhj549ewUAsdLfkWqlYJ0HoDl5EonfI8 AgDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e1UIucD+H7zVkiUrL9j+hlx06ir6lOyP2goZsk3QxdQ=; b=58gciDY8YOMqCUS0Sr07sGSvodjKSPf89e1PXlRgOewsX0ChpTcvkBTGqVZh1D5CFA mBeGSNbwPNYU59Wwu8E2bQrjJVJGey2HKiQzr3JnUhIAPQSVR7ebmFjwT2f5AebaG42e +t7DSS5fQ6qTXQYjYgm6WCFJhs2uJ29GDLFnVSnsZTexG6zunssjG4AZCBXcbSe3nUwL l4NTg5XMxJIYKf3wA9/JGBNZkdXqqbGWdUaHbuBrakKeExUs7NWsFk3SmkCKvowy5uDt sPsiwETE1EJdHSHLDmkmY1hPJl2LQDb86nJzl9zX+YubzrmJkpDHPaqxs9V0ZsJ+ofvl B2nA== X-Gm-Message-State: AOAM532qxSMt6AVPlAhhrGHy35N+/3hOgVmBlUa35kGDVbUHuzafHs7S 2NN8dr/dKZE4uNa6wbqTyYCmzuAv+dQkgw== X-Google-Smtp-Source: ABdhPJy353NSFQDwDX0hFJ2YVgmnQdfHCuLml4n1TSfuU7ZYANh3ZeYohDdjQlLbDtCMXv4ymCR01A== X-Received: by 2002:a2e:9851:0:b0:24b:4b18:5e70 with SMTP id e17-20020a2e9851000000b0024b4b185e70mr13412978ljj.485.1649715519793; Mon, 11 Apr 2022 15:18:39 -0700 (PDT) From: Francisco Iglesias To: qemu-devel@nongnu.org Subject: [PATCH v2 2/2] include/hw/pci/pcie_host: Correct PCIE_MMCFG_SIZE_MAX Date: Tue, 12 Apr 2022 00:18:36 +0200 Message-Id: <20220411221836.17699-3-frasse.iglesias@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220411221836.17699-1-frasse.iglesias@gmail.com> References: <20220411221836.17699-1-frasse.iglesias@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::233; envelope-from=frasse.iglesias@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -1020 X-Spam_score: -102.1 X-Spam_bar: --------------------------------------------------- X-Spam_report: (-102.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_WELCOMELIST=-0.01, USER_IN_WHITELIST=-100 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: frasse.iglesias@gmail.com, mst@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1649715757238100001 According to 7.2.2 in [1] bit 27 is the last bit that can be part of the bus number, this makes the ECAM max size equal to '1 << 28'. This patch restores back this value into the PCIE_MMCFG_SIZE_MAX define (which was changed in commit 58d5b22bbd5 ("ppc4xx: Add device models found in PPC440 core SoCs")). [1] PCI Express=C2=AE Base Specification Revision 5.0 Version 1.0 Signed-off-by: Francisco Iglesias --- include/hw/pci/pcie_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/pci/pcie_host.h b/include/hw/pci/pcie_host.h index b3c8ce973c..82d92177da 100644 --- a/include/hw/pci/pcie_host.h +++ b/include/hw/pci/pcie_host.h @@ -65,7 +65,7 @@ void pcie_host_mmcfg_update(PCIExpressHost *e, * bit 12 - 14: function number * bit 0 - 11: offset in configuration space of a given device */ -#define PCIE_MMCFG_SIZE_MAX (1ULL << 29) +#define PCIE_MMCFG_SIZE_MAX (1ULL << 28) #define PCIE_MMCFG_SIZE_MIN (1ULL << 20) #define PCIE_MMCFG_BUS_BIT 20 #define PCIE_MMCFG_BUS_MASK 0xff --=20 2.20.1