From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web12.6452.1634284698927222614 for ; Fri, 15 Oct 2021 00:58:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=eH0Ageff; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0922d4c8eb=abner.chang@hpe.com) Received: from pps.filterd (m0134421.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19F4g1xw015904; Fri, 15 Oct 2021 07:58:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version; s=pps0720; bh=mVWGyG9rPO1721gB4A/Lle7vf24k7bpeAl/n3L9Iadc=; b=eH0AgeffSSodJf2QC7CxxcYfTRGpPKuyR0+4AzK6IAKCrWXHyBTqQXXm17rSe/0uGhdD NyP4sGMJoab1cZI7OxjQiJT6QoQqXe9sCLTRc3kaMD2GurgAvErUSKALSHrhoeR9vmFN k5l3tpqWfWc0Zb/zO9RPWYZrDH5JftbNRg8nXFLqck09F26Qea6/ySmq1x2KfzD1CbkY 5BuBUJ9x9vlYW4bTg22GVopYwpJFC+V9BPxgPJT3XJYOPlTHsrV61+IaBDgGU2GCcwMC Nzf7TRIbnauM6DZ9FVZ1iXyMjpvrl1PcUWPDbGes565EwViSg5U1pTLAIdetCfLxqDAh BA== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 3bptrjvbrt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Oct 2021 07:58:15 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 2559663; Fri, 15 Oct 2021 07:58:15 +0000 (UTC) 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 E9E1D3A; Fri, 15 Oct 2021 07:58:13 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Thomas Abraham , Sami Mujawar , Daniel Schaefer Subject: [edk2-platforms][PATCH 5/9] Platform/ARM: Use PcdPciMmio(32)64Translation PCD from MdePkg Date: Fri, 15 Oct 2021 15:00:04 +0800 Message-Id: <20211015070008.28192-6-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211015070008.28192-1-abner.chang@hpe.com> References: <20211015070008.28192-1-abner.chang@hpe.com> X-Proofpoint-GUID: ekwPQLbRKjbd5_21Hvq_1A8jUAxR9HZf X-Proofpoint-ORIG-GUID: ekwPQLbRKjbd5_21Hvq_1A8jUAxR9HZf X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-15_02,2021-10-14_02,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 adultscore=0 phishscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 spamscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=683 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110150050 Compliant with BZ: #3665 https://bugzilla.tianocore.org/show_bug.cgi?id=3665 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: Thomas Abraham Cc: Sami Mujawar Cc: Daniel Schaefer --- Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 4 ++-- .../Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf | 4 ++-- .../ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc index 6679939d3b..4fe3ccf9a5 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc @@ -152,8 +152,8 @@ gArmTokenSpaceGuid.PcdPciIoBase|0x0 gArmTokenSpaceGuid.PcdPciIoSize|0x00800000 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x77800000 - gArmTokenSpaceGuid.PcdPciMmio32Translation|0x0 - gArmTokenSpaceGuid.PcdPciMmio64Translation|0x0 + gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation|0x0 + gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation|0x0 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24 ## PL011 - Serial Terminal diff --git a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf index fb513d7b3d..f448803fda 100644 --- a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf +++ b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf @@ -55,10 +55,10 @@ gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation gArmTokenSpaceGuid.PcdPciMmio32Base gArmTokenSpaceGuid.PcdPciMmio32Size - gArmTokenSpaceGuid.PcdPciMmio32Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation gArmTokenSpaceGuid.PcdPciMmio64Base gArmTokenSpaceGuid.PcdPciMmio64Size - gArmTokenSpaceGuid.PcdPciMmio64Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation gArmJunoTokenSpaceGuid.PcdPcieControlBaseAddress gArmJunoTokenSpaceGuid.PcdPcieRootPortBaseAddress diff --git a/Platform/ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf b/Platform/ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf index a9fdd874d0..0f53d67bc0 100644 --- a/Platform/ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf +++ b/Platform/ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf @@ -46,7 +46,7 @@ gArmTokenSpaceGuid.PcdPciIoSize gArmTokenSpaceGuid.PcdPciMmio32Base gArmTokenSpaceGuid.PcdPciMmio32Size - gArmTokenSpaceGuid.PcdPciMmio32Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation gArmTokenSpaceGuid.PcdPciMmio64Base gArmTokenSpaceGuid.PcdPciMmio64Size -- 2.17.1