From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.46]) by mx.groups.io with SMTP id smtpd.web11.54292.1681737834185849863 for ; Mon, 17 Apr 2023 06:23:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=smr6eSXl; spf=pass (domain: arm.com, ip: 40.107.22.46, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WdXccliPVlDmjDJV85OkRKXGde9c41k1sP+TK/657kY=; b=smr6eSXl71+Kn0qFmFLTY8ulUFdHvFMoGaeutphlAPUYrcG1y7a/fl1w8Qb9U2RULpgu7vrNtkxHNlKsgzeGbOGkZZuSJOm38LXpbUOBc5xPenO4u9QwQl1JOcv2eN2EyI6zRfgBLL5BXArOQuZoWrn91xFksY2QmjZsHLRy3HA= Received: from AS9PR06CA0529.eurprd06.prod.outlook.com (2603:10a6:20b:49d::20) by DU0PR08MB9933.eurprd08.prod.outlook.com (2603:10a6:10:402::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Mon, 17 Apr 2023 13:23:49 +0000 Received: from AM7EUR03FT019.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:49d:cafe::7c) by AS9PR06CA0529.outlook.office365.com (2603:10a6:20b:49d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.46 via Frontend Transport; Mon, 17 Apr 2023 13:23:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT019.mail.protection.outlook.com (100.127.140.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.31 via Frontend Transport; Mon, 17 Apr 2023 13:23:49 +0000 Received: ("Tessian outbound e13c2446394c:v136"); Mon, 17 Apr 2023 13:23:48 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: dee0cdd1e76c2d5d X-CR-MTA-TID: 64aa7808 Received: from 4c38d23e705e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 99FD16B3-015F-499F-A278-92C1A4F3D3B4.1; Mon, 17 Apr 2023 13:22:53 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 4c38d23e705e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 17 Apr 2023 13:22:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UarNrfnIIO8Bk581bd7ZvXkhYkhUuBLL9jer1UkKZZ0/0tycefQXbBFtNizD8pMFZurTc5O7fyuGUrxp1OpCLDe+9FgR+xQn+r/nm6KFyxE9I7hU5Kq/Qe7+AK20yYrA0S+ZDBPunnWIusUGvi9vbvUwtveusnvZLb5z++oUtVaId2gWA6PwioEwWlIOn7Soh3Jx6Kj0g2yIDtoHICU7HaSatcKMp2An/ps0zfIThT405HVdt5V/FUmsuPUAoZXy0+9WV3kpAkU0VA3FG1oUsAut351TSKFQxZgD9/K5/JS+QdfRf5qDQK/PMO+YUB78nUAhdXikfRN1bDb8tcxrJw== 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=WdXccliPVlDmjDJV85OkRKXGde9c41k1sP+TK/657kY=; b=Hm4CAbnKXlFewIBX7orZ7P2NFv0QAzehBRqsKBfruI/CwsqhTHFnLuDcgu0BSb2fKjzpXhto15RqnJtDO7GJkY/Y1S2aPbMEIUai8DQsGkcFovxjf7PS+TXkixMVgXePoyOczDAmA4OdwFk+jckHpJKP8nDMHfe2gu6y1ZbKE8qz330lglwpFGJwBQPeHHo+M2h24fw8gcAAr//T+diehu1nY24nxiqK88VTf/p3NMsSpjHQIMMDD+jLIRgmvE1VsGzHhf/r8K+a/hPVCD/JxLse1h+w17XKaMAM1hDFWUFhLNVpPRiYNvK+9gC2n9toSSDMD4rudhDuJjZGA+uEDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WdXccliPVlDmjDJV85OkRKXGde9c41k1sP+TK/657kY=; b=smr6eSXl71+Kn0qFmFLTY8ulUFdHvFMoGaeutphlAPUYrcG1y7a/fl1w8Qb9U2RULpgu7vrNtkxHNlKsgzeGbOGkZZuSJOm38LXpbUOBc5xPenO4u9QwQl1JOcv2eN2EyI6zRfgBLL5BXArOQuZoWrn91xFksY2QmjZsHLRy3HA= Received: from AM6PR01CA0054.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::31) by PA4PR08MB6175.eurprd08.prod.outlook.com (2603:10a6:102:eb::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Mon, 17 Apr 2023 13:22:51 +0000 Received: from AM7EUR03FT003.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:e0:cafe::c1) by AM6PR01CA0054.outlook.office365.com (2603:10a6:20b:e0::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.46 via Frontend Transport; Mon, 17 Apr 2023 13:22:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT003.mail.protection.outlook.com (100.127.140.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6319.19 via Frontend Transport; Mon, 17 Apr 2023 13:22:51 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Mon, 17 Apr 2023 13:22:50 +0000 Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.23 via Frontend Transport; Mon, 17 Apr 2023 13:22:49 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH edk2-platforms v1 1/1] Platform/ARM: Reduce System Memory Size for FVP with RME extensions Date: Mon, 17 Apr 2023 14:22:49 +0100 Message-ID: <20230417132249.15092-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT003:EE_|PA4PR08MB6175:EE_|AM7EUR03FT019:EE_|DU0PR08MB9933:EE_ X-MS-Office365-Filtering-Correlation-Id: c200bd77-9bbf-4d6a-edf5-08db3f46fae7 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: mBGb7Wk/Yb9Yyq6AS489Xf/paJ9E5jdJPWc+TS5niyG5zv4zXGEeHYT5Ma4c99jUzZol8BuAE6oskeDu92xb2g3xdz5jiMKtSlgmlAQKQirMBMKbCYJ8odAkTssl8Z7qP1ELXVkQ+IS3N8f8xWaEMvkyYvFdcAWujTIQtHjV0ElFLsQBFWfd2yPuNwEMrYKGFXQi/pSBLg0DB2IV95Jx/NT5JqQ4uUZ4lal1pfbiKmfswuzd9H8h5DckHkLAfSJ/Xfh0K/rbIPR8BOrk8CrdB1v227rJeTpnKQIdXoz6tDsNx3sRrqDernlqUbNlOVK3hQMxCw8cJVPO5enRa+6dUfjhhviLU4I+O5X7igwSM0fsKECK86FdjTVIccsgGEnjijTuaC14YogKPG/MGHSEFWyL3xtCYH8QwRUsTWRuWi3akTdLrXfRK7pt1bPnh2MB8hDQThEE2d1Q4+kCgeoDjf1+e9UzOLcojIpbL2aYdZ5dC9vIhtN11erOy+z7e6lHq0FjKy/HHs5cgqaET58Dpq+3AeSDd7XjDh7nbD02oYICN73edMizOU3kivXxXhicbs9kdCc8yE21zmWohXvEwBrIsHayEyi9O6s9okXGAqfmlJEQpF5BZ8rOWD0ySqU2p7ZtzlAenOF7GsT0Vh7KKHSqEnrdsaLousKgdIFFoF1wmG74IhREqdoN7Rl99gmws0wCqHHoyZCnstA0+2FdGBFLoiFXkIeqUPoBE4p4U5cFiIoxNRxQnkhBaeUpUsji X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(376002)(346002)(136003)(451199021)(46966006)(36840700001)(40470700004)(478600001)(8936002)(8676002)(316002)(41300700001)(82740400003)(6916009)(4326008)(40480700001)(70586007)(70206006)(81166007)(54906003)(356005)(40460700003)(186003)(2906002)(36756003)(26005)(1076003)(336012)(86362001)(83380400001)(426003)(47076005)(82310400005)(2616005)(36860700001)(5660300002)(7696005)(44832011)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6175 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 26a99695-e097-4c43-1b62-08db3f46d850 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BKthroSUhsBUKlZviC4YzR993X1XFOy9tmCxzCfl/mQXGK4uP3BDZR0tGwOX0/6yI7jg3QNDKjj5eYUH6a5VeuwE4piUJNUAh1OlklPfNnVMtOgBiHzKLn9giA/QF1AIrWnmanPL8Uhm361GxS3ATAw72Tv0fZLFoLXhbI3+QXMNOf3j4wNMS+os1y0JEHNchmjJG7xVWf3/lASSnmFlHW2//pP4JJ4hDwq2xv1rEJHXBwQIxh8uSCFXxEPgFABvRO4p2VA9YKM0fXSzgAFJZN8J6OETLNRO2t9g/NBf5knpxKx3lyNMLM7kFuCC15MG2Pvg+PNgBhnpnZDSMLxmssDDMBeKm7jfWQ+Tk2q+vw+pr4UuZKf+swBHt/Hp3/7W67TN4b85JC6afNyFFTxEMZcrLhcysdGb/i7+gOsUNlbLwfeMCziPB2J8Lq3P0nbrnxq1t4A2wJxpG8BCF8sUGXCZVK7s28pN/R4s2JsPDwpQ8zHlg2wCVqt3+n/vQmnogjc9+6YmUR2oLLMYJW6Rtv4v8nhi5RuCbPhl4t3X/ogk1itzsR3a8mtwAKhJXjnTntvSw09tCk8i6xbaVaa/CNzSCnMku3/Ch70wOey3/LbJ24HxuebPlIbUx0YrwcFAlIUN5UdqgpFWGvJD3YJmWlHAGQyupiYr1XBjGprT834Ct3XDe5wkTn4jfN7iAwxnl1Dgpw6s69RBHGj6Y3uxYaGprjyht0gFvzBjlOI5j9U= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(39860400002)(396003)(136003)(451199021)(40470700004)(36840700001)(46966006)(41300700001)(40480700001)(70586007)(70206006)(54906003)(478600001)(4326008)(316002)(2906002)(6916009)(40460700003)(7696005)(83380400001)(36860700001)(82740400003)(8936002)(36756003)(47076005)(5660300002)(82310400005)(2616005)(44832011)(8676002)(86362001)(336012)(426003)(186003)(81166007)(26005)(1076003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2023 13:23:49.2352 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c200bd77-9bbf-4d6a-edf5-08db3f46fae7 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT019.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9933 Content-Type: text/plain For older FVPs (without support for RME extension) the top 16MB of DRAM1 is reserved as Trusted DRAM. However, the latest FVP Base RevC AEM Model [1] has support for RME extension. When RME extension is present the top 64MB of DRAM1 (i.e. at the top of the 32bit address space) is carved out for four-world support in TF-A [2]. Therefore, reduce the System Memory size by 64MB. Reference: [1] FVP Base RevC AEM Model (available on x86_64 / Arm64 Linux) (https://developer.arm.com/Tools%20and%20Software/ Fixed%20Virtual%20Platforms) [2] commit c872072 (https://review.trustedfirmware.org/plugins/gitiles/ TF-A/trusted-firmware-a/+/c8720729726faffc39ec64f3a02440a48c8c305a)) Signed-off-by: Sami Mujawar --- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc index dc081794cf98a27c667ef85bd27dacd80e9e8bd2..f70a4d52ba06f570e017ab5286f06d87193753e5 100644 --- a/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc +++ b/Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc @@ -107,9 +107,12 @@ [PcdsFixedAtBuild.common] gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x0 - # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space) + # System Memory + # When RME is supported by the FVP the top 64MB of DRAM1 (i.e. at the top + # of the 32bit address space) is reserved for four-world support in TF-A. + # Therefore, set the default System Memory size to (2GB - 64MB). gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 - gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000 + gArmTokenSpaceGuid.PcdSystemMemorySize|0x7C000000 # Size of the region used by UEFI in permanent memory (Reserved 64MB) gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000 -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'