From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.7442.1633343269126618261 for ; Mon, 04 Oct 2021 03:27:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CW/m9fBL; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0911ffc138=abner.chang@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19462DRV001892; Mon, 4 Oct 2021 10:27:45 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=HeleuUaRE4jlo6tqpAd1nT2TMMu2xiiKkYmbHwIIrMQ=; b=CW/m9fBLInCz8SZO8jzlAaTlHxHdtvIw6eAbyfClfAb0ENLgkEtTlutGbQmruIHMALCE 2nNE9U/CzZ8IF+eG+Tiyq2m5dThL4mhwmTo5qLVaP1AXhAmJ0Y8BNEOT6MI7nc0SvRZJ FHNUtwR6RizoEsFMLlegCe/IF8OFh/dR4E6NTqOQB7MwH+LV/7Oc7FmMAvYMkAuCmoaI mNS4My/S3Uv/cOZTnbyq03WuMwcKJZjOKzUYCzm6zAFwzWw26UWf9ySfZRC98XuKGqBJ kpOU5MiffJsKG3R88lnp47XVb686XsW1jblj3QRsHztHPiIaUl85cOvZB49MeXtCVn9j wg== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 3bfgde4vgb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Oct 2021 10:27:45 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 69DF062; Mon, 4 Oct 2021 10:27:44 +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 3AFC339; Mon, 4 Oct 2021 10:27:43 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Thomas Abraham , Sami Mujawar , Daniel Schaefer Subject: [edk2-platforms][PATCH 05/15] Platform/ARM: Use PcdPciIoTranslation PCD from MdePkg Date: Mon, 4 Oct 2021 17:29:51 +0800 Message-Id: <20211004093001.4576-6-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211004093001.4576-1-abner.chang@hpe.com> References: <20211004093001.4576-1-abner.chang@hpe.com> X-Proofpoint-GUID: CD9nHhqOt2LnvNIxtBrr7HIlOuOzD6IO X-Proofpoint-ORIG-GUID: CD9nHhqOt2LnvNIxtBrr7HIlOuOzD6IO 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.391,FMLib:17.0.607.475 definitions=2021-10-04_02,2021-10-04_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 bulkscore=0 spamscore=0 priorityscore=1501 mlxlogscore=780 suspectscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110040071 Complaint with BZ: #3665 https://bugzilla.tianocore.org/show_bug.cgi?id=3665 PcdPciIoTranslation 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 | 3 ++- Platform/ARM/JunoPkg/ArmJuno.dsc | 3 ++- .../Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc index 7e37732fb9..6679939d3b 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc +++ b/Platform/ARM/SgiPkg/SgiPlatform.dsc.inc @@ -1,5 +1,6 @@ # # Copyright (c) 2018-2021, ARM Limited. All rights reserved. +# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -150,7 +151,7 @@ gArmTokenSpaceGuid.PcdPciBusMax|255 gArmTokenSpaceGuid.PcdPciIoBase|0x0 gArmTokenSpaceGuid.PcdPciIoSize|0x00800000 - gArmTokenSpaceGuid.PcdPciIoTranslation|0x77800000 + gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x77800000 gArmTokenSpaceGuid.PcdPciMmio32Translation|0x0 gArmTokenSpaceGuid.PcdPciMmio64Translation|0x0 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24 diff --git a/Platform/ARM/JunoPkg/ArmJuno.dsc b/Platform/ARM/JunoPkg/ArmJuno.dsc index fdfc8cd9e2..3b7a63b643 100644 --- a/Platform/ARM/JunoPkg/ArmJuno.dsc +++ b/Platform/ARM/JunoPkg/ArmJuno.dsc @@ -1,5 +1,6 @@ # # Copyright (c) 2013-2018, ARM Limited. All rights reserved. +# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -178,7 +179,7 @@ gArmTokenSpaceGuid.PcdPciMmio64Size|0x100000000 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x40000000 - gArmTokenSpaceGuid.PcdPciIoTranslation|0x5f800000 + gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x5f800000 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24 # List of Device Paths that support BootMonFs diff --git a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf index 8b4a6e2fad..fb513d7b3d 100644 --- a/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf +++ b/Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf @@ -2,6 +2,7 @@ # PCI Host Bridge Library instance for ARM Juno # # Copyright (c) 2017, Linaro Ltd. All rights reserved.
+# (C) Copyright 2021 Hewlett Packard Enterprise Development LP
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -51,7 +52,7 @@ gArmTokenSpaceGuid.PcdPciBusMax gArmTokenSpaceGuid.PcdPciIoBase gArmTokenSpaceGuid.PcdPciIoSize - gArmTokenSpaceGuid.PcdPciIoTranslation + gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation gArmTokenSpaceGuid.PcdPciMmio32Base gArmTokenSpaceGuid.PcdPciMmio32Size gArmTokenSpaceGuid.PcdPciMmio32Translation -- 2.17.1