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.71]) by mx.groups.io with SMTP id smtpd.web11.1241.1587131183562144840 for ; Fri, 17 Apr 2020 06:46:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=woK0OqAl; spf=pass (domain: arm.com, ip: 40.107.8.71, mailfrom: samer.el-haj-mahmoud@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=ex/blgAU7QkhiMhADVM1wghKTJ1FPUvBUB46vKiKqf8=; b=woK0OqAlXqkUQpoF/esmiV0ESYDqx3qQztbx14EZGxNfv0ig6Av9G3JNDE92Vws8Uv77BcgHLD2OOZhiABYkPArC3ebqGtwSw9MVwTj/ks0Bce6nPjGvd9niaCvKHGqq+5gFELs8YSPyZFV9egP1O5LR2lCFaxIIZeBgtqkgERc= Received: from AM5PR0201CA0008.eurprd02.prod.outlook.com (2603:10a6:203:3d::18) by AM4PR0802MB2323.eurprd08.prod.outlook.com (2603:10a6:200:61::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.17; Fri, 17 Apr 2020 13:46:20 +0000 Received: from AM5EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:3d:cafe::b6) by AM5PR0201CA0008.outlook.office365.com (2603:10a6:203:3d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.25 via Frontend Transport; Fri, 17 Apr 2020 13:46:20 +0000 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=bestguesspass 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 AM5EUR03FT045.mail.protection.outlook.com (10.152.17.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.18 via Frontend Transport; Fri, 17 Apr 2020 13:46:19 +0000 Received: ("Tessian outbound 6338c3ff826d:v50"); Fri, 17 Apr 2020 13:46:19 +0000 X-CR-MTA-TID: 64aa7808 Received: from 33af83c9a831.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id ADD3CEBA-F627-445B-9B9D-2429720FFD93.1; Fri, 17 Apr 2020 13:46:14 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 33af83c9a831.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 17 Apr 2020 13:46:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AqoMLawzJJeEHyiZoWPNZ7YRiVzI1Df8YnVWju0+kMNvzU8NQVNiYGPBHxx6l+mCPvMHH/MM9gTzgw4m8sfhetYt0xeHRg1E4Slm9pVA1WjPi5oiiTLsJQVQgrkIy4T9TbykXLRbnaUG45PiWMIG+iual7G3sN+8v4cTQ+/mJ/5PCyI5L7Zy17A8SLzjVYXGAImL2f5Be+SMurZsP0PNQQrma+fJrDSK3v+IQ07rpARldkoAjqSyzAVddVMW9jcMPKoHaekahdBbSZQTb8MzPoD7C7+fpfLnJPsOvqyCAEXfJ1SWpvncldvwJXWi4RjWNJVcVRZlLnvn5RnUEXFoQQ== 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=ex/blgAU7QkhiMhADVM1wghKTJ1FPUvBUB46vKiKqf8=; b=aHZupn4sgbCAKtutiDuUkK3yj9aPD5zOsiQWUTOzmm67RrXrqEjrY8hNZ1FATIWFPE5MToO95qVMvpng0XwYwEGYNc/PagE+qjaRAEPqWM+tq6Zfyl0FI2cwMqxWvfhmqaXYezaLikvFbJhpYgl317WC4Kmk3MbLAOe2sFNhgy2J/WWDcTP4zCve3lp/mSFJP4yGURBNQ3n6gXPBEnLwJfoWaVzlcnrWiC7P6/jllMepfwhjNVSa4s6fHQIK4dkgOkMtt9KGLRn5kThlLEW89Kk/Yo+tfcXMPn5U8Ok2NsjicXW/4GoOjOpy0QjnnDcTnE3lJhTuP1R1xGcH1Pz9bQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=ex/blgAU7QkhiMhADVM1wghKTJ1FPUvBUB46vKiKqf8=; b=woK0OqAlXqkUQpoF/esmiV0ESYDqx3qQztbx14EZGxNfv0ig6Av9G3JNDE92Vws8Uv77BcgHLD2OOZhiABYkPArC3ebqGtwSw9MVwTj/ks0Bce6nPjGvd9niaCvKHGqq+5gFELs8YSPyZFV9egP1O5LR2lCFaxIIZeBgtqkgERc= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DB7PR08MB3339.eurprd08.prod.outlook.com (2603:10a6:5:1c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.27; Fri, 17 Apr 2020 13:46:12 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::990e:ed79:bec0:9dac]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::990e:ed79:bec0:9dac%7]) with mapi id 15.20.2900.028; Fri, 17 Apr 2020 13:46:12 +0000 From: "Samer El-Haj-Mahmoud" To: Gaurav Jain , "devel@edk2.groups.io" CC: Eric Jin , Prasanth Pulla , Pankaj Bansal , G Edhaya Chandran , Samer El-Haj-Mahmoud , nd Subject: Re: [edk2-test PATCH] SctPkg: Updated Start Address Alignment code Thread-Topic: [edk2-test PATCH] SctPkg: Updated Start Address Alignment code Thread-Index: AQHWDm9qGWqmi1+R0keC6mftS93AGqh87VmAgABxHaCAAADzEA== Date: Fri, 17 Apr 2020 13:46:12 +0000 Message-ID: References: <1586437393-14249-1-git-send-email-gaurav.jain@nxp.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 05342bf5-19cc-4620-96d0-a0d8e12a041c.1 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Samer.El-Haj-Mahmoud@arm.com; x-originating-ip: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ccadcb87-f8e8-41e5-cfff-08d7e2d5b5aa x-ms-traffictypediagnostic: DB7PR08MB3339:|DB7PR08MB3339:|AM4PR0802MB2323: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2887;OLM:2887; x-forefront-prvs: 0376ECF4DD X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(376002)(136003)(396003)(366004)(39860400002)(346002)(9686003)(4326008)(186003)(66476007)(86362001)(52536014)(76116006)(66946007)(66556008)(2940100002)(66446008)(64756008)(33656002)(8676002)(71200400001)(81156014)(6506007)(53546011)(5660300002)(478600001)(2906002)(15650500001)(26005)(54906003)(110136005)(8936002)(7696005)(55016002)(966005)(316002);DIR:OUT;SFP:1101; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: gKzfP9oeTspnFNHwzE3zwy1rfLkuoglfGijHYpqwNP+ZZB7aI5LQMcEEBQ/pGTwJpuPpKLZnRa1y2BFqqjonHw6wGpt+9Zh5ntc/afKX6Y0XMT4TbpKsjYy4ofc43qLDVdL0Sa/WZHE5mDuxinn1ybzoFAlCUfTKPs0FS5iqjENScy1mVOPdgEOVBhXUZeVg4hTd6xqPMP1yrXVuyuYpQ9+J8Un1yI2ex4T6E78W7Kap81LJxMnH0dLZ7ag1RhgqDbs1YVb+pQd8Zv2IQ2YfozRQlkxuwOhT/z8kq36zXF/zaoHRrUW5ruWOZF1hZOSnmVvrT6A/L3jqbPxQ5mld4CMj2UzhCVhHcUyAoA1vOh30/V+lXhr/ooowHRY4DHQricXkO/Y6/sppHAGsA8t9ggT5yLWAbqbY70V8XBc7I0aPhpofUI7iiTxl2F7y3Uqg3ck/ERyGOB93pQuxRo9NmtH7ES344fWabQ8iQ3mCoAz6pXlIauzU+z+zU2RtcrCqL4uJ2zSplx602G6hYU6/Zw== x-ms-exchange-antispam-messagedata: zLVjkDWzgbVRfyqHE3oIjOwWnaKo0bqVwlPkkNzrgGHjyqGaZ0yMxDGXXIOGW5to6LJE7eku9aF5Mn6SteKpCB4n32tDkl4Bks46uBpuYBmMyRcTyRMfqhQTE4nzgncQGKfRJFqgHu3rrU4QZtg0DQ== MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3339 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Samer.El-Haj-Mahmoud@arm.com; Return-Path: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT045.eop-EUR03.prod.protection.outlook.com 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;SFTY:;SFS:(10009020)(4636009)(39860400002)(396003)(376002)(346002)(136003)(46966005)(478600001)(52536014)(316002)(26005)(8936002)(70586007)(336012)(70206006)(110136005)(186003)(47076004)(36906005)(5660300002)(6506007)(2940100002)(54906003)(15650500001)(966005)(53546011)(9686003)(26826003)(55016002)(356005)(8676002)(4326008)(2906002)(33656002)(81156014)(82740400003)(86362001)(7696005)(81166007);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 7e04d332-2267-46c2-6066-08d7e2d5b163 X-Forefront-PRVS: 0376ECF4DD X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qSJtHW8fnwiVoWkgeWLehwzDGgWSMawfuV2rlST4+A/OtWf+O1k8SlHGTO9j36Y05To1C49vUTavO8iQCkwo7NfRc0anGAxeh98I5TdznduPt4qt0bD502cwSrzihYtUSGIfyP5+YEuLQS7a18dBouaFjhX2K+w6k6T5uV1DsBv22Vt8D1aywoOc8coh4YGJhC6U3ZI7wdxyoCr5wLxoLe1igPqa91mgteMEmYF4klbTh1eTdJP3QC4qbcqUX2KeCLyqdvV7w+HMhFoGFsatoDQm85xS47k9/DS5cMO8TKym0XmFXK+hb1Impr95r/9qR3uXbqc4LK+nPOeP0JoJ1hSnN50inxDYAZfvTNnsy5BBimX3r3xtTdSmMqEpWeUuiLCn6lLXaUQOClIRjOSx/toP5QrDmPgX9FkCBJeKfDeFtRwicyV/jCo6p3B/ixKhBJG1iADlrPlhT8dTb3xytC4vtGL7ISjv925N+Na1I8TWR13WUc0+37LLi35JVUG8LxVBOHrUqBvkupeIL7CwFJW1waArrEAA5XLIcnRVcgjiAMhCE3s25j77YOQg9awxttLL8Hqxl3Z63yv0Oth0cH6HLb+80bc5ylNt06CDXAI= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2020 13:46:19.9385 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccadcb87-f8e8-41e5-cfff-08d7e2d5b5aa 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2323 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Gaurav, You sent to the old list. Adding the new edk2-devel list >=20 > > -----Original Message----- > > From: Gaurav Jain > > Sent: Friday, April 17, 2020 2:55 AM > > To: edk2-devel@lists.01.org > > Cc: Eric Jin ; Supreeth Venkatesh > > ; Samer El-Haj-Mahmoud > Mahmoud@arm.com>; Prasanth Pulla ; Pankaj > > Bansal > > Subject: RE: [edk2-test PATCH] SctPkg: Updated Start Address Alignment > > code > > > > Hi > > > > Gentle Reminder!! > > Please help to review patch. > > > > Regards > > Gaurav Jain > > > > > -----Original Message----- > > > From: Gaurav Jain > > > Sent: Thursday, April 9, 2020 6:33 PM > > > To: edk2-devel@lists.01.org > > > Cc: Eric Jin ; Supreeth Venkatesh > > > ; Samer El-Haj-Mahmoud > > Mahmoud@arm.com>; Prasanth Pulla ; Pankaj > > > Bansal ; Gaurav Jain > > > Subject: [edk2-test PATCH] SctPkg: Updated Start Address Alignment > > > code > > > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2671 > > > > > > AllocatePages Functionality test. > > > Updated Start Address Calculation for aligning to 64k. > > > > > > Signed-off-by: Gaurav Jain > > > --- > > > .../BlackBoxTest/MemoryAllocationServicesBBTestFunction.c | 14 > > > +++++++-- > > > ----- > > > 1 file changed, 7 insertions(+), 7 deletions(-) > > > > > > diff --git a/uefi- > > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B > > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c b/uefi- > > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B > > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c > > > index d18fe1f..a42cd9a 100644 > > > --- a/uefi- > > > sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocationServices/B > > > la ck BoxTest/MemoryAllocationServicesBBTestFunction.c > > > +++ b/uefi-sct/SctPkg/TestCase/UEFI/EFI/BootServices/MemoryAllocatio > > > +++ nS er > > > +++ vices/BlackBoxTest/MemoryAllocationServicesBBTestFunction.c > > > @@ -706,7 +706,7 @@ BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start; > > > @@ -836,7 +836,7 @@ BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start; > > > @@ -959,7 +959,7 @@ BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start + (SctLShiftU64 (PageNum/3, EFI_PAGE_SHIFT) > > > & 0xFFFFFFFFFFFF0000); @@ -1082,7 +1082,7 @@ > > > BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start + (SctLShiftU64 (PageNum * 2 / 3, > > > EFI_PAGE_SHIFT) & 0xFFFFFFFFFFFF0000); @@ -1212,7 +1212,7 @@ > > > BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start; > > > @@ -1335,7 +1335,7 @@ BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start; > > > @@ -1474,7 +1474,7 @@ BBTestAllocatePagesInterfaceTest ( > > > if (PageNum <=3D 0x10) { > > > break; > > > } > > > - Start =3D (Start + 0x10000) & 0xFFFFFFFFFFFF0000; > > > + Start =3D (Start + 0xFFFF) & 0xFFFFFFFFFFFF0000; > > > PageNum =3D PageNum - EFI_SIZE_TO_PAGES(0x10000); > > > > > > Memory =3D Start; > > > -- > > > 2.7.4