From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.66]) by mx.groups.io with SMTP id smtpd.web11.13263.1609766557734163980 for ; Mon, 04 Jan 2021 05:22:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=YMAB5QVl; spf=pass (domain: arm.com, ip: 40.107.22.66, 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=hrWxYMDQ55gsjeEr4smteh1QkYWn0ZUeyamQEt8LizE=; b=YMAB5QVlfmMRcYLDYhx+mDTK/OA9yGP0dN0JX9ngW6UPqmM1LaLdPJ5OPdohQvD8bjmxi2efS1AIcdXT6SejjTS8F0Lbcc/mkjqEBQ0cSXH7jI0XE1ZtrjCBmJVEajUFfDk+tou58US8EmAtkGagbl7CvSbYV6UR9mGhqnlcgbU= Received: from AM5PR0502CA0003.eurprd05.prod.outlook.com (2603:10a6:203:91::13) by AM0PR08MB4276.eurprd08.prod.outlook.com (2603:10a6:208:13a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Mon, 4 Jan 2021 13:22:34 +0000 Received: from VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:91:cafe::6f) by AM5PR0502CA0003.outlook.office365.com (2603:10a6:203:91::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20 via Frontend Transport; Mon, 4 Jan 2021 13:22:34 +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 VE1EUR03FT025.mail.protection.outlook.com (10.152.18.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.21 via Frontend Transport; Mon, 4 Jan 2021 13:22:32 +0000 Received: ("Tessian outbound 6ec21dac9dd3:v71"); Mon, 04 Jan 2021 13:22:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b1e82d26d1efeb96 X-CR-MTA-TID: 64aa7808 Received: from e71e2f42e582.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id ECAF4DA3-6992-4E9B-806C-3427E3725C1A.1; Mon, 04 Jan 2021 13:22:26 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e71e2f42e582.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 04 Jan 2021 13:22:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O7orrPNGy2oH84blV5bwVhAQPdDF4vTzT8nlI/jas2WxVxl8rGoysixHavj0H15Kopot7C5c9yVJEoDsDukD1g8Gs9bx4fUXU229EK9YUBFrLdq2oXucN2tbMRJ5ErKsnOEb0+nEqbrIc5L6IyYIuTcFzkeypSOcT6Li+inGSR7oZYe68CmGHtQK0IuZUhmg0alMr8TPITJcrIV4caGUPSeKg+b9yIUvc45RyDd0ib7L4nA9JrhcsNB4OlvGlRYp842e1EGhDdre3eUrkIgZZVjW5KVGbmZqxLqOQ8HtPhekd3bXWOduoetf1o6IL50OwUqHkhm20e8sxMOw+z2s0Q== 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=hrWxYMDQ55gsjeEr4smteh1QkYWn0ZUeyamQEt8LizE=; b=PYPyipBqbQgXyecRvMyZRIM7VtMwMPthzGy6sSuLl0Qzs33xdAF9y2EjzyJAloSuSnpvT3Kp0c3ODWNaegqIcY+dqAsKs8yRzzhZ4zW2DrZLDZFfycf5sHUEbyFXbvhwI3QVAJ5Marwo55u3zpZYBNHAlAN0AQ3QFzK5Fd93Rl6t9Ks0d4/Y9D32re+qAz6+WMAru7/bWBa/Q2QteYKNhU9v5BfOe243APwSDJMMuvZC86fnrY+8s4PAmTMj/alKceeAIvK2Z+75/Kke3qhXUV8a8SEjq2cURqJ5VXj70o4edXFZn78G3ViRY3h3ghbtjRcizE2eDroA77XYv/nxgg== 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=hrWxYMDQ55gsjeEr4smteh1QkYWn0ZUeyamQEt8LizE=; b=YMAB5QVlfmMRcYLDYhx+mDTK/OA9yGP0dN0JX9ngW6UPqmM1LaLdPJ5OPdohQvD8bjmxi2efS1AIcdXT6SejjTS8F0Lbcc/mkjqEBQ0cSXH7jI0XE1ZtrjCBmJVEajUFfDk+tou58US8EmAtkGagbl7CvSbYV6UR9mGhqnlcgbU= Received: from DB6P193CA0016.EURP193.PROD.OUTLOOK.COM (2603:10a6:6:29::26) by HE1PR0801MB1898.eurprd08.prod.outlook.com (2603:10a6:3:49::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Mon, 4 Jan 2021 13:22:25 +0000 Received: from DB5EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:29:cafe::c7) by DB6P193CA0016.outlook.office365.com (2603:10a6:6:29::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20 via Frontend Transport; Mon, 4 Jan 2021 13:22:24 +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 DB5EUR03FT011.mail.protection.outlook.com (10.152.20.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3721.21 via Frontend Transport; Mon, 4 Jan 2021 13:22:24 +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; Mon, 4 Jan 2021 13:22:18 +0000 Received: from E107187.Arm.com (10.57.38.43) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Mon, 4 Jan 2021 13:22:18 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [PATCH v3 05/26] StandaloneMmPkg: Fix ECC error 1001 in SMM Memory pool management Date: Mon, 4 Jan 2021 13:21:52 +0000 Message-ID: <20210104132213.22376-6-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20210104132213.22376-1-sami.mujawar@arm.com> References: <20210104132213.22376-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: e3da08b5-3c47-4099-57de-08d8b0b3cb29 X-MS-TrafficTypeDiagnostic: HE1PR0801MB1898:|AM0PR08MB4276: 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: tlIG5UGzhUMlA9gYPAA5BzN0IV3ZgKC4jn41AgrvobghaJp3rTpNiXGIfOjFPmN8c+ZsnWW4VMpPmY0Kfikl/Zz6E0f7sj2RgWHuZckVrRIl5cvnPQ0Nx5BIpJ3k/olZoJl14AMQ6YVK1kX4Rtc0CgTDNFl1FocXEv8FeMpQIRZZuY4pXbgiJmIG9aYnsduUnRyR5sy3RAH2LBBsbhHfhU6tmUNOlfNgmp4Xqqr7Fhsx26N5xX92pFhuQTT8ZCszDAuRhtmvVTQQ5kkKGgXn3vhaw5FXn1RDmQj9Ojrivgmc+xz7JPTDVK1vSGpF/9CvmYMmPbUo0oSXtttI/u8RR+yVyZQTNTrsQ3WVhK32VVj48bQS3DM4nJakFLfOpLrV+4smBMVd1tGty+000F2Hy6draWt8JPuc72Op8GQozYsu8t5sGL6ogGfp7oe5+4adDqpvv90OtjgfX4NvUtAuP7y/Dqkg81cwSlBN5hGUNfrhBuKcquM8JhJv8S02HoiuCVyJjQorUbQkivaMwqANczSlOu4C74SF9Yuupwh0E10= 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)(39860400002)(376002)(346002)(136003)(396003)(46966006)(82310400003)(7696005)(70586007)(83380400001)(6666004)(6916009)(8676002)(70206006)(1076003)(44832011)(36756003)(426003)(47076005)(2616005)(4326008)(356005)(316002)(478600001)(86362001)(2906002)(186003)(54906003)(82740400003)(5660300002)(26005)(81166007)(8936002)(336012);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1898 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e7cd9dc-2fa7-4e54-66ef-08d8b0b3c67e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TETK7atTH9hoibtC/GVQTHhBm50nKvT385S5liZOLUpt41KXAr4UgNvOvEizfIy2Dmjkof1KiC/4kocyfHgkRnch6Kf3Atxr/x4p8js6r3rRRbaqNm7pVKJUx0C6HH93WZhGPJCUkBAbhUpT2XTt9FzRtYSM5yq7D2wzO2r3StMra/mEknYfJ3YNbvPD+EBPMV6gEsMxrKHk1S2c2eGeanmP4hcPAtkV8U+tQfycoaCo7Bh8mLjCtMWhhX2akLRxXfXW8YkhPEiLZHE+9N2kcoxuEvRF6ZKuETRyvk+uBfxoSt6tYGOneOj/5bbutqEJTaObJYf9jJxWnhT8sWHT11wweQ6ggtOGhx3gtVuLCzRUSSMaTnBWDbPGpQXOjPDrPfJrWYZaPQhupL3A8SrYT+q7hdTV6Oe7p/rgUSutg3HXl3b0qorpGFDVP3c8J/iEhpO63dM4d30YkepDakMvS1HAK2/ljHAlAWdkoMXJ5YAIzBw8+GtZ4fZQ6yeId+4idarp4a5bC1fOAOZi1w4BTsExlPULae78ITXbG5krrIA= 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)(376002)(136003)(396003)(346002)(46966006)(70586007)(83380400001)(82310400003)(5660300002)(82740400003)(81166007)(2906002)(36756003)(2616005)(44832011)(86362001)(70206006)(478600001)(26005)(186003)(426003)(336012)(316002)(8936002)(47076005)(6666004)(1076003)(7696005)(8676002)(54906003)(6916009)(4326008);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2021 13:22:32.5716 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3da08b5-3c47-4099-57de-08d8b0b3cb29 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: VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4276 Content-Type: text/plain Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150) 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 Acked-by: Jiewen Yao --- Notes: v3: - No code change. Added bugzilla ID and resending patch [SAMI] with v3 series. v2: - No code change. Resending patch with v2 series. [SAMI] 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)'