From patchwork Wed Jan 4 15:50:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achin Gupta X-Patchwork-Id: 89867 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp8547027qgi; Wed, 4 Jan 2017 07:51:25 -0800 (PST) X-Received: by 10.200.43.166 with SMTP id m35mr69072326qtm.261.1483545085621; Wed, 04 Jan 2017 07:51:25 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v124si38062732qki.246.2017.01.04.07.51.25; Wed, 04 Jan 2017 07:51:25 -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 463C462B8F; Wed, 4 Jan 2017 15:51:25 +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_H3, RCVD_IN_MSPIKE_WL, 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 4E1AB62C14; Wed, 4 Jan 2017 15:50:43 +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 B215462B8A; Wed, 4 Jan 2017 15:50:37 +0000 (UTC) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30088.outbound.protection.outlook.com [40.107.3.88]) by lists.linaro.org (Postfix) with ESMTPS id 6C17562B83 for ; Wed, 4 Jan 2017 15:50:34 +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:31 +0000 From: To: Date: Wed, 4 Jan 2017 15:50:43 +0000 Message-ID: <1483545044-21489-4-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: 30b37a21-04a9-4a25-bf81-08d434b969db X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR08MB1188; X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 3:7ikzVWl+xa7AasiRKfms9da/cOmGrjplAPd776ivTK4dc0nH5tiGUdtgUx+2t6dfRLeeIfs713kR6EZHxH7iF22ygJLDm1EdnLQIsWGKcqHWI/yk5MiuibaqQQUpRvZQfMpLWJIpvXqbBUBOZJy9uJJIilBJDraoGLQkKdI+UMOYj4doFv4cEJ0D0zqI6hVoWcUSbngM2K+SwnMBz3mtXnQnu+qUX32puJzyMYyoDtFweAYx0kFafMMBHbfCbZN/A2lrU83mL/A8tdssf7KKBA==; 25:AXVBJqlXSvwVcclcb7nkeLvdbWJQAGCoG1hHYFnXFsdwy4boH/L7gnvPoq5dB9OvxYDpECNaIX/ATfL43WUwUAn/F2Aqp+6tnZ86TQkv04XA/uRLFWsutrgUyGnR8iZjqF9aihU6gibu6ShilW34GUDTz0AQ/R+/yMgPrZSC1Pb6uEYuYiGpwrYBM4rT2yu3jSBTALzF6gFZe0ZDlBu1vUBtwuOFa7bu/qibLkesmJnB+eF3h1aumVxdd5vnEroBCHZbwU50g85mYd09jTwxapJM1Os2aVk5VLGyVxvhjY3EZUk3Bra5/MJVEXnAtS4Q17G4bh4UCY0j6I5n6+R02zs9F/G2n26KjnEmkJ95S/nKEDYD2S23SPbsTr0hwu6zA/dT2NE9qDia0946wCe3WgWcFoN6/Esu4F2hybttQKRzTgxcfAQ3VfWDO2vBMhJ+Lk/GsK3d808mTlwonOey9Q== X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 31:l76UPV0oUqHE7ejbzJrHfCw0dtTEvsibjv45gp8X6g5peiW+WpkCuIRB02d3bZ8Wh+GprnkBccRyki+JXL10B8gMYaIOibTIwkK9wxZccoC3O+lTFWFio+j23u7PM+prcbFT+Atq2306PGtPZAzmUAoqfUqNfqnSme53YTOoHbs6MaNkj5jwr8Ywl0ixoabawEjhKS70W+s86YtnQgqe4UC0X1/hjh30UkIxJIdRAsgvvYjkkWNlu/yUSay43mzt; 20:am90CpvyiUgzw/vhIHscnG0gbKiZ8pClFBASDNRfXUVJAojhp/5xyrf5Mkby7sR7WEYhoyXUkByhZk+ojcvNECbzbjg5OLEAI6ITYCOCXlZCj5nLw6ZoztzCgMNgFA4fguSLQ9qJJzmeONDp5qI08uleUIHdfIs4psirLvf/rt0= 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:QmfeP7Zc8cJemdtipnzEl/bcIywuU3CC7VHTfyhTrK2fBmQGhmAB5MvDyxa1gicaYXr6n1+/9YDUiI1Ub9pxZFn9YYl80Mv2xVarASW9C09bPwUU9ZenfHqfMR6Rp4zOmgq6reOzXtDwjylgohiWhhDnxtrVmx80ZIk2mTTwZzyIzfj28i2PHgZEuf0EL8vtan0a43FBhmKYGvelMKv6bVKxxe+Iy3i6/+90bM3xTtgqn3HvEcSfnNllTlzAJGOtBhRVZaFb/aY1rUlJawTqo460fndHh3VRI6hs7/e07yP8x6mNb2mj09M34AyHA3t74VPkdIA/NjJYWFzdHfq4WqpD940V4a3ZataSXP8P6rJbDJQMzjGy+F53rEopfwdGzbsQbKlk/aXEVkrzZY5cUt+UzwUG3f+FXQcClRlwL5W190DSLLpXdAn2NP3b2zl81HMVPg19Cr3/aZHRWU32e44ETNaybUrFdoPBzi4s/tiEZPwgYjPRc/5O/LtjB/uw7QkbXXm2X6FpSMesxaF58ksKCNuaOMxCH9w8kf9CMaOHDx7uk8OreSXh535ZZtNV+ZhbY44qGS3eYdeNuJe3OkgrCQzkjzoUO9pICOnGGpxFuwdX90knUke/ERoj7IQwhFRuO1RhhpU15evDFrIT1uWWf85IOXpH/VYdboeWgz0= 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:lsz2u/+LxKGoMGarK/dTQFOOL6O1yud24NFhN5fu2?= =?us-ascii?Q?cyaJg6wHM0GOeU9j9wR4SUzLvFqJLf1Svb+lftp3j7fz8hRrryng2aGGL+aQ?= =?us-ascii?Q?I44myP8XpfjyKDW/jtTwt+P1U+B2fIJMbi7DNhHfP0ChF95AqAFfsgOYvtQj?= =?us-ascii?Q?WSGniMNXYR+7Whq/YQvEuLZidDkj2ttAyBbAw5+aoNe0PhWqKF/k47xCqffX?= =?us-ascii?Q?HEZVU4Ys/ZmitUA8clwMD1Y1OkvBvprhGc/lDPwAfh4QOUdCZ8+G9uy2bT8G?= =?us-ascii?Q?lWWYuNgKDWqubalF9eOjYSspy7BC9g27/VKjGXkE/Bv4Y9MGyJgI9OqPpcf1?= =?us-ascii?Q?03WdHeDQnidvmYlm8nb83AdmOiUNAj79UEbPpmEyf8KR8XISQCsq3370yW/d?= =?us-ascii?Q?vU0JOubB/p076Rodcg4UeGVqiQ3oOe//UL4z5IcppXrV/eVhIyOm7CtCPWfJ?= =?us-ascii?Q?a7tokHmFlZW95zU143xnXh+B081jQyzREy4cs3zX8HNGy4Gbr4j7iD6a8hWX?= =?us-ascii?Q?85Lip3ZgNn6dAxlbbvVT8E/76yIZfgNGMTRVIx2TUQDyRxHRxN7ZTBXOqms5?= =?us-ascii?Q?+aazmDpYVRlIPlGX5/zuePRhK9qUWsqUmI9vywy0us/tvE0ObxoR/tUldHXY?= =?us-ascii?Q?etCLzHZlI2d77n/urEIJtp/1gOUvVEJ2EVpgm4VO3TG7Mz0ViPAjEoqNqmtv?= =?us-ascii?Q?kEP1EPyPTQy6WyC1Bsxa89gQmnN972Z+r5qMDCi+/ri33ehEvEbOI8ZceLB0?= =?us-ascii?Q?ztMDEQyhiZRqHSg8KsaY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KSn4mkd+3/9D2JU+G+/+Wp7XA==; 5:EXDULqJtEUz4V35i8guC6TvIPJw6GFQWgRDsAKxIxhrD1saaGRVx08NvoIZYOTsGX0vrj/NccJz6KWgVpchUlPgSwTPfCK4qJhehlUziUruTgCSCRT8ESVnzzql2Ep3PUe25PFe3aOU1DGGATeJXJNduHnV3T6HrSIM/iyijJjY=; 24:EL+tkhrqeKgaJEiQ0FhXOzC2I6Un+nQpiEmRMoEqVHAMk+c30sQtOWxtZw2ImzO0v98tB3jhotEoRU6t24N6Pod+AbipxQt0JoSGMRC14CI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM4PR08MB1188; 7:cuCUumIZh0AmU6FezYYFSHpqdJV6VTME+5d3mibYuQ0ke1dac6vd+57O0zghjgcJ/VzA8MJVHTuAi8+1MdeoJDZk9U7MvG0sJrJEuPYoLY9RWp0TzWrs4i+As+6msLIokEfOTQuJD4hIJGdUl5hYSmB2L/5X1uPG9P1c2wADb8Vc5C8dy3qJJ4kl30T1t778Bie3efHelD2KwlYXZ27Nb4sTZJs4vDv3OdewiowRbluuQCyFYL+w526ecc4U7cpt9CXoScmITtdvDz06T6EUDPgkQ3FGTG7GmkZteSJSE9V/fAALgyAzFqJGK6+EEayyK/z/MD5o6jkEE1dqaIvTk8VbZK0S1VJ0574HTeHSXweuW4HO9uaUNgGK8ylnsvBXD7+U/7CjT4hDw++swDvbU1VMkBLfPYhyirBlJkk6mlBF68KNjgF3ZtquSsZ03DL7BbuAebuahOfoFs8rSKZJYg== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2017 15:50:31.3443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB1188 Cc: nd@arm.com Subject: [Linaro-uefi] [linaro-uefi v2 3/4] Platforms/ARM/VExpress: Include MM communication protocol driver 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 includes the DXE runtime driver that exports the EFI_MM_COMMUNICATION_PROTOCOL for the FVP platform. This driver is responsible for handling communication with the MM environment in the secure world. An implementation of the ARM SVC lib is also include in the FVP build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Achin Gupta --- Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc | 8 ++++++++ Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.fdf | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc index c76da5d..bc115e1 100644 --- a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc +++ b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.dsc @@ -40,6 +40,9 @@ [LibraryClasses.common] ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf +!if $(ARM_STANDALONE_MM_ENABLE) == TRUE + ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf +!endif ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf @@ -294,6 +297,11 @@ MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf +!if $(ARM_STANDALONE_MM_ENABLE) == TRUE + # Standalone MM Support + ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf +!endif + # # Semi-hosting filesystem # diff --git a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.fdf b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.fdf index 2ace4d8..0d9895b 100644 --- a/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.fdf +++ b/Platforms/ARM/VExpress/ArmVExpress-FVP-AArch64.fdf @@ -142,6 +142,11 @@ FvNameGuid = 87940482-fc81-41c3-87e6-399cf85ac8a0 # INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf +!if $(ARM_STANDALONE_MM_ENABLE) == TRUE + # Standalone MM Support + INF ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf +!endif + # # Platform Driver #