From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.73]) by mx.groups.io with SMTP id smtpd.web11.450.1607539665066794463 for ; Wed, 09 Dec 2020 10:47:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=6uLlui2h; spf=pass (domain: arm.com, ip: 40.107.20.73, 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=F2HLiNmNDnfHacobzAen8439s3YekDZ9xN1XI7WKX4U=; b=6uLlui2hbK4tVyDEF2cQUhgkrGuMjoTlbMijBMCrwmWRvFwwlNh8pgfUTwrdx+9a6tDvnalV3jIAMTwr4Tyr45z37r19899ddYx2vtDW1a8cVCL4cZAt9oNzfM1WLvQhw2rPlgKdeR6Cfy3W8o/TI2XrlVMJhpqdGjfyvcK6TG8= Received: from MR2P264CA0083.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::23) by VE1PR08MB5869.eurprd08.prod.outlook.com (2603:10a6:800:1b2::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:43 +0000 Received: from VE1EUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:32:cafe::5a) by MR2P264CA0083.outlook.office365.com (2603:10a6:500:32::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21 via Frontend Transport; Wed, 9 Dec 2020 18:47:43 +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 VE1EUR03FT006.mail.protection.outlook.com (10.152.18.116) 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:42 +0000 Received: ("Tessian outbound 39646a0fd094:v71"); Wed, 09 Dec 2020 18:47:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cadfa89a468aacaa X-CR-MTA-TID: 64aa7808 Received: from 0d5bb0373737.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id CC6B92CB-8F78-4283-9738-ED9F1B8AA209.1; Wed, 09 Dec 2020 18:47:27 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0d5bb0373737.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 09 Dec 2020 18:47:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dwm+/CTgy5wkpGTmgX2Bcyy5XGrn7vBr/de9GX5qKtFPoREQSbOrQU+2m/79GGX49y3I0pEdD7r3dJVrxkcdJBRQG+++NbYliBxc7O2tCmbSDndgrG7T6NrIIfthrHejZl/UIY1mni4yUUY2Ie3tS5dy48HZI6xBLBc1/bo/+u8JfFCUNHOaov9223c5z2Rn1giqT1PTgoX5A9v0zEpw4i0V8NmE3/+27/kJYEi9VUAb84YL1LhcZL99zBkC6f52LVpPURAhQu4TpXb3MWp3DdWGrzEEYolbxkgeZeA2o60OQ1wsbbvCZBizR/w0Xzo2eYCuvVuHEAugTYl9wSq3QQ== 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=F2HLiNmNDnfHacobzAen8439s3YekDZ9xN1XI7WKX4U=; b=DRU8nfgLj7+TQVD91ZJ4XS8U4RHyhocBSfGuSK8kuEUgmN7jL0C87ecllGOhJx2Oq2cYcjKIeKbP8Vzf2TzfvBr6bQLOmXvJfrv4zt6L5uje/ipvMsxlqTXrkFXdbVImgOlz+cU7l0jpcc1HlfctWQUBrIe46wOjPDoLryvKOMldW6goSwpkIH+g8eLPmPdM1DpiaGGwzo6CVnnMdkGX+VPoU0DE4CkiV3BsBIFgZGpkD5Y6RqqiljLfAOtoih/RrWc/m4iJ0rGyoQXkqZvZH0VEbNGSzzRKM4UbAaKCFgftdiPsQWFMQUxQtIKa8zTFkxNboMcGc65zqCuqc1Q+Fw== 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=F2HLiNmNDnfHacobzAen8439s3YekDZ9xN1XI7WKX4U=; b=6uLlui2hbK4tVyDEF2cQUhgkrGuMjoTlbMijBMCrwmWRvFwwlNh8pgfUTwrdx+9a6tDvnalV3jIAMTwr4Tyr45z37r19899ddYx2vtDW1a8cVCL4cZAt9oNzfM1WLvQhw2rPlgKdeR6Cfy3W8o/TI2XrlVMJhpqdGjfyvcK6TG8= Received: from AM6PR01CA0051.eurprd01.prod.exchangelabs.com (2603:10a6:20b:e0::28) by HE1PR0801MB1979.eurprd08.prod.outlook.com (2603:10a6:3:4e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Wed, 9 Dec 2020 18:47:25 +0000 Received: from AM5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:e0:cafe::aa) by AM6PR01CA0051.outlook.office365.com (2603:10a6:20b:e0::28) 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:25 +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:25 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2044.4; Wed, 9 Dec 2020 18:47:15 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1779.2; Wed, 9 Dec 2020 18:47:14 +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:14 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , Subject: [PATCH v1 05/25] StandaloneMmPkg: Fix ECC error 1001 in SMM Memory pool management Date: Wed, 9 Dec 2020 18:46:50 +0000 Message-ID: <20201209184710.20912-6-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20201209184710.20912-1-sami.mujawar@arm.com> References: <20201209184710.20912-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: ad9e5f22-632a-49d2-d11a-08d89c72e94e X-MS-TrafficTypeDiagnostic: HE1PR0801MB1979:|VE1PR08MB5869: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8273;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 9eek17IYIuDKhHCvxAmXhvXdaaqPHmRqcqcCaAWXWKJHnovWm2hQLImCFzK8t+Ktdd1fCnRHGXZDIGFblamUYZabL+LvuBnb5HwR5cc1LBiI0gva1HDWnGoMjDHThCLiz6Lmkwh8bzy3frczLbBLYpZ7C7t5gar/WhksL7Y/+8UvFPu3ugYVX6+R2eiP3eGvaQjgQMi93MxeAWH2Uiex/VoMBCNGcDBG8z4Q58bBJgMJCEUTO5b+cfiG40ehSfUi+CZ+TEnPgrcNy8QIPqnPH84sdMj0fmWN7ZcU5B/NiIqO+nTO4y72qLDgPvpneORaUax+WJLqb7NkHq1+KEnU1hB7wvuRx4ivb+WdoUuf+Va0qZt5lYc4HenwM1BeKv8CYXH4PndfuB0BCXeItg5qXw== 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)(376002)(39860400002)(136003)(396003)(346002)(46966005)(36756003)(6666004)(47076004)(1076003)(4326008)(8936002)(70206006)(86362001)(82310400003)(5660300002)(2906002)(8676002)(70586007)(6916009)(2616005)(83380400001)(186003)(316002)(54906003)(44832011)(81166007)(336012)(478600001)(7696005)(426003)(356005)(26005)(82740400003);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1979 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ada63d85-a82a-4734-4990-08d89c72df10 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yfN5cgp42twkyo861rgV2bfFpJoBUca3DWS0W12+9t+pK8QPxKOsaR9NAbf1I2oiEUw4yqHiIBSvP3FRR+e6/+7No3stXEs7pNs+BrfG648cmb3j3iXWqstLkS0ANQD4pomOYZemrHnV1a5WTPFpHBqZB8DmEJeHoIgVG3iaLTpVDxXlusvIgVtU8dMB+p3v9SnjrQUNn4j9hIFEa6IBUCYE0VnVP5Vel7fPL+o+PaaP/8eY5b+OxNqH/efMSCKI8o8t54m0ej7YeAS0cJtbaPAiRoUPX43C9DuUqppPoMMC8BTtMbrOvnZ+AkXN35IBq4uoSGlA8Z2Fc2l55uNJNiAo6CwReSoWU1BDbVlE83v9yNaDis0pfWGDUuvYOl6kqXB5P87DK0BxMGTk2/QdRg== 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)(39860400002)(136003)(346002)(396003)(376002)(46966005)(54906003)(47076004)(83380400001)(6916009)(2906002)(5660300002)(82740400003)(336012)(70206006)(70586007)(316002)(82310400003)(8936002)(6666004)(4326008)(36756003)(8676002)(186003)(86362001)(81166007)(2616005)(426003)(1076003)(26005)(478600001)(44832011)(7696005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 18:47:42.6117 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad9e5f22-632a-49d2-d11a-08d89c72e94e 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: VE1EUR03FT006.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5869 Content-Type: text/plain Fix the following error reported by the Ecc tool: [1001] 'TAB' character is not allowed in source code, please replace each 'TAB' with two spaces. Signed-off-by: Sami Mujawar --- StandaloneMmPkg/Core/Pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/StandaloneMmPkg/Core/Pool.c b/StandaloneMmPkg/Core/Pool.c index 661ef0902165e90abdb8cba9e13773129127e3ec..ad6a1462b3db57a4f992e656bfd4121071b98d7e 100644 --- a/StandaloneMmPkg/Core/Pool.c +++ b/StandaloneMmPkg/Core/Pool.c @@ -2,7 +2,7 @@ SMM Memory pool management functions. Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
- Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
+ Copyright (c) 2016 - 2020, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -50,7 +50,7 @@ MmInitializeMemoryServices ( continue; } DEBUG ((DEBUG_INFO, "MmAddMemoryRegion %d : 0x%016lx - 0x%016lx\n", - Index, MmramRanges[Index].CpuStart, MmramRanges[Index].PhysicalSize)); + Index, MmramRanges[Index].CpuStart, MmramRanges[Index].PhysicalSize)); MmAddMemoryRegion ( MmramRanges[Index].CpuStart, MmramRanges[Index].PhysicalSize, @@ -86,7 +86,7 @@ InternalAllocPoolByIndex ( Hdr = NULL; if (PoolIndex == MAX_POOL_INDEX) { Status = MmInternalAllocatePages ( - AllocateAnyPages, + AllocateAnyPages, EfiRuntimeServicesData, EFI_SIZE_TO_PAGES (MAX_POOL_SIZE << 1), &Address -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'