From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.84]) by mx.groups.io with SMTP id smtpd.web09.457.1607539665930216055 for ; Wed, 09 Dec 2020 10:47:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=SZHDTPDV; spf=pass (domain: arm.com, ip: 40.107.8.84, 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=RvA8TmNRlcB5I9pOVXRfWXrRHI6srOCln+gmZGpA6aw=; b=SZHDTPDViY0GHvfsqVYxShYFLqoaX4ZpqgCzW9e+2pDVMxiSruaqHMvGT04xk0pvocfdTvpEI1hzuZjyVYgie0EZI1NMH61TY9kCmJyegZ5YQ6Dkkkrn9JWkNNa0FKZKi1LPYvMK/I0S6a7dDI+llePkt7boct7+lEtmdbAMZHY= Received: from DB7PR03CA0097.eurprd03.prod.outlook.com (2603:10a6:10:72::38) by VI1PR08MB2783.eurprd08.prod.outlook.com (2603:10a6:802:19::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.23; Wed, 9 Dec 2020 18:47:41 +0000 Received: from DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:72:cafe::a1) by DB7PR03CA0097.outlook.office365.com (2603:10a6:10:72::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:41 +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 DB5EUR03FT041.mail.protection.outlook.com (10.152.21.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:41 +0000 Received: ("Tessian outbound 8b6e0bb22f1c:v71"); Wed, 09 Dec 2020 18:47:41 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 119c4b4ea7e3ae25 X-CR-MTA-TID: 64aa7808 Received: from 7701c403c5cf.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 51770B19-3A23-44C6-8EA6-729D58485504.1; Wed, 09 Dec 2020 18:47:25 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 7701c403c5cf.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 09 Dec 2020 18:47:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=clNVv9xsIlfffkPQjocIzaln9L4BL2okNHCg2zwNhJMaFiDmtljp+c0V82yvX9F18pHhm6MjRDg1Wi3YnnOW4ZMcOaT0VFZEadMXet/DK4nkVMzHbaxSJVf+J8IPrJe8OqO6MyDw+hfoixLpdUzu0eVPgHXJnaG+sKh1BMine4VlTksGK4RWlHBKGQPnwuq3dZWr8ya9UaA4CTzIAYGd7Try3T6Zq8bBOHMIya0Fw8TVfidOhxDH+azt4KsOQ7mugUoZqNAjLzQd2SJtso6NAhhPGk8C02pSPy1JVTwFuQXPda37Fg1FoCpFGF4fhfzRm1V7tulfMT6aaN5GNan9DA== 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=RvA8TmNRlcB5I9pOVXRfWXrRHI6srOCln+gmZGpA6aw=; b=H0A+EfUGACHAhm5GOk33EiUeof/tVyR9t9dNnOwzcJFbZzvVbHYeYFYDIw8k/Ow5a8TjFFyw0V2wTqruDISVr3AZixMhvo2R9Zn0DsV2ZzgkmXRSKxXKbmfspe5FLm/x4gI6nTnACgAhI6WzTotiRa6AVSCii+1hpvNGdtnajeFJcFRgSOL9k1JzT3JWGzOCiSylYdLsqYamL5DvKG3LJpCEMNSmS1n2xVuWviY2F7q8cHcMlpz2AH2IUJ1sqRQyWSAaDZ4YtvFKqUbmKoeHASpSk4VKO/OvGi73CstUyg6nJveCtQmGL+4ZdOZCABcw2skdRuslRvZqZqq008Dzkg== 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=RvA8TmNRlcB5I9pOVXRfWXrRHI6srOCln+gmZGpA6aw=; b=SZHDTPDViY0GHvfsqVYxShYFLqoaX4ZpqgCzW9e+2pDVMxiSruaqHMvGT04xk0pvocfdTvpEI1hzuZjyVYgie0EZI1NMH61TY9kCmJyegZ5YQ6Dkkkrn9JWkNNa0FKZKi1LPYvMK/I0S6a7dDI+llePkt7boct7+lEtmdbAMZHY= Received: from AM6PR01CA0050.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::27) by VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Wed, 9 Dec 2020 18:47:22 +0000 Received: from AM5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:e0:cafe::ee) by AM6PR01CA0050.outlook.office365.com (2603:10a6:20b:e0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:22 +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 AM5EUR03FT025.mail.protection.outlook.com (10.152.16.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 18:47:22 +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.2044.4; Wed, 9 Dec 2020 18:47:11 +0000 Received: from E107187.Arm.com (10.57.26.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Wed, 9 Dec 2020 18:47:11 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v1 00/25] Enable Core CI support for StandaloneMmPkg Date: Wed, 9 Dec 2020 18:46:45 +0000 Message-ID: <20201209184710.20912-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85c17426-bb46-4216-6e42-08d89c72e89a X-MS-TrafficTypeDiagnostic: VI1PR08MB5325:|VI1PR08MB2783: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:7691;OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: PRjgLYzbiSJY+OIFnBBNX+v78BGltFyT0/INiereokYND5ShrOnO5/20UfzLbLtCc1+WNVAJ9diYEWlXRMvQdIgmdmmKSzzIx4CycufapmqqGaHQ+UylgbUntA78wPnlQC1eZbYYJjtXHMjau2tYQ8SlGWb+LpCl1iOUcgT2P6S3quf+WV5slXkJ4EIO3UFiHqqq3rPFXw9QooorC32we24BQ1yG8w8A2JhTS7gnz4hXVFkQAdpoaNW4/UTY9XcuuPjc6AJawWJfGgBbCEWixC6lkHYAZUeyDyjqn1Mo4NiLBaoVCKNGTuOajYxseQBOVUfjUS/u381hk4uXnLc0P2iLSaepNVL0cjZN/mPSbbXHe6PyY+Tk5hMjhEHbWU7vIR6g5d+ieLTB5MHdyDSdG0+4bQXqfwyFyuCOQEkN+tQlRvXE84uLLJURUlGN+xRywUzPQ6dSWOH9Arv8TtKurmVEqqPr0FuXRDTA0WKv9NI= 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)(136003)(376002)(346002)(46966005)(8936002)(82310400003)(2616005)(426003)(81166007)(70586007)(86362001)(6666004)(44832011)(966005)(54906003)(508600001)(6916009)(83380400001)(336012)(4326008)(2906002)(36756003)(47076004)(5660300002)(8676002)(26005)(186003)(70206006)(356005)(7696005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5325 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 72f834a6-a74c-48d7-a0f6-08d89c72dd15 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zVFhcWgoNG392WvX+SRNqbRJaEj56RRtmkPwUoOgEIj7gbPEeEgrhZjOoECIjUofdtZ7076QN5P1U/holeIryhD2QVf004/3UCQ15L7lo1G21a4Hp80B2smvhlpP/XwwyaZDgI8NY9hi/0uarheSbyK/u+9AqkzvE+uArQAZT6K43Nh7SbhXW2mkWTiqZeB+fohbzXQIb46zaG+F5IOX+CEBCoDsouZAc8rTKaystMIgL9ZROSH26xBoO4EATxVWdbb53+HMnW39yHmAfRfeJRhAU2jbJww1PQbPDJDTaaGCIjmAbiZcEL2Kkt7xa4eo9zSCs3XOdqO5tyuZ9KKCl0jIWD/96OYVYUcT75zQgx5xGkwGOw7PLn2cACNBhg+E0pvWjqH6c2xvLbPe4cVKJRnmKmCZs2l0JdtpvpZBOSaXZ3NdsPANwoXVWAwxuPn3sCFNbypF08OHmRqo1JCKSA8G7c3SpNy1+9Fb0DJ+S7A= 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)(396003)(136003)(346002)(376002)(39860400002)(46966005)(6666004)(1076003)(316002)(47076004)(54906003)(44832011)(36756003)(81166007)(70586007)(478600001)(26005)(8676002)(82310400003)(70206006)(966005)(82740400003)(7696005)(83380400001)(186003)(8936002)(336012)(426003)(6916009)(2906002)(5660300002)(2616005)(4326008)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 18:47:41.5504 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85c17426-bb46-4216-6e42-08d89c72e89a 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: DB5EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2783 Content-Type: text/plain The EDKII Core CI runs the ECC tool that checks for good coding practices and the coding standard. This patch series fixes the ECC errors reported in the StandaloneMmPkg and enables support for EDKII Core CI. The changes can be seen at: https://github.com/samimujawar/edk2/tree/1516_standalonemmpkg_ci_v1 Sami Mujawar (25): StandaloneMmPkg: Add library header files to DEC StandaloneMmPkg: Add library files to DSC StandaloneMmPkg: Fix spell check reported errors StandaloneMmPkg: Fix ECC error 9002 in Core dispatcher StandaloneMmPkg: Fix ECC error 1001 in SMM Memory pool management StandaloneMmPkg: Fix ECC error 3002 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 4002 in FwVol helper StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCoreEntryPoint StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 5007 in StandaloneMmCore StandaloneMmPkg: Fix ECC error 10014 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 4002 and 9002 in StandaloneMmCore StandaloneMmPkg: Fix ECC error 4002 in StandaloneMmCoreEntryPoint StandaloneMmPkg: Fix ECC error 9002 in StandaloneMmMemLib StandaloneMmPkg: Fix ECC error 9002 in StandaloneMmCoreEntryPoint StandaloneMmPkg: Fix ECC error 9003 in StandaloneMmCoreEntryPoint StandaloneMmPkg: Fix ECC error 4002 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 9001 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 9001 in Standalone MM Core StandaloneMmPkg: Fix ECC error 9002 in CoreMemoryAllocationLib StandaloneMmPkg: Fix ECC error 4002 in StandaloneMmCpu StandaloneMmPkg: Fix ECC error 8005 in StandaloneMmCoreEntryPoint StandaloneMmPkg: Add EDK2 Core CI support .azurepipelines: Add StandaloneMmPkg to CI matrix .pytool: CI Settings to support StandaloneMmPkg .azurepipelines/templates/pr-gate-build-job.yml | 2 +- .pytool/CISettings.py | 1 + .pytool/Readme.md | 2 +- StandaloneMmPkg/Core/Dependency.c | 6 +- StandaloneMmPkg/Core/Dispatcher.c | 49 ++++++----- StandaloneMmPkg/Core/FwVol.c | 36 +++++---- StandaloneMmPkg/Core/Locate.c | 6 +- StandaloneMmPkg/Core/Mmi.c | 4 +- StandaloneMmPkg/Core/Pool.c | 6 +- StandaloneMmPkg/Core/StandaloneMmCore.c | 37 ++++++--- StandaloneMmPkg/Core/StandaloneMmCore.h | 12 +-- StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/EventHandle.c | 56 ++++++++++--- StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.c | 34 ++++++-- StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.h | 31 ++++++- StandaloneMmPkg/Drivers/StandaloneMmCpu/AArch64/StandaloneMmCpu.inf | 9 +-- StandaloneMmPkg/Include/Guid/MmCoreData.h | 6 +- StandaloneMmPkg/Include/Library/AArch64/StandaloneMmCoreEntryPoint.h | 47 ++++++----- StandaloneMmPkg/Include/Library/StandaloneMmDriverEntryPoint.h | 4 +- StandaloneMmPkg/Include/Library/StandaloneMmMemLib.h | 6 +- StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/CreateHobList.c | 6 +- StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c | 53 +++++++++++- StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c | 32 +++++--- StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.c | 6 +- StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf | 4 +- StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.c | 10 +-- StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.c | 4 +- StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf | 4 +- StandaloneMmPkg/StandaloneMmPkg.ci.yaml | 85 ++++++++++++++++++++ StandaloneMmPkg/StandaloneMmPkg.dec | 20 ++++- StandaloneMmPkg/StandaloneMmPkg.dsc | 15 +++- 30 files changed, 439 insertions(+), 154 deletions(-) create mode 100644 StandaloneMmPkg/StandaloneMmPkg.ci.yaml -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'