From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web09.4211.1605592267053614904 for ; Mon, 16 Nov 2020 21:51:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=KS4rZ8Ok; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: arvinx.chen@intel.com) IronPort-SDR: vLZwm9u+3xMQl61UE+hL4QctNlULrXhcC7rl1WPlNDl5QFtfm68xfyJIji95eM3GpsLgCqimBb 07rzVdfO57uQ== X-IronPort-AV: E=McAfee;i="6000,8403,9807"; a="235017842" X-IronPort-AV: E=Sophos;i="5.77,484,1596524400"; d="scan'208,217";a="235017842" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 21:51:06 -0800 IronPort-SDR: sH0ylDC0Vzfc6Td+clC6ZAcXZXk6lwUFmn92xpYDyJWHTbPPG+nk52Cm/pNlYzDWcI2YGYNkBf 80/jSJm4rvsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,484,1596524400"; d="scan'208,217";a="367751060" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 16 Nov 2020 21:51:05 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 16 Nov 2020 21:51:05 -0800 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 16 Nov 2020 21:51:04 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 16 Nov 2020 21:51:04 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 16 Nov 2020 21:51:04 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a6qhFYd6v6Di77uOBPC19zMNXCwt14LEgFyjlZry6mfUgn/rqmFsezdxa5vx3cjdwWyjTWsPn/8RWYpVl72JomXJhHXeAs7V0EksQhwISeFrdVwlHMmIEGZIwpmK3xM5cwLpY/Ya88lI3LIzrLyC8lLaqTzt3i6luw/zAQgk3auD94EIhq8iEtR4edqH38wd9e4FV7X+obzOnanCrr5355NAKsQhEYBd4J/u87JtBzjRtuLvbDAuMZjwLinBv0kHVb6dyQr4M7OizmpxGah2pMs68jenkGCgbq8sj39Vhwm3m0emjSkYjllLYuZT8UqmUhVDrAhKdRohCnnXKVmqcQ== 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=5ZFQ6vFAnoQO3u6efiL3NztKPer9kfzLZvw4OMXpudE=; b=bm/MICrT8ckNvZFnzw+5TravJARVHuc3kgq5kHuTXcJv7KovpgSLL6TpbWP4pwLLR05etFhCBlE/S2B2Yx9UqanHqFNOhW1/y3EGZB9UdFW2s9nOcvh7n9wRMgm0+t1qpv5xT/2UmU2t2diuQ6GXtKYHSjRA/YNPtbH86XLLfHYO0XUM4HpcDql1dzWzsCySMM/FzYdtUmg9fPpZG5fXLa5DDhZgjL80P0JhiGw+NxOamVq1UX8uAZmRr9cP74w1LFmHem0I5uwIY3qYEXMH5wadKlfgH/Rikz3YF7XaoN/O2zHQAxPBsD5uyq49kEgbvjHP/XuTX5xrWFyJNv//Zg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5ZFQ6vFAnoQO3u6efiL3NztKPer9kfzLZvw4OMXpudE=; b=KS4rZ8OkNzbjaaHQt9yJDV6QD8TaYw9mWm5OrQ8JZHUPUPq/HJ9MQNRMCqiYLKiQM7F/z2iy3vG5g8yAMGrV+cWCkb54MjDWF9Tfku0O73MkpJ4nNytRTs7QFXqD88svUIfr2LwrpbcbPnTqX69C21X2/YKx6dbYQ+pUBc5lFdQ= Received: from DM5PR11MB1737.namprd11.prod.outlook.com (2603:10b6:3:10b::21) by DM6PR11MB3034.namprd11.prod.outlook.com (2603:10b6:5:65::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.23; Tue, 17 Nov 2020 05:51:02 +0000 Received: from DM5PR11MB1737.namprd11.prod.outlook.com ([fe80::1455:817f:6823:24b7]) by DM5PR11MB1737.namprd11.prod.outlook.com ([fe80::1455:817f:6823:24b7%11]) with mapi id 15.20.3564.028; Tue, 17 Nov 2020 05:51:02 +0000 From: "Chen, ArvinX" To: Samer El-Haj-Mahmoud , "devel@edk2.groups.io" CC: G Edhaya Chandran , "Jin, Eric" , "gaoliming@byosoft.com.cn" , "Chu, Maggie" Subject: =?UTF-8?B?5Zue6KaGOiBbZWRrMi1kZXZlbF0gW1BBVENIIDIvMl0gdWVmaS1zY3QvU2N0UGtnOiBDb3JyZWN0IEJCVGVzdEVyYXNlQmxvY2tzIGJlaGF2aW9yIChFRklfQkxPQ0tfSU9fUFJPVE9DT0wp?= Thread-Topic: [edk2-devel] [PATCH 2/2] uefi-sct/SctPkg: Correct BBTestEraseBlocks behavior (EFI_BLOCK_IO_PROTOCOL) Thread-Index: AQHWsP8oBqzi5x8JIEej5OOn0pNMOKnDd0uQgAhtQmw= Date: Tue, 17 Nov 2020 05:51:02 +0000 Message-ID: References: <20201102095950.763-1-arvinx.chen@intel.com>, In-Reply-To: Accept-Language: zh-TW, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.52.210] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 33fa248f-d23b-4542-2c07-08d88abcc421 x-ms-traffictypediagnostic: DM6PR11MB3034: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4UNdtUr/uc+xGXYtZJNubFZhhKoEnkQTK4aNgHacHMPpBSnzbR1ZUu3bT07GROqBiFe3cfEvbuo0WoPTlq/sSc4IK4UjP/20ODZr0RFS0mXKPU04hoBjqBwte+g5OULy/NcP8gqpFmMIM3g4kAoafXdCUQXUiEszjOX8ttrr5QapOcJ6KArdbzJifKFT6KbRDBPkQ0RjobylWHWTUrj7QkjdqLl1VtstMf/SLQgfFYOeM0/VTYO/y69eGxjHI8M819yC5g63tzwOt4EH1qmap921/twtSPjGbzD0RTCSTDUzJqAl81XhM9t9mD6cBp9l8w7Pp73/10WkFTC4bp8rA8q56+65Tiwwg8J7QIxDuxz3aF6v/D1sLGhLouYqQVXQ0q3lmOWUfBt81K8UdC4wdg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB1737.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(346002)(376002)(39860400002)(396003)(6506007)(66476007)(966005)(9686003)(26005)(66556008)(66446008)(4326008)(91956017)(224303003)(107886003)(52536014)(186003)(19627405001)(5660300002)(8936002)(316002)(110136005)(76116006)(86362001)(66946007)(54906003)(2906002)(478600001)(33656002)(53546011)(83380400001)(55016002)(7696005)(166002)(71200400001)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: QeM2ZrZNU3X0bxbFJcjMw2QG3pAlHzDiimn0nzTy3M7dAPBcNHBo0LK74yApbgtWF1bgkOnjYBB8DcJK/XChi6U46brjUaQrZoUzWjijxsXwimZg7PaUXtYiZl6JZ0sjvjCnakXMKbFSBQqdqJwkykmisHcrBvSnVxCZzhrQEKjVWZVcY+Kd3CAtBKS0WtzWWvHHMM60af2/NLQM8kqhGLUeQZuqn8aet/AeENE0RfpXWOoQKNm+MgFUoSbkaWjWDbKBSdsv7lKje+9a6gpb5chKqq30Cp3YIgiv1sru5h4BG547BkvfIgpdffYWBm0wdfYapJylz4XAGQ0gN+LpsIb3s77oWVjQGMoH48CV7sHDHYWIpI0Ke5rSVj535xfQeMwnbpgl/TlbLrJrrmpnarg3tVfMrdA1B0+asNgWzEA7ZmOMJj/mB5PTrqbeJ0S144wY/s8htyjwdJNAtXYdI10++lU8Q00QagNb7QH3Qp75l9lpyRwtD3QgQXwBlMWEt0Cmi7TCrDb3BHCulyIbQcCn1/D2WwwnPybGmj67GQH5jJQkg7pPdqzJqtTfVwxQcmAtqtQUZ8Monn5IG8U8Zn8/CthkoRYy0zRGb0zbyr8YIV2bgwmAUw8KYY0pT7/Ld9zPSlMquhKxvtg5vuzSYZY2a7reUHUW7kn31y2YpJRgk05HqlyIm9c3EfdAiBKuoJD0XnL9CVA3YwW3xEhGNmOx6qfseI/IA23OjftBXZoU2ejCpitU5olgFyNt7YbdZhTGMg0+Qdd5SPQYrMVWOj3HXXVBkJER7alxYP57P+J+mjQw+/UeTIfVyhippFXuczr9omg+f1kXx5i3T/sbuT+6owytZWdfIfOUVepaspOY1+W6DGeAnqjNdKmMd/0msyZxCReQEPrhkDdB/iJPdQ== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB1737.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33fa248f-d23b-4542-2c07-08d88abcc421 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2020 05:51:02.0358 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wrDLLUFxFtKKMLxq59WnRMGEg40R4hM35VvHra4avxV3AK8mkzzmz/EcUIgbejhAxHLtFvyvNa46OQFvzLdCsQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3034 Return-Path: arvinx.chen@intel.com X-OriginatorOrg: intel.com Content-Language: zh-TW Content-Type: multipart/alternative; boundary="_000_DM5PR11MB17378A3545211C3C08578AE1FBE20DM5PR11MB1737namp_" --_000_DM5PR11MB17378A3545211C3C08578AE1FBE20DM5PR11MB1737namp_ Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 SEkgU2FtZXIsDQoNCiAgICBTb3JyeSBmb3IgdGhlIHNsb3cgcmVwbHksIEluIEVNTUMncyBjYXNl LCBpdCBhbGxvd2VkIHN0b3JhZ2UgZmlybXdhcmUgZXJhc2UgdG8gIjEiIHRvIGJlIGEgdmFsaWQg YmVoYXZpb3IgKHBsZWFzZSByZWZlcmVuY2UgdGhlIHNwZWMgb2YgZW1tYyBKRVNEODQtQjUxLzYu Ni45KSwgc28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l6ZSwgKFZPSUQq KUJ1ZmZlcjIpOw0KPg0KPiAgICAgICAgICBpZiAoUmVhZFN0YXR1cyA9PSBFRklfU1VDQ0VTUykg ew0KPg0KPiAtICAgICAgICAgIGZvciAoSW5kZXgxID0gMDsgSW5kZXgxIDwgQmxvY2tTaXplOyBJ bmRleDErKykgew0KPg0KPiAtICAgICAgICAgICAgaWYgKEJ1ZmZlcjJbSW5kZXgxXSAhPSAwKSB7 DQo+DQo+ICsgICAgICAgICAgZm9yIChJbmRleDEgPSAwLCBFcmFzZUNvdW50ZXIgPSAwOyBJbmRl eDEgPCBCbG9ja1NpemU7IEluZGV4MSsrKSB7DQo+DQo+ICsgICAgICAgICAgICBpZiAoQnVmZmVy MltJbmRleDFdICE9IDB4MDAgJiYgQnVmZmVyMltJbmRleDFdICE9IDB4RkYpIHsNCj4NCj4gICAg ICAgICAgICAgICAgSXNaZXJvMSA9IEZBTFNFOw0KPg0KPiAgICAgICAgICAgICAgICBicmVhazsN Cj4NCj4gKyAgICAgICAgICAgIH0gZWxzZSBpZiAoQnVmZmVyMltJbmRleDFdID09IDB4MDApIHsN Cj4NCj4gKyAgICAgICAgICAgICAgRXJhc2VDb3VudGVyKys7DQo+DQo+ICAgICAgICAgICAgICB9 DQo+DQo+ICAgICAgICAgICAgfQ0KPg0KPiArICAgICAgICAgIGlmIChFcmFzZUNvdW50ZXIhPTAg JiYgRXJhc2VDb3VudGVyIT1CbG9ja1NpemUpIHsNCj4NCj4gKyAgICAgICAgICAgIElzWmVybzEg PSBGQUxTRTsNCj4NCj4gKyAgICAgICAgICB9DQo+DQo+DQo+DQo+IC0gICAgICAgICAgZm9yIChJ bmRleDEgPSBCbG9ja1NpemU7IEluZGV4MSA8IEJ1ZmZlclNpemUgLSBCbG9ja1NpemU7IEluZGV4 MSsrKSB7DQo+DQo+IC0gICAgICAgICAgICBpZiAoQnVmZmVyMltJbmRleDFdICE9IDApIHsNCj4N Cj4gKyAgICAgICAgICBmb3IgKEluZGV4MSA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Vic2NyaWJlOiBodHRwczovL2VkazIuZ3JvdXBzLmlvL2cvZGV2 ZWwvdW5zdWIgW3NhbWVyLmVsLWhhai0NCj4gbWFobW91ZEBhcm0uY29tXQ0KPiAtPS09LT0tPS09 LT0NCj4NCg0KSU1QT1JUQU5UIE5PVElDRTogVGhlIGNvbnRlbnRzIG9mIHRoaXMgZW1haWwgYW5k IGFueSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50aWFsIGFuZCBtYXkgYWxzbyBiZSBwcml2aWxl Z2VkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50LCBwbGVhc2Ugbm90aWZ5 IHRoZSBzZW5kZXIgaW1tZWRpYXRlbHkgYW5kIGRvIG5vdCBkaXNjbG9zZSB0aGUgY29udGVudHMg dG8gYW55IG90aGVyIHBlcnNvbiwgdXNlIGl0IGZvciBhbnkgcHVycG9zZSwgb3Igc3RvcmUgb3Ig Y29weSB0aGUgaW5mb3JtYXRpb24gaW4gYW55IG1lZGl1bS4gVGhhbmsgeW91Lg0K --_000_DM5PR11MB17378A3545211C3C08578AE1FBE20DM5PR11MB1737namp_ Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
HI Samer,

    Sorry for the slow reply, In EMMC's case, it allowed storage = firmware erase to "1" to be a valid behavior (please reference th= e spec of emmc JESD84-B51/6.6.9), so once verification team use kind of thi= s device, the test case will always failed. To avoid this problem, I think this change is required.

