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.web11.6468.1634285252162537560 for ; Fri, 15 Oct 2021 01:07:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=CXA1Q1JB; 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 19F7W0LH015963; Fri, 15 Oct 2021 08:07:32 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=MXZhgtz8yxdXUP0kBvAnMdC7Xyy6StMmFxF7kl/cw/U=; b=CXA1Q1JB8Whnfcv4s3XflNmnqkzNBkkz8UL4rUW76qikIZ8Xu4kv7OSVXJ/5phEif3+p n8c7GnXGMNb4TNbNH5JM9a7klMplStWTMVVYi+3jf9Mwcwp1UEP74fRXOyrFV+6iBoR7 dMzLqSFRouXrFzrW7yn1GIt5y87NI5noeBGfwmTepvtCsEsAafWz1/2WT8HqYLiK8zbe aS8VjBygmJ9Ut/nvpMqpoLtDIUS29slE+rNv2ZlmAuSQupqwJ+MYebMVHuPLrUfh3Abi oZnQV0+RSQUlGvy1mQ+u5pZO+FYu3Vy3IhzVQTwvmfDONLuXUUnaGYhB2qt8XnYbKmxd FA== Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 3bptrjve3c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Oct 2021 08:07:31 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id E73C956; Fri, 15 Oct 2021 08:07:30 +0000 (UTC) Received: from abner-virtual-machine.asiapacific.hpqcorp.net (abner-virtual-machine.asiapacific.hpqcorp.net [15.119.210.153]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 88ADD45; Fri, 15 Oct 2021 08:07:29 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Graeme Gregory , Radoslaw Biernacki , Daniel Schaefer Subject: [edk2-platforms][PATCH V2 7/9] Silicon/SabaQemu: Use PcdPciMmio(32)64Translation PCD from MdePkg Date: Fri, 15 Oct 2021 15:09:18 +0800 Message-Id: <20211015070920.28518-8-abner.chang@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211015070920.28518-1-abner.chang@hpe.com> References: <20211015070920.28518-1-abner.chang@hpe.com> X-Proofpoint-GUID: LgVeVYGxkpuNWpaqD1JgLkJh5sok1KWZ X-Proofpoint-ORIG-GUID: LgVeVYGxkpuNWpaqD1JgLkJh5sok1KWZ 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=921 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110150052 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: 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 @@ gArmTokenSpaceGuid.PcdPciMmio32Base gArmTokenSpaceGuid.PcdPciMmio32Size - gArmTokenSpaceGuid.PcdPciMmio32Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio32Limit gArmTokenSpaceGuid.PcdPciMmio64Base gArmTokenSpaceGuid.PcdPciMmio64Size - gArmTokenSpaceGuid.PcdPciMmio64Translation + gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation gArmVirtSbsaQemuPlatformTokenSpaceGuid.PcdPciMmio64Limit gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress diff --git a/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.c b/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.c index 5021b096f7..9739c7500d 100644 --- a/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.c +++ b/Silicon/Qemu/SbsaQemu/Library/SbsaQemuPciHostBridgeLib/SbsaQemuPciHostBridgeLib.c @@ -96,7 +96,7 @@ STATIC PCI_ROOT_BRIDGE mRootBridge = { /* PCI_ROOT_BRIDGE_APERTURE Mem; MMIO aperture below 4GB which can be used 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 = { /* PCI_ROOT_BRIDGE_APERTURE MemAbove4G; MMIO aperture above 4GB which can be used by the root bridge. - (gArmTokenSpaceGuid.PcdPciMmio64Translation as 0x0) */ + (gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation as 0x0) */ { FixedPcdGet64 (PcdPciMmio64Base), FixedPcdGet64 (PcdPciMmio64Base) + FixedPcdGet64 (PcdPciMmio64Size) - 1 -- 2.17.1