From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.41]) by mx.groups.io with SMTP id smtpd.web08.7552.1608210348416301458 for ; Thu, 17 Dec 2020 05:05:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=IESyGP6+; spf=pass (domain: arm.com, ip: 40.107.21.41, 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=4RQ/SvhGEpRsjDjt+Vj0dUrpEy1/KjB2DnyjuS4SHR4=; b=IESyGP6+KsGhIMxE9uHbsDWJ1EYA07sk6mf6jVcj6x075UmeW8+jBiMtPhdOn7efqygZHhjZiTaNf8SuxVL3xpG48RaUschqO9uAcBgbWUcYEDOfx2g14Pt7W/Ov++SS2fVvRwRlml+0fLSCHwVndAv+3tk0q0/90dTMGyVTc/E= Received: from DB6PR0301CA0027.eurprd03.prod.outlook.com (2603:10a6:4:3e::37) by AS8PR08MB5974.eurprd08.prod.outlook.com (2603:10a6:20b:298::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.25; Thu, 17 Dec 2020 13:05:45 +0000 Received: from DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:3e:cafe::c9) by DB6PR0301CA0027.outlook.office365.com (2603:10a6:4:3e::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Thu, 17 Dec 2020 13:05:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT025.mail.protection.outlook.com (10.152.20.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Thu, 17 Dec 2020 13:05:45 +0000 Received: ("Tessian outbound fc5cc0046d61:v71"); Thu, 17 Dec 2020 13:05:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2dc28af2d7221a98 X-CR-MTA-TID: 64aa7808 Received: from 42653302b239.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6E31CB4B-1846-4D9B-A9F5-D199C4BD02A0.1; Thu, 17 Dec 2020 13:05:39 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 42653302b239.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 17 Dec 2020 13:05:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CjKtz+Lt96RIC0jiZyYZe432Q44bV5ORTIt72vs6gl1PRH4r+JzMoszUhaqWLoMw3ZF1PSmlGSq3DVz3WbO2p71/7fspjiyA3yYgzpuiYHN+bTZwVT1KlvxdVzRvu4XlsR7Uh9qlVTQYXUAMeY1MvoY7E8UqEeug1kpWUn2WRiTPAKrRw8LiBnAAl0F5KTwBpaf03woO6Az59zVTiUPCyO/VpoVnUDOE9/sDBhhOw5OTQzivC5hNe9YQ/+U4dQjBZrjXYyUIKAaN51aGWF7m/al1cgtycX9RuT6HXohqPQEa8BAdnn1pNTV6Xp/iul3C6Ed6rkKFPcox8/GwZddXKg== 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-SenderADCheck; bh=4RQ/SvhGEpRsjDjt+Vj0dUrpEy1/KjB2DnyjuS4SHR4=; b=WUDcRwPPafh98SejQexdY2yLukp1RJmLxsvOf7pWr7Nq7hZM5Uhd8N9L8b+iDQjTpR5JWXSJRrtc/ksEMT0+oV3hv1d1qXVP4RgGvBMcEKNg88v964k0gkjpD1EbU0c+Awo8/9zg86UbRfdwC6gaKqGcBqDAp70XU84nwhwgkF6r5fnN9fSX8yGz5G4MOqiMjbHQSXtUebBn1haQQZ07aB1mh/sjN/ZyOVrvBA2MILAsPi93t+zzK4aYGZCZt63TMF4S1y9EasF9ELlbPYQXtnzKGnWC4UbV1rPVAieQwRls9EkAnK+MfUEoVo1bzpbMGZGrKEzmrj4o/sQGL1/6lw== 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=4RQ/SvhGEpRsjDjt+Vj0dUrpEy1/KjB2DnyjuS4SHR4=; b=IESyGP6+KsGhIMxE9uHbsDWJ1EYA07sk6mf6jVcj6x075UmeW8+jBiMtPhdOn7efqygZHhjZiTaNf8SuxVL3xpG48RaUschqO9uAcBgbWUcYEDOfx2g14Pt7W/Ov++SS2fVvRwRlml+0fLSCHwVndAv+3tk0q0/90dTMGyVTc/E= Received: from DB9PR01CA0006.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::11) by DB8PR08MB5290.eurprd08.prod.outlook.com (2603:10a6:10:a5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.13; Thu, 17 Dec 2020 13:05:37 +0000 Received: from DB5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:1d8:cafe::b3) by DB9PR01CA0006.outlook.office365.com (2603:10a6:10:1d8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.18 via Frontend Transport; Thu, 17 Dec 2020 13:05:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; 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; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT061.mail.protection.outlook.com (10.152.21.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3676.22 via Frontend Transport; Thu, 17 Dec 2020 13:05:37 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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.2044.4; Thu, 17 Dec 2020 13:05:21 +0000 Received: from E107187.Arm.com (10.57.33.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Thu, 17 Dec 2020 13:05:21 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [PATCH v2 17/26] StandaloneMmPkg: Fix ECC error 4002 in StandaloneMmCpu Date: Thu, 17 Dec 2020 13:05:00 +0000 Message-ID: <20201217130509.12568-18-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20201217130509.12568-1-sami.mujawar@arm.com> References: <20201217130509.12568-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6fdcc61a-930b-4c33-ace6-08d8a28c7736 X-MS-TrafficTypeDiagnostic: DB8PR08MB5290:|AS8PR08MB5974: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:4303;OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: vTPtg0fAbKRBnND6j6vM2uw0KwgGG5PQDNdsxIVObGKFdYQjLBFMzR53PfRUe6LFzOEC/zcxgOFDK053VTmf79y6ySqzHwiJUJyk2dmle4L8poQcibguAgy3UQNxUm4Zezo/atRzHtuZ0KqA4zTSlciYz4ylLuoNvyi9CAuCDTwjAjXlLE/Wernb0UoVQ85ddrzUGsi6Wk2gcWIupiJtqBryGIeC3FKX6yt5iNJTQ/2Rrg0CtVTJSTzil0Q+6Fryruxj/SkeAIyzdkapi80Vwaj6BcXoBDncekLC0wjkSHwDIlIdf7LhPn52LdDiuDh+tdKxS9a84VQbvL51TtYjiuhskxPEXnzn5/TFviT9eTplpNhQAboV0fVlOcvW8S9fod52+V6gu/mVcau5ogjNkw== 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:(6029001)(4636009)(39850400004)(396003)(376002)(346002)(136003)(46966005)(70206006)(81166007)(478600001)(82740400003)(8936002)(2906002)(4326008)(7696005)(2616005)(186003)(6916009)(356005)(5660300002)(26005)(1076003)(70586007)(316002)(82310400003)(86362001)(336012)(36756003)(6666004)(44832011)(426003)(83380400001)(54906003)(8676002)(47076004);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5290 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 3e9268e6-66c4-4557-2abe-08d8a28c72db X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qsE0roo/5kSn57P8NLKd8sgkacpdM0aN05mgit1VsqeGqrMy1Nr0w7NjlWTlbPwigDwdpdyost/wIHehEr9wpRezVdkpPFJ0b5J0CLHSkA7Ph5lRJJvo0jk+fKnmd2octFNOntXees9hzPlkbUw1Y1Pvky4JV0mHPMi8CETA+UfwuJPZz0x3FGlQAOxCFBtYQN7haqYej4IJCTQPcmpViZx87r34tPV8f3C8WGEgSrYMRfU60GPnEKyus8yVA3j+Mbn7Pk0C9IhVhJV3pgxm6mH0Mvl9IIsB0MU4gOFj03v836UpSXpTNr5yOlagd0Hf/od6IzN9+zIzAVoUM5oPBnPSb2AKBrfu0FqIoTwwekjgqVo7nJeYlw7PMHlF6SduIFT4uiWAJ1nmuwdWyqhO/w== 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:(6029001)(4636009)(346002)(396003)(136003)(376002)(39860400002)(46966005)(8676002)(81166007)(316002)(6666004)(5660300002)(336012)(6916009)(36756003)(47076004)(86362001)(186003)(2906002)(8936002)(7696005)(2616005)(83380400001)(478600001)(4326008)(1076003)(26005)(82310400003)(54906003)(426003)(70586007)(82740400003)(70206006)(44832011);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2020 13:05:45.1988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6fdcc61a-930b-4c33-ace6-08d8a28c7736 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: DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5974 Content-Type: text/plain Fix the ECC reported error "[4002] Function header doesn't exist". Signed-off-by: Sami Mujawar Acked-by: Jiewen Yao --- Notes: v2: - No code change. Resending patch with v2 series. [SAMI] StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c index 7620a65c7e3bbd647961942f5b30d3d834107f70..006f95989124ee0151e3cdf42b4dd4a5be80a6aa 100644 --- a/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c +++ b/StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c @@ -58,6 +58,19 @@ EFI_MM_CONFIGURATION_PROTOCOL mMmConfig = { STATIC EFI_MM_ENTRY_POINT mMmEntryPoint = NULL; +/** + The PI Standalone MM entry point for the TF-A CPU driver. + + @param [in] EventId The event Id. + @param [in] CpuNumber The CPU number. + @param [in] NsCommBufferAddr Address of the NS common buffer. + + @retval EFI_SUCCESS Success. + @retval EFI_INVALID_PARAMETER A parameter was invalid. + @retval EFI_ACCESS_DENIED Access not permitted. + @retval EFI_OUT_OF_RESOURCES Out of resources. + @retval EFI_UNSUPPORTED Operation not supported. +**/ EFI_STATUS PiMmStandaloneArmTfCpuDriverEntry ( IN UINTN EventId, @@ -159,6 +172,14 @@ PiMmStandaloneArmTfCpuDriverEntry ( return Status; } +/** + Registers the MM foundation entry point. + + @param [in] This Pointer to the MM Configuration protocol. + @param [in] MmEntryPoint Function pointer to the MM Entry point. + + @retval EFI_SUCCESS Success. +**/ EFI_STATUS EFIAPI MmFoundationEntryRegister ( -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'