From patchwork Wed Jan 4 15:50:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achin Gupta X-Patchwork-Id: 89864 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp8546807qgi; Wed, 4 Jan 2017 07:50:46 -0800 (PST) X-Received: by 10.200.0.145 with SMTP id c17mr60031940qtg.275.1483545046278; Wed, 04 Jan 2017 07:50:46 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f92si45383485qtd.324.2017.01.04.07.50.45; Wed, 04 Jan 2017 07:50:46 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B17E962B86; Wed, 4 Jan 2017 15:50:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A1BA862B86; Wed, 4 Jan 2017 15:50:35 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B962B62B83; Wed, 4 Jan 2017 15:50:33 +0000 (UTC) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30059.outbound.protection.outlook.com [40.107.3.59]) by lists.linaro.org (Postfix) with ESMTPS id 6F50362B83 for ; Wed, 4 Jan 2017 15:50:32 +0000 (UTC) Received: from e104320-lin.cambridge.arm.com (217.140.96.140) by AM4PR08MB1188.eurprd08.prod.outlook.com (10.167.92.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Wed, 4 Jan 2017 15:50:30 +0000 From: To: Date: Wed, 4 Jan 2017 15:50:41 +0000 Message-ID: <1483545044-21489-2-git-send-email-achin.gupta@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483545044-21489-1-git-send-email-achin.gupta@arm.com> References: <1483545044-21489-1-git-send-email-achin.gupta@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: DB5PR0301CA0004.eurprd03.prod.outlook.com (10.167.222.142) To AM4PR08MB1188.eurprd08.prod.outlook.com (10.167.92.20) X-MS-Office365-Filtering-Correlation-Id: aacbfd8c-09ad-4f0a-0468-08d434b96931 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR08MB1188; X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 3:kaeQENJEtsthc2KcX8SVyT/q5rX24X5Vt8y19UfHrqvq2ZNG/1TmvoQVBjqJNfa2XOCulb2Y1TP5//RbK71bPuYM+i+nR4zcXQSW+MUZdSQAvXg7X0RlmA7QSbKAtTrDdA3vdRq92BGe8dLmgsHvnrF6JHyCMur6comsUyNXHxlD2htS1bcG/o5LPAIr8gKukdGAKlyxltWRjwB2gxkg0pLRyRtlW8/rjaP3qX5mfDwHXGSzDS/TSCrjO5ZrSUQ9jbE5URuCJSqsiGjaw4aChw== X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 25:Qo5B/hVx2hO//1FZ+N9wcECV5AKarf/8lHqWcsbXIPxzymCovwyJpF7HUou/pUiR+GX+ryVcAZMfXXm9LWlq9zlKWP1Zaj1mVOcSeimCZf2t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HR6WECXznfR1bz2Ea5G9tkSXuK0U= NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558021)(6072148); SRVR:AM4PR08MB1188; BCL:0; PCL:0; RULEID:; SRVR:AM4PR08MB1188; X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 4:Ar9/kVBZJ0QGSXrLhpCMys3M0shYswX+sF3s7z60oWbz4+jZSaQ3CJ/aSD1hJjjaxdEwxhpecF8aDkXlOjOJ6UytX1Jhiir1mWmINbDMDnqgbflQOgB2xb3q7iPAKsEhv1HwUi/Yhb60hqQTg3829trUsdsqlKsc8OyifQpm6ag4IwWbcz/jI4I8HK9NeWzqmGbXXH3m3BQlD4bQ7A/6Czm6eOU89ZHkTfI2gp0s+BrsXMy3TzYb4o4OB51hpWEWHe+IXe7jBds+CEPyeVNAYNAkkPc7iP5x2ZVKT6t9ZJ5o55BXTsLKhIvtLZz6ujgVMNjODYqieOb/O4ZWyqanMPfhduxAnjzHOJez5xm9KDC2aqQJWDEVZN0BzZhtxlihAmKDpxV/KWDyjTh9Yc7cwDAAdAfFIo9DID6Lr4CpgNuYVrJKTjQ6bVPnPjihK+SGyz5nP9D6u/YVYq+6/nEBNKZtcHO+StfbVUxysV0s++hcstllVhQb3cNyxPCIrMjCqBqDbEMwiuX46Gg2x6DB9eW3wdr7kZNQuXeLMn3acRy+ErKfvulS+p3ZHAnxQ+hog9QiRM3MAj5P3T+x9mzGRQ/vLCg+MczPyTMf1nUXvRhwZyapkRnptF5qRg+bPDqePF3COaZV/JI46ic8wkTH3yuSF3QzBp0TFgnaxgt3j0M= X-Forefront-PRVS: 0177904E6B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39850400002)(39840400002)(39410400002)(39860400002)(39450400003)(199003)(189002)(25786008)(106356001)(7736002)(47776003)(97736004)(5003940100001)(6486002)(36756003)(66066001)(38730400001)(8676002)(81166006)(81156014)(4326007)(6666003)(6116002)(2876002)(2906002)(3846002)(2351001)(33646002)(2950100002)(6916009)(68736007)(110136003)(50466002)(50986999)(101416001)(5660300001)(48376002)(105586002)(50226002)(76176999)(42186005)(189998001)(86362001)(54906002)(92566002)(86152003)(305945005)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR08MB1188; H:e104320-lin.cambridge.arm.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR08MB1188; 23:o8kOu9Eh5fZ6MkeIT4qbHspNxO/EhuoX7vqHJ4QOE?= =?us-ascii?Q?T/3uizk3yu/Z8TvwzG0PJ1aSxRPIEixXvYhQx4skOS1JskRKCJ6FzC6qJaM8?= =?us-ascii?Q?IFpMAoKynORmVzLjglEUf1pfLdEJOCQWpvLkCxNSjQRYrmLtIxi2WUi4MXej?= =?us-ascii?Q?HfXj1UT4EPZem+ebzcZXkqExzPFORdzUrhYt6A/BPfelz27ZXU1O5dAol4sJ?= =?us-ascii?Q?dW5LXPxprtb4GV6YYS2In4bc/8lheDJoPnXqPScBBzGX7gc0AzdARMAuX4yo?= =?us-ascii?Q?nP2HxM6oxoRUN+RSH7/ktd9WMVJLeog5sYoTojEuGz7mgqR4YvuooNdJI8tF?= =?us-ascii?Q?lerrg4AJvICB10TkwZCAh5NNYM3aBkpuVUTFwYw/yT8l9UpQ0xoOFhYsYREE?= =?us-ascii?Q?rDiIuScFSs9XjuhM7Zq60wgR80m/GvaWYKQ7/5RgbgQPgyUxjDPsHdVbO3Ch?= =?us-ascii?Q?e4CdASgkk9aDx+rGGTEZDAkJrj/vZxutPuvRm+VEFzO9QAprXnSKlP3Y3wML?= =?us-ascii?Q?W6A7tEJSEfeb2VphO2terNIDQM2a6HvIIAiMK3fhfYY/415rEFliSoApyO53?= =?us-ascii?Q?aely/51invA/Twd+Gu2AGUJkFHOSH9pbjiHcH1nwSVjbtCAxaJoP/l27b4OL?= =?us-ascii?Q?wmKeezSZnDXa6Vb3JAXzcPou047WYHaePFFiFBBAa8BQbQtJ9EL4w0KC9Uvf?= =?us-ascii?Q?gp0QgxgbrEIsnEe4mmVbKiCkFHGkERtF7CELSKT8ZDBLRqULYdumQ4rmY/3/?= =?us-ascii?Q?53oE4SOsmhql+m3xMkyZ2wdrVQZm69eGS9xPoaYIsge9e/mW3jEWKvvs1RUu?= =?us-ascii?Q?c3AJSDz8z9TFp9H4a9H4K39/BIX216eCdB99ut4iJfd2cve8xqHDevQLIJw8?= =?us-ascii?Q?LdvOpQ8QB1DFtVpEAvk1VkBfDwGTU23TEbMOOH3gofpJ0jaEywtxkdE364Xu?= =?us-ascii?Q?/gxRRCUemS87quWX6Q/gf8681sg+Q5cgG68lukRBcnHcb0vc0ujL53sYalQk?= =?us-ascii?Q?qt33525Mpv/JwF9rTGhvtP0xUM0pa9w5BPydZxSXDdCvRs2TPhpNjHQ1khoF?= =?us-ascii?Q?+UJPEf2z9uAO8f+LVxQzT8ytpYS9vHI/ZBXn0mJ8gMyNxnCL3+9gIGP2DmaE?= =?us-ascii?Q?RaC3lxt/LJjH7ljbtEiBBqqGag1ViR8PB+779saU3Bc97gL7rVqlDW71BTA7?= =?us-ascii?Q?28odBLRo8r+bwy7Mg01c+kYYjNDIMe/5IQXmdswkUAewfKpDyPqWGYg07DOW?= =?us-ascii?Q?L1ExYP7Zvb1NUTkva4=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 6:uYE+x1tiIvJ3aIvL08UJDP9o7hHPFMywK5ViueCmr+w4KoOhoItZl3cdu7Ftgnrv38U2fF40qI5Z9WNlr3H2sC91YwHBBfCPePFu51Xxu2nssTVj6oDQ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X7O4hN5lIL3kafJa/e6nKx8es8+ncwtlA0GUl1L2+lXLkyS1TrCxM795y7yzRH/Xu1Jz8l009DTG8TEd7JIqlAB7w1K9e29j61ZHNQiv2FyAFcVxQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2017 15:50:30.2244 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB1188 Cc: nd@arm.com Subject: [Linaro-uefi] [linaro-uefi v2 1/4] Platforms/ARM/VExpress: Size DRAM to accommodate Standalone MM image X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" From: Achin Gupta This patch reduces the size of the DRAM available to UEFI so that the freed memory can be used to load the Standalone MM image in the secure world. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Achin Gupta --- Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc index cf4b803..82acd87 100644 --- a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc +++ b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc @@ -108,8 +108,13 @@ gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x0 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space) + gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 +!if $(ARM_STANDALONE_MM_ENABLE) == FALSE gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000 +!else + gArmTokenSpaceGuid.PcdSystemMemorySize|0x74000000 +!endif # Size of the region used by UEFI in permanent memory (Reserved 64MB) gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000