From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from mga05.intel.com (mga05.intel.com [192.55.52.43])
by mx.groups.io with SMTP id smtpd.web11.166725.1673877074014535072
for ;
Mon, 16 Jan 2023 05:51:14 -0800
Authentication-Results: mx.groups.io;
dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=asgEMDd6;
spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: damian.milosek@intel.com)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
t=1673877073; x=1705413073;
h=from:to:cc:subject:date:message-id:mime-version;
bh=9b5M2Pkb9k8e+Zj8/mBHI1GD1yQ42yrFlZy6XD58ogI=;
b=asgEMDd6+hgCOMu191fgX6PjRdz4nIuG2LdOC6T4etXYEihL1Neb7X70
fbYVlSEQgaMUbrdFFCJ/IJB1cV0UZ+IvpI/xPZiB3xVEOP3apMG9TQWrI
GIyeGb5yBKLxz3eyCG0o9oMSzHZJQpFrvBWYC+oA7ufb/fuguBMrErvZO
nu4EFKYLPBY+f4jKPuPObAjZisSEF1/fKT2C+GCwtuJdPBUQJH1ZLPtio
d9nKjQVYDxNp2RDB4Psqa0su6OxxBI3RSIKOkvNQ1YYAeuWYm6PgWEW3c
M/waj3RGEZRLyw3SU7FKjGEzd6NCdLv+nmT3W2mnm6+1/Dz9JBJHVOWeN
g==;
X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="410711146"
X-IronPort-AV: E=Sophos;i="5.97,221,1669104000";
d="scan'208,217";a="410711146"
Received: from fmsmga003.fm.intel.com ([10.253.24.29])
by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2023 05:51:13 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="747736654"
X-IronPort-AV: E=Sophos;i="5.97,221,1669104000";
d="scan'208,217";a="747736654"
Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81])
by FMSMGA003.fm.intel.com with ESMTP; 16 Jan 2023 05:51:13 -0800
Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by
fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.2507.16; Mon, 16 Jan 2023 05:51:13 -0800
Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by
fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.2507.16; Mon, 16 Jan 2023 05:51:13 -0800
Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by
fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.1.2507.16 via Frontend Transport; Mon, 16 Jan 2023 05:51:13 -0800
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.174)
by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
15.1.2507.16; Mon, 16 Jan 2023 05:51:09 -0800
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=Dh5GfYfczMfRKPyTTJoO3SS5Ij2lIlhlTGiP7c4TE7qhdCxLwFF3YAWMTNTh4napUAXGwAe78HRvGqvxZ0ktyhA0VPX8n1cgTP/4XmIvveAmaw8OR42aLCThyeW/+3nEPxL9wiVeeH+/PUbwKnsBAZsoD2JooakU70Y/5MaA6c62qJlEkTD5oWTdw5RpcqHmodbuNeRX7x+c8xyBFMhFd9UivE87y/DGdY2Q6FSKZNfsB/4muzK9zBpcL4cqdHGat/fuYIjwl6Y6tI3QwAcFXBFg9FZWdjJNcQgHzb5KkW3mP4OvaVtYkd1av55HptQIEz85/RwOhzFoM7ufe8dOdQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=P6UFhx2Z1rbGXhy+WY2zA0+5zUqRA40P3qj0LcX/ScE=;
b=LVGgpKVZbJxqp5GWY557Na4g3glkr5EPwj/u7uYHJWDYGkCBiof57XbIQRscAcWsvrNgdG2naqH9+FX4/XIB9DvL8ZoU09DggVkPU83NqhQl8AUAEFvIEOh6fdBv2AKBSNv2O/NftohMMz3b8PZptSDb8qlOmuzLU8eWiA+yWApU/rpZ643DqIMcQQLEMIPZspzkhOU/JqCAFOkAYIeHZ9EluNKxUcYyyTUaSTWMBlO7oVyctoIdYwsVOiKsTy3o8DPMyNZSD4x5QHNWoKPc8eRd8K0M/V0sfxal7WoLNV8OgrSHEt1UjvJaEnyeENGBKHmc6zxd8slLqBNkxMKLOQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com;
dkim=pass header.d=intel.com; arc=none
Received: from PH7PR11MB5887.namprd11.prod.outlook.com (2603:10b6:510:136::20)
by PH7PR11MB8124.namprd11.prod.outlook.com (2603:10b6:510:237::9) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Mon, 16 Jan
2023 13:51:07 +0000
Received: from PH7PR11MB5887.namprd11.prod.outlook.com
([fe80::c8a7:257c:6ec3:f5bd]) by PH7PR11MB5887.namprd11.prod.outlook.com
([fe80::c8a7:257c:6ec3:f5bd%3]) with mapi id 15.20.5986.019; Mon, 16 Jan 2023
13:51:07 +0000
From: damian.milosek@intel.com
To: "devel@edk2.groups.io"
CC: "Milosek, Damian"
Subject: [PATCH] StandaloneMmPkg/StandaloneMmMemLib: Update AARCH64 address size
Thread-Topic: [PATCH] StandaloneMmPkg/StandaloneMmMemLib: Update AARCH64
address size
Thread-Index: AdkpsRLevHgQ0VmUTuW8Suo+oRFPog==
Date: Mon, 16 Jan 2023 13:51:07 +0000
Message-ID:
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=intel.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PH7PR11MB5887:EE_|PH7PR11MB8124:EE_
x-ms-office365-filtering-correlation-id: 764d7528-da96-417f-95b0-08daf7c8b7fa
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: JuVw+OdlMm8Bfy3SPUe3IzMi1HjDcQ3mDBW1YYHCw8Dc/UdM6xmOOXzzIrzXsg6DB9W9mUupAKcYCkdPZhBTH7J5qmFzdcoJT2I7JL/HkA3eM1Oi0qzjKDa2Xppk8qVWZUTDT0dPgQQz/BC/yVRhP/v37NDg+xMZkrzlKDZIMDGrY9oeoa/klCsMbj+JF8N9bFljIcbpOz5s2vYkp6oviOeDWUUZE+xZpg1ApBmABbh8g69ntQYgIV1QJyByqgZXQ89N5H6O35qgiidguTs5b7vPzPuk0T3zgPrKpg80vO4dKEEzZQyHWXj1lLfx/LVNUyntEm9QClVa2EaEQahkb+fgtuybizAsilCrMkA716ywtDEc7v65iuQHkvPylayFfhIWxPJhvHsQQxBuTmrMqK4bXTb1S0dIysa4t28odptOrrm8xsxKV3KZla7eRg/kML8fxe4G1JudWnmw6Al4TXj7cIOFR8tKJfk6Q0j7XmAFKOE1PHWWFcd/1Q4hKIXxl+PIO9+YrebVCaEEhyEctm3n/17+5l1xkHLxCQfM+bwJTRIvYACIDy81ffq9oqKWXkQnE2QIa1s4olh+7wvtC9wHCFH3GSJFs7+FLcN+nUgaGffV/wjWxad0WZQP/VBoaOo1Ns4qGe+65gPHF2yNuzPzIBb0Hj6vSBdepDuhzJNcb66zpacCMcvM1i66VWUaVMIduU2llBmKSP8J/9NaI1XLEeIN17jBEvN9VAiCqK0=
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR11MB5887.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(6029001)(39860400002)(366004)(136003)(376002)(346002)(396003)(451199015)(86362001)(33656002)(26005)(6916009)(4326008)(8676002)(64756008)(186003)(9686003)(66946007)(66556008)(76116006)(66476007)(66446008)(41300700001)(55016003)(316002)(7696005)(71200400001)(966005)(107886003)(478600001)(6506007)(38070700005)(122000001)(38100700002)(2906002)(82960400001)(52536014)(83380400001)(5660300002)(8936002);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?B3rUfy7poJ28QuNooEnZm/zqQdQL4bL9l1p1IA9Kmiaqj44xvsf3dUT++nMa?=
=?us-ascii?Q?XQ6XUUwO1LWbfa1/vYs+v2h6sgnJRMpv6HbtbdaAOukC/9wUOJaf9zBeCmLS?=
=?us-ascii?Q?PLFhUT6x3W/qd7dSa9agX6Vb43Up8J1t4Qs+JMdyp0fPOKzyI0ZalD0vvhRT?=
=?us-ascii?Q?PO3GIAKMQCd2F8EXmacGL7zgokdF0A+8Ry5ggqpRvmNTPZMNA+MNAX4Fpgv9?=
=?us-ascii?Q?3J3NmN3zSOVDkBp19yvK83EmxG3uw7xdm3EjDN1aRGD0O0teYA1wKRZDXXGY?=
=?us-ascii?Q?WKhq31q9iHDHrI6g6DPCepz6tFvhL2Z6IwZGfDsCwE5HwP8dP7zEa58QpFsi?=
=?us-ascii?Q?EBpQfXRdwFfn0E0TZnvZnX2noCDF3t+tagMsJ3vCwexJTo3ymZ31FprsdAgh?=
=?us-ascii?Q?zCkb2Rz9Nz8IvOt3J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QMUgOobKek?=
=?us-ascii?Q?iFtaqQ30LajcIBMoP/n8d1k5iOqlFql7Cb2higlAfuotFKcKZd5yHlitAnXu?=
=?us-ascii?Q?DV66anxBWxrbY0CRLGJTGSl6rFRlwFtuFa2kOjd0sKqdtRON7Sd4E2QZ0/En?=
=?us-ascii?Q?Xp5CUGHpkXqfVM0+VzU1QV3OKE3AuKUGPErBZUcWCyVfzE+uXT0DFmd53Zig?=
=?us-ascii?Q?abYqo4gwW2gFtvV79qhKIfgS1eGkly6HJNfrtbDvWrNwpvF1HpKWby9aJPTJ?=
=?us-ascii?Q?3RhwwxWon34QHUhjs+0p5yVRyvt1N7Okr0pknqyf?=
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5887.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 764d7528-da96-417f-95b0-08daf7c8b7fa
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2023 13:51:07.7894
(UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: lzZ0T8AhnPbBViaXH+8Z9nRyJ4htTO8NvlflPhJf6OoQHA/hLn83AxNq7CAxxG0sak/68lSuN2VXFbNfMt9CoRHQLr9MlPDAmskM7bWCFdE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB8124
Return-Path: damian.milosek@intel.com
X-OriginatorOrg: intel.com
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_PH7PR11MB58872DC2D939E4F4FCB59CB095C19PH7PR11MB5887namp_"
--_000_PH7PR11MB58872DC2D939E4F4FCB59CB095C19PH7PR11MB5887namp_
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Enable StandaloneMmMemLib to use longer physical addresses than 36 bits.
According to ARM "Learn the architecture - AArch64 memory management"
since Armv8.2-A physical address size was extended to 52 bits.
https://developer.arm.com/documentation/101811/0102/Address-spaces
Signed-off-by: Damian Milosek
---
.../StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemL=
ibInternal.c b/StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMe=
mLibInternal.c
index 297cfae916..dff3e0145f 100644
--- a/StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInter=
nal.c
+++ b/StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInter=
nal.c
@@ -6,7 +6,7 @@
all MMRAM range via MM_ACCESS_PROTOCOL, including the range for firmware=
(like MM Core
and MM driver) and/or specific dedicated hardware.
- Copyright (c) 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2015 - 2023, Intel Corporation. All rights reserved.
Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -21,7 +21,7 @@
extern EFI_PHYSICAL_ADDRESS mMmMemLibInternalMaximumSupportAddress;
#ifdef MDE_CPU_AARCH64
-#define ARM_PHYSICAL_ADDRESS_BITS 36
+#define ARM_PHYSICAL_ADDRESS_BITS 52
#endif
#ifdef MDE_CPU_ARM
#define ARM_PHYSICAL_ADDRESS_BITS 32
--
2.37.2.windows.2
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydz=
ial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-31=
6 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu usta=
wy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w trans=
akcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata=
i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wi=
adomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiek=
olwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the s=
ole use of the intended recipient(s). If you are not the intended recipient=
, please contact the sender and delete all copies; any review or distributi=
on by others is strictly prohibited.
--_000_PH7PR11MB58872DC2D939E4F4FCB59CB095C19PH7PR11MB5887namp_
Content-Type: text/html; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Enable StandaloneMmMemLib to use longer physical add=
resses than 36 bits.
According to ARM "Learn the architecture - AArc=
h64 memory management"
since Armv8.2-A physical address size was extended t=
o 52 bits.
https://developer.arm.com/documentation/101811/0102/=
Address-spaces
Signed-off-by: Damian Milosek <damian.milosek@int=
el.com>
---
.../StandaloneMmMemLib/ArmStandaloneMmMemLibInternal=
.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)=
diff --git a/StandaloneMmPkg/Library/StandaloneMmMem=
Lib/ArmStandaloneMmMemLibInternal.c b/StandaloneMmPkg/Library/StandaloneMmM=
emLib/ArmStandaloneMmMemLibInternal.c
index 297cfae916..dff3e0145f 100644
--- a/StandaloneMmPkg/Library/StandaloneMmMemLib/Arm=
StandaloneMmMemLibInternal.c
+++ b/StandaloneMmPkg/Library/StandaloneMmMemLib/Arm=
StandaloneMmMemLibInternal.c
@@ -6,7 +6,7 @@
all MMRAM range via MM_ACCESS_PROTOCOL,=
including the range for firmware (like MM Core
and MM driver) and/or specific dedicate=
d hardware.
- Copyright (c) 2015, Intel Corporation. All r=
ights reserved.<BR>
+ Copyright (c) 2015 - 2023, Intel Corporation=
. All rights reserved.<BR>
Copyright (c) 2016 - 2018, ARM Limited.=
All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-P=
atent
@@ -21,7 +21,7 @@
extern EFI_PHYSICAL_ADDRESS mMmMemLibInternalM=
aximumSupportAddress;
#ifdef MDE_CPU_AARCH64
-#define ARM_PHYSICAL_ADDRESS_BITS 36
+#define ARM_PHYSICAL_ADDRESS_BITS 52
#endif
#ifdef MDE_CPU_ARM
#define ARM_PHYSICAL_ADDRESS_BITS 32
--
2.37.2.windows.2
Intel =
Technology Poland sp. z o.o.
ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy G=
dańsk Północ | VII Wydział Gospodarczy Krajowego Rejest=
ru Sądowego - KRS 101882 | NIP 957-07-52-316 | Kapitał zakła=
dowy 200.000 PLN.
Spółka oświadcza, że posiada status du=
80;ego przedsiębiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o prz=
eciwdziałaniu nadmiernym opóźnieniom w transakcjach handlowy=
ch.
Ta wiadomość wraz z załącznikami jest przeznacz=
ona dla określonego adresata i może zawierać informacje pouf=
ne. W razie przypadkowego otrzymania tej wiadomości, prosimy o powiado=
mienie nadawcy oraz trwałe jej usunięcie; jakiekolwiek przegl=
1;danie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material f=
or the sole use of the intended recipient(s). If you are not the intended r=
ecipient, please contact the sender and delete all copies; any review or di=
stribution by others is strictly prohibited.
--_000_PH7PR11MB58872DC2D939E4F4FCB59CB095C19PH7PR11MB5887namp_--