Thanks!!
Arvin


=B1H=A5=F3=AA=CC: Samer E= l-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>
=B1H=A5=F3=A4=E9=B4=C1: 2020=A6~11=A4=EB12=A4=E9 =A4W=A4=C8 04:56 =A6=AC=A5=F3=AA=CC: devel@edk2.groups.io <devel@edk2.groups.io>= ;; Chen, ArvinX <arvinx.chen@intel.com>
=B0=C6=A5=BB: G Edhaya Chandran <Edhaya.Chandran@arm.com>; Jin= , Eric <eric.jin@intel.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-Ma= hmoud@arm.com>; gaoliming@byosoft.com.cn <gaoliming@byosoft.com.cn>= ;
=A5D=A6=AE: RE: [edk2-devel] [PATCH 2/2] uefi-sct/SctPkg: Correct BB= TestEraseBlocks behavior (EFI_BLOCK_IO_PROTOCOL)
 
Hi Chen,

The UEFI Specification 2.8ErrataB (page 575) states that " It is the i= ntention of the EraseBlocks() operation to be at least as performant as wri= ting zeroes to each of the specified LBA locations while ensuring the equiv= alent security."

So while not explicitly saying that Erase should "erase to 0", it= implies that at least is the intention. Do we know that erasing to "1= " is a valid behavior?



> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of C= hen,
> ArvinX via groups.io
> Sent: Monday, November 2, 2020 5:00 AM
> To: devel@edk2.groups.io
> Cc: G Edhaya Chandran <Edhaya.Chandran@arm.com>; Eric Jin
> <eric.jin@intel.com>
> Subject: [edk2-devel] [PATCH 2/2] uefi-sct/SctPkg: Correct
> BBTestEraseBlocks behavior (EFI_BLOCK_IO_PROTOCOL)
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3022
>
>
>
> The storage device erase behavior may have two possibilities:
>
>  1.Write all data into "0"
>
>  2.Write all data into "1"
>
> but now tool behavior can only check case 1 (Write all data into "= ;0"),
>
> so we need add the other case into SCT tool to correct the test behavi= or.
>
>
>
> Cc: G Edhaya Chandran <Edhaya.Chandran@arm.com>
>
> Cc: Eric Jin <eric.jin@intel.com>
>
> Signed-off-by: ArvinX Chen <arvinx.chen@intel.com>
>
> ---
>
>  .../BlackBoxTest/EraseBlockBBTestFunction.c   | 55 +++= ++++++++++++----
>
>  1 file changed, 43 insertions(+), 12 deletions(-)
>
>
>
> diff --git a/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Protocol/EraseBlock/BlackBoxTest/EraseBlo= ck
> BBTestFunction.c b/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Protocol/EraseBlock/BlackBoxTest/EraseBlo= ck
> BBTestFunction.c
>
> index cbf43e1d..dbbb70c6 100644
>
> --- a/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Protocol/EraseBlock/BlackBoxTest/EraseBlo= ck
> BBTestFunction.c
>
> +++ b/uefi-
> sct/SctPkg/TestCase/UEFI/EFI/Protocol/EraseBlock/BlackBoxTest/EraseBlo= ck
> BBTestFunction.c
>
> @@ -71,6 +71,7 @@ BBTestEraseBlocksFunctionTest (
>
>    UINT64       &nbs= p;            &= nbsp;           Index; >
>    UINTN        = ;            &n= bsp;            Inde= x1;
>
>    UINTN        = ;            &n= bsp;            Rema= inder;
>
> +  UINT64         &n= bsp;            = ;          EraseCounter;
>
>
>
>    EFI_ERASE_BLOCK_TOKEN     &= nbsp;           Token; >
>    EFI_BLOCK_IO2_TOKEN     &nb= sp;            = BlockIo2Token;
>
> @@ -223,26 +224,41 @@ BBTestEraseBlocksFunctionTest (
>
>          // Read the data= with 0, the first/last block should not be erased
>
>          ReadStatus =3D B= lockIo->ReadBlocks (BlockIo, MediaId, Lba, BufferSize,
> (VOID*)Buffer2);
>
>          if (ReadStatus = =3D=3D EFI_SUCCESS) {
>
> -          for (Index1 = =3D 0; Index1 < BlockSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D 0, EraseCounter =3D 0; Index1 < BlockSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero1 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3DBlockSize) {
>
> +            Is= Zero1 =3D FALSE;
>
> +          }
>
>
>
> -          for (Index1 = =3D BlockSize; Index1 < BufferSize - BlockSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D BlockSize, EraseCounter =3D 0; Index1 < BufferSize -
> BlockSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero2 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3D(BufferSize - (BlockSize*2))) {
>
> +            Is= Zero2 =3D FALSE;
>
> +          }
>
>
>
> -          for (Index1 = =3D BufferSize - BlockSize; Index1 < BufferSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D BufferSize - BlockSize, EraseCounter =3D 0; Index1 <
> BufferSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero3 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3DBlockSize) {
>
> +            Is= Zero3 =3D FALSE;
>
> +          }
>
>
>
>            if (= (EraseStatus =3D=3D EFI_SUCCESS) && (IsZero1 =3D=3D FALSE) &&am= p; (IsZero2 =3D=3D
> TRUE) && ((IsZero3 =3D=3D FALSE)))
>
>            = ;  AssertionType =3D EFI_TEST_ASSERTION_PASSED;
>
> @@ -492,26 +508,41 @@ BlockIo2:
>
>          // Read the data= with 0, the first/last block should not be erased
>
>          ReadStatus =3D B= lockIo2->ReadBlocksEx (BlockIo2, MediaId, Lba,
> &BlockIo2Token, BufferSize, (VOID*)Buffer2);
>
>          if (ReadStatus = =3D=3D EFI_SUCCESS) {
>
> -          for (Index1 = =3D 0; Index1 < BlockSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D 0, EraseCounter =3D 0; Index1 < BlockSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero1 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3DBlockSize) {
>
> +            Is= Zero1 =3D FALSE;
>
> +          }
>
>
>
> -          for (Index1 = =3D BlockSize; Index1 < BufferSize - BlockSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D BlockSize, EraseCounter =3D 0; Index1 < BufferSize -
> BlockSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero2 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3D(BufferSize - (BlockSize*2))) {
>
> +            Is= Zero2 =3D FALSE;
>
> +          }
>
>
>
> -          for (Index1 = =3D BufferSize - BlockSize; Index1 < BufferSize; Index1++) {
>
> -            if= (Buffer2[Index1] !=3D 0) {
>
> +          for (Index1 = =3D BufferSize - BlockSize, EraseCounter =3D 0; Index1 <
> BufferSize; Index1++) {
>
> +            if= (Buffer2[Index1] !=3D 0x00 && Buffer2[Index1] !=3D 0xFF) {
>
>            = ;    IsZero3 =3D FALSE;
>
>            = ;    break;
>
> +            } = else if (Buffer2[Index1] =3D=3D 0x00) {
>
> +           &nb= sp;  EraseCounter++;
>
>            = ;  }
>
>            } >
> +          if (EraseCount= er!=3D0 && EraseCounter!=3DBlockSize) {
>
> +            Is= Zero3 =3D FALSE;
>
> +          }
>
>
>
>            if (= (EraseStatus =3D=3D EFI_SUCCESS) && (IsZero1 =3D=3D FALSE) &&am= p; (IsZero2 =3D=3D
> TRUE) && ((IsZero3 =3D=3D FALSE)))
>
>            = ;  AssertionType =3D EFI_TEST_ASSERTION_PASSED;
>
> --
>
> 2.26.2.windows.1
>
>
>
>
>
> -=3D-=3D-=3D-=3D-=3D-=3D
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#66857): https://edk2.groups.io/g/devel/message/66857
> Mute This Topic: htt= ps://groups.io/mt/77977762/1945644
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://= edk2.groups.io/g/devel/unsub [samer.el-haj-
> mahmoud@arm.com]
> -=3D-=3D-=3D-=3D-=3D-=3D
>

IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in any medium. Thank you.
--_000_DM5PR11MB17378A3545211C3C08578AE1FBE20DM5PR11MB1737namp_--