From nobody Mon Feb 9 19:53:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82098+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82098+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1634284702; cv=none; d=zohomail.com; s=zohoarc; b=MWEI3AzZ6fOXF47MFAiJoMYiwqV8pBNrlGxIYS2LaI0WUnUu/khET7Z0RTAO/zvqer2MNmwuaeeRyoitPEl7TUx8UDMculcAcVIS+sKQ3rZqdg4WVtO2/WOfoHFBxY2erPh7T/foWVKdj6D2QXXznD0V3TkzlsMqd6Mlv/qE71g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634284702; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=E7RKmMT20T7+hlPFuJ8dEREfhNEncgj3AG007hl2Zf4=; b=jHmRd2K3OugVlRBeQdkgAKR95qZ9b25q+FrIR4WQqRciFaZIg3khTx5BtPBRjoDFxvfzBUIxUvXwhiw4QevAr4iVG7HBceQgdbqp/xFuwJ5jtkcj5UauJhijXM1qJtDznogEfiKg+0Jz/fsaF+jvDGZfIOTXoJvJQiGPt4mAuCA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82098+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1634284702401739.4039074125695; Fri, 15 Oct 2021 00:58:22 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id nr2iYY1788612xn2zjr5IAWb; Fri, 15 Oct 2021 00:58:22 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.6577.1634284699636452402 for ; Fri, 15 Oct 2021 00:58:19 -0700 X-Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19F3VsUC027713; Fri, 15 Oct 2021 07:58:19 GMT X-Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 3bpwcsk87m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Oct 2021 07:58:19 +0000 X-Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 7F5C877; Fri, 15 Oct 2021 07:58:18 +0000 (UTC) X-Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 271B73B; Fri, 15 Oct 2021 07:58:16 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Graeme Gregory , Radoslaw Biernacki , Daniel Schaefer Subject: [edk2-devel] [edk2-platforms][PATCH 7/9] Silicon/SabaQemu: Use PcdPciMmio(32)64Translation PCD from MdePkg Date: Fri, 15 Oct 2021 15:00:06 +0800 Message-Id: <20211015070008.28192-8-abner.chang@hpe.com> In-Reply-To: <20211015070008.28192-1-abner.chang@hpe.com> References: <20211015070008.28192-1-abner.chang@hpe.com> X-Proofpoint-GUID: mhSXy12IeoW0ginDxUIfLLlA_Vw-Mb24 X-Proofpoint-ORIG-GUID: mhSXy12IeoW0ginDxUIfLLlA_Vw-Mb24 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: 5O22BDaphy6u7GFoN0yy3whJx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1634284702; bh=L3eGuZSlVcEhqHa1BEcBO3cE0UQbXoFliHQ+7eDhyCU=; h=Cc:Date:From:Reply-To:Subject:To; b=oWiDCo7waGZEnM0mEie6/NocHuQl893Zv3KNEaIRuyj5L0nHqcd5bM0tQlqUGwZ9RdO 1PMjh3gbrSJHWr9IixO4zxSYvCX58x+SGLU+SqcuiA/4Vaw6nyiAbgiW3W0atmZxIGIvv 9N3UyFeNLfsZvl7YisTqPL9edUdZ9FqyblI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1634284702771100009 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Compliant with BZ: #3665 https://bugzilla.tianocore.org/show_bug.cgi?id=3D3665 PcdPciMmio(32)64Translation PCD is relocated to MdePkg that leveraged by both ARM and RISC-V arch. This patch uses the one from MdePkg instead the one under ArmVirtPkg. Signed-off-by: Abner Chang Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Graeme Gregory Cc: Radoslaw Biernacki Cc: Daniel Schaefer --- Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf | 4 ++-- .../SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf b/Silicon/Qemu= /SbsaQemu/AcpiTables/AcpiTables.inf index 0ad9cc7ce4..176d8fab83 100644 --- a/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf +++ b/Silicon/Qemu/SbsaQemu/AcpiTables/AcpiTables.inf @@ -56,12 +56,12 @@ =20 gArmTokenSpaceGuid.PcdPciMmio32Base gArmTokenSpaceGuid.PcdPciMmio32Size - gArmTokenSpaceGuid.PcdPciMmio32Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio32Limit =20 gArmTokenSpaceGuid.PcdPciMmio64Base gArmTokenSpaceGuid.PcdPciMmio64Size - gArmTokenSpaceGuid.PcdPciMmio64Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio64Limit =20 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress diff --git a/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQem= uPciHostBridgeLib.c b/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLi= b/SbsaQemuPciHostBridgeLib.c index 5021b096f7..9739c7500d 100644 --- a/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHos= tBridgeLib.c +++ b/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHos= tBridgeLib.c @@ -96,7 +96,7 @@ STATIC PCI_ROOT_BRIDGE mRootBridge =3D { =20 /* PCI_ROOT_BRIDGE_APERTURE Mem; MMIO aperture below 4GB which can be us= ed by the root bridge - (gArmTokenSpaceGuid.PcdPciMmio32Translation as 0x0) */ + (gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation as 0x0) */ { FixedPcdGet32 (PcdPciMmio32Base), FixedPcdGet32 (PcdPciMmio32Base) + FixedPcdGet32 (PcdPciMmio32Size) - = 1, @@ -104,7 +104,7 @@ STATIC PCI_ROOT_BRIDGE mRootBridge =3D { =20 /* PCI_ROOT_BRIDGE_APERTURE MemAbove4G; MMIO aperture above 4GB which ca= n be used by the root bridge. - (gArmTokenSpaceGuid.PcdPciMmio64Translation as 0x0) */ + (gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation as 0x0) */ { FixedPcdGet64 (PcdPciMmio64Base), FixedPcdGet64 (PcdPciMmio64Base) + FixedPcdGet64 (PcdPciMmio64Size) - 1 --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82098): https://edk2.groups.io/g/devel/message/82098 Mute This Topic: https://groups.io/mt/86334101/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-