From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id EE4E97803CE for ; Tue, 12 Sep 2023 02:03:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=2bxZW8Q4vgfwSPr/3mGCe3RPDmPFFj5XZK8KEXDt+kg=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20140610; t=1694484211; v=1; b=vXvN3z2hRMrtoBOFETAqJPhPZIbjBBkGT/JXMWT2btq/yyAJHxKdKJpgnDdQY/idyF+N7Buo o1Mu9eFgOvKRyuiD3J3LK6UFl8FpHOCopg1lM649jgWAK3lULr2K+eDx440XDq5bWIy5Ys4D8GZ OJeGKq8tCcklzk1Ku8lpqiDE= X-Received: by 127.0.0.2 with SMTP id L5hrYY7687511xxoRWcMLMa0; Mon, 11 Sep 2023 19:03:31 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.16345.1694484210492580730 for ; Mon, 11 Sep 2023 19:03:30 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="363288879" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="363288879" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 19:03:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="746674537" X-IronPort-AV: E=Sophos;i="6.02,244,1688454000"; d="scan'208";a="746674537" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Sep 2023 19:03:29 -0700 X-Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 11 Sep 2023 19:03:28 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 11 Sep 2023 19:03:28 -0700 X-Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Mon, 11 Sep 2023 19:03:28 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Mon, 11 Sep 2023 19:03:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JgmIUN1jIVK9QRcgguVuEZdtn+mnIP1LHrg+rS0zK3MPfP2rMapVp81uldjK7I1JuMry9MWZAbB0ZzWCyGN6QF679nuirc4YtQLczCfpMickwjsm95f+N4fq9RjFpp9t71hCH1KbZi39V9zI47ZLK/ZBU2U6U4mxIK8rtXmq7I0O4EwpsiGBATs7xul1UMjQMwNB6DcaqWjsg0nCy01lT5nMkyQeFn1q/qz0Jx1wbCtPbiQXd9C0EcIMRXQ3J9Lxn5Hj6VF7aHeS5lVoQN4Z2xqXYr4ebk1/pmc98B+mc7HLzzNQSfpU6MSpHsg1xONVPLYuMg85QI6QGav6SvFpig== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PMg5yBnzefXilYojfDpkHUqXPE7h1pMopwwEA85DGXM=; b=SAcmMN8QZpi466txkVTDjUXTcbh++ifL2kyoSssh8DjvtdV4f/t0l9sY+Glny+6TeoP+tqcsJfsM4ZzHwiqY1Ou78ussGOyIghkr7o2MJy40FhdmfDaNCbG3sdInPsjtBuNaPrm69//Fc6cnOIOxE+4S3vR+uhQVhw5RraW+MHZ/h32nHh0gJcDFNdunYLBaWGHkrlhjHbNOWdAgobFVQu9eTVnEDcC6tFcsQJf0ctk2mboXIa2DqpH2i2H3QQaDxB6TUBN5WK+ym3w5iwD5ErQGeGfZpNmt1hySZoG2ArljcQDBw7Z4X79H1XiCYuxUbzrEEFE6fXDQUKhTNQruBg== 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 X-Received: from PH7PR11MB5888.namprd11.prod.outlook.com (2603:10b6:510:137::11) by SA2PR11MB4907.namprd11.prod.outlook.com (2603:10b6:806:111::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.35; Tue, 12 Sep 2023 02:03:26 +0000 X-Received: from PH7PR11MB5888.namprd11.prod.outlook.com ([fe80::1025:f73:7f80:2d9c]) by PH7PR11MB5888.namprd11.prod.outlook.com ([fe80::1025:f73:7f80:2d9c%3]) with mapi id 15.20.6768.029; Tue, 12 Sep 2023 02:03:26 +0000 From: "Linus Liu" To: Ard Biesheuvel , "devel@edk2.groups.io" CC: "Zhang, Qi1" , "Kumar, Rahul R" , "Yao, Jiewen" , "Chen, Tina" , "Chen, Xiao X" Subject: Re: [edk2-devel] [PATCH v2] Pyrite support - Secure erase is only available if encryption is supported. Thread-Topic: [edk2-devel] [PATCH v2] Pyrite support - Secure erase is only available if encryption is supported. Thread-Index: AQHZ4WoLBaLTYafEFESRxfQ1dxUvU7AVoPAAgADWhSA= Date: Tue, 12 Sep 2023 02:03:26 +0000 Message-ID: References: <20230907090212.485-1-linus.liu@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5888:EE_|SA2PR11MB4907:EE_ x-ms-office365-filtering-correlation-id: bac8ae47-8b4c-4ffb-a712-08dbb3347388 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: 77TwA/WLszXZTtShoHrlBnxhfcA3h6Pmdbhq+L7R3TUM5LCRtc2hEMif/js8r/4PmKvhEmxsLce0N9s8eTGhvEm6qDV7B4MoOipJCy1/mUv8s2Q4WCuTyHtTdisRCEplkDZcPpv8Gm3+Hi3nYMNdjq2sK3B70Y+xPtNHYCN1F87gZ+D8v5Wy2/O+4G26vMLcbAxqqrJCTC7/3RdCmTK/WdS0fPPKYGqpiEo4b+IsSwvczSnzqy86xNnY5ziC1HB1n7DFDHGrEt3aH9ZV+McF1aNVclBjup9dn/LGWNHOH07p9BIQQOaYClmNkcF1r8Beo8qwFL0+y/kyEKqMLbpNXSm0hPIysUy2+qMmZs94b22evk7IvKJcTmF2CbdSFpsotWQ03QMKHfR2h0yHL1SrkOsatvGkQB0QdfWA8HaGq2O1qfpfWt0UcCCC+MkefxxQqvm6eBTmxrChEyM0uiaaDFR6rIxmsNU5yFqaJXBIuCEbtpxakbDyHcBdMTlcZFrvD0Mz/wQz3LZDuRELb8+q1WOjCS+hWf/sxYzTYizmGtLjtO4zOWqqM9642jPp90gkGD6y4x9LjGHaCr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kUktUSFhqYk9O?= =?utf-8?B?V3lOQ2NWQVRZaHgrYXhvbVdhTWdSY1VXZkVaMFR5TEFPU3JBQWU5NFhuNC9l?= =?utf-8?B?Z1hCMUM0QitwelBoenFKbEZHNU8zekYxSlJWM3N6Z21aWHhrZWdwVkNrNXdK?= =?utf-8?B?cmNmUkhpSWgxUmcxOGlhZWpTcVNteERoQWZWS2kwYkJaQXBuME00MnZ2ZG55?= =?utf-8?B?WUxnSTZ0ZTEzZ0E2c2hZRjJhWllpa3cvb2VWYzRTT0NLVXZIdlkzZFN2N1JH?= =?utf-8?B?dEZzcGVPeWJzbjJMcTlLNGY1UUpaV2Z0YW1zclNsNmg3cDI2WkhjTnBlWlNs?= =?utf-8?B?TG82R3NGc1BTS3N6anAyWElRYkFPMlZKamVTM21QYTY0ZmdMbm1qTGZkS0hi?= =?utf-8?B?TnVBRFVwL1c2RTVqMkRodEFIeW8vTm5UNkJNdlN1emVqTTRsQXhpOFJaZ0dV?= =?utf-8?Q?7vglg48PIZRVp8exTiLSLTLK+?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5888.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bac8ae47-8b4c-4ffb-a712-08dbb3347388 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Sep 2023 02:03:26.0933 (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: zVItfFwfH5vE760jOIvtqfsJs2/z9Q/C+vpUfQl39m/27le2l7L3KuxbPkLvpORAZTCOgTA2AXdnhRlyM1tABw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4907 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,linus.liu@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 1lzPLYzgd9xzfuHjgVX8gq6Ux7686176AA= Content-Language: en-US Content-Type: multipart/mixed; boundary="_002_PH7PR11MB5888EA75E38106F2FD83B454FCF1APH7PR11MB5888namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=vXvN3z2h; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --_002_PH7PR11MB5888EA75E38106F2FD83B454FCF1APH7PR11MB5888namp_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgQXJkIA0KVjMgcGF0Y2ggaGFzIHVwZGF0ZWQuDQpQbGVhc2UgaGVscCB0byBjaGVjayBpdC4N ClRoYW5rcy4NCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEFyZCBCaWVzaGV1 dmVsIDxhcmRiQGtlcm5lbC5vcmc+IA0KU2VudDogTW9uZGF5LCBTZXB0ZW1iZXIgMTEsIDIwMjMg OToxNCBQTQ0KVG86IGRldmVsQGVkazIuZ3JvdXBzLmlvOyBMaXUsIExpbnVzIDxsaW51cy5saXVA aW50ZWwuY29tPg0KQ2M6IFpoYW5nLCBRaTEgPHFpMS56aGFuZ0BpbnRlbC5jb20+OyBLdW1hciwg UmFodWwgUiA8cmFodWwuci5rdW1hckBpbnRlbC5jb20+OyBZYW8sIEppZXdlbiA8amlld2VuLnlh b0BpbnRlbC5jb20+OyBDaGVuLCBUaW5hIDx0aW5hLmNoZW5AaW50ZWwuY29tPjsgQ2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pcyBncm91cC4NCj4gVmlldy9S ZXBseSBPbmxpbmUgKCMxMDgzNjgpOiBodHRwczovL2VkazIuZ3JvdXBzLmlvL2cvZGV2ZWwvbWVz c2FnZS8xMDgzNjgNCj4gTXV0ZSBUaGlzIFRvcGljOiBodHRwczovL2dyb3Vwcy5pby9tdC8xMDEy MTA4ODYvMTEzMTcyMg0KPiBHcm91cCBPd25lcjogZGV2ZWwrb3duZXJAZWRrMi5ncm91cHMuaW8N Cj4gVW5zdWJzY3JpYmU6IGh0dHBzOi8vZWRrMi5ncm91cHMuaW8vZy9kZXZlbC91bnN1YiBbYXJk YkBrZXJuZWwub3JnXQ0KPiAtLS0tLS0tLS0tLS0NCj4NCj4NCg0KCi09LT0tPS09LT0tPS09LT0t PS09LT0tCkdyb3Vwcy5pbyBMaW5rczogWW91IHJlY2VpdmUgYWxsIG1lc3NhZ2VzIHNlbnQgdG8g dGhpcyBncm91cC4KVmlldy9SZXBseSBPbmxpbmUgKCMxMDg1MTMpOiBodHRwczovL2VkazIuZ3Jv dXBzLmlvL2cvZGV2ZWwvbWVzc2FnZS8xMDg1MTMKTXV0ZSBUaGlzIFRvcGljOiBodHRwczovL2dy b3Vwcy5pby9tdC8xMDEyMTA4ODYvNzY4NjE3NgpHcm91cCBPd25lcjogZGV2ZWwrb3duZXJAZWRr Mi5ncm91cHMuaW8KVW5zdWJzY3JpYmU6IGh0dHBzOi8vZWRrMi5ncm91cHMuaW8vZy9kZXZlbC91 bnN1YiBbcmViZWNjYUBvcGVuZncuaW9dCi09LT0tPS09LT0tPS09LT0tPS09LT0tCgoNCg== --_002_PH7PR11MB5888EA75E38106F2FD83B454FCF1APH7PR11MB5888namp_ Content-Type: message/rfc822 Content-Disposition: attachment; creation-date="Tue, 12 Sep 2023 02:03:23 GMT"; modification-date="Tue, 12 Sep 2023 02:03:25 GMT" Received: from IA0PR11MB7187.namprd11.prod.outlook.com (2603:10b6:208:441::12) by PH7PR11MB5888.namprd11.prod.outlook.com with HTTPS; Tue, 12 Sep 2023 01:45:31 +0000 Received: from DS7PR03CA0029.namprd03.prod.outlook.com (2603:10b6:5:3b8::34) by IA0PR11MB7187.namprd11.prod.outlook.com (2603:10b6:208:441::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.31; Tue, 12 Sep 2023 01:45:30 +0000 Received: from CY4PEPF0000FCC0.namprd03.prod.outlook.com (2603:10b6:5:3b8:cafe::ca) by DS7PR03CA0029.outlook.office365.com (2603:10b6:5:3b8::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.37 via Frontend Transport; Tue, 12 Sep 2023 01:45:29 +0000 Received: from edgegateway.intel.com (192.55.55.71) by CY4PEPF0000FCC0.mail.protection.outlook.com (10.167.242.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.16 via Frontend Transport; Tue, 12 Sep 2023 01:45:29 +0000 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by edgegateway.intel.com (10.1.192.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 11 Sep 2023 18:45:16 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Mon, 11 Sep 2023 18:45:16 -0700 Received: from orsmga008.jf.intel.com (10.7.209.65) 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.2507.32 via Frontend Transport; Mon, 11 Sep 2023 18:45:16 -0700 Received: from orsmga102-1.jf.intel.com (HELO mgamail.intel.com) ([10.7.208.27]) by orsmga008-1.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 18:45:14 -0700 Received: from mail02.groups.io ([66.175.222.108]) by mgamail.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2023 18:45:12 -0700 From: "Liu, Linus" To: "devel@edk2.groups.io" CC: "Liu, Linus" , "Zhang, Qi1" , "Kumar, Rahul R" , "Yao, Jiewen" , "Chen, Tina" , "Chen, Xiao X" Subject: [edk2-devel] [PATCH v3] Pyrite support - Secure erase is only available if encryption is supported. Thread-Topic: [edk2-devel] [PATCH v3] Pyrite support - Secure erase is only available if encryption is supported. Thread-Index: AQHZ5RrQfLNQ9H4n0kSTVXG4Ov0BEQ== Sender: "devel@edk2.groups.io" Date: Tue, 12 Sep 2023 01:41:59 +0000 Message-ID: <1784033FB294A935.29005@groups.io> List-Help: List-Subscribe: List-Unsubscribe: Reply-To: "devel@edk2.groups.io" , "Liu, Linus" Content-Language: en-US X-MS-Exchange-Organization-AuthSource: fmsmsx601.amr.corp.intel.com X-MS-Exchange-Organization-ComplianceLabelId: 12ee4da9-25d2-4141-a122-b55133cf49dd X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-Network-Message-Id: 423bd857-2d1c-4f2a-6cec-08dbb331f206 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-ms-exchange-organization-originalclientipaddress: 10.7.209.65 x-ms-exchange-organization-originalserveripaddress: 10.167.242.102 received-spf: None (mgamail.intel.com: no sender authenticity information available from domain of postmaster@mail02.groups.io) identity=helo; client-ip=66.175.222.108; receiver=mgamail.intel.com; envelope-from="bounce+27952+108511+7575003+12201523@groups.io"; x-sender="postmaster@mail02.groups.io"; x-conformance=sidf_compatible x-ms-publictraffictype: Email X-Microsoft-Antispam-Mailbox-Delivery: ucf:1;jmr:0;auth:0;dest:C;OFR:CustomRules;ENG:(910001)(944506478)(944626604)(920097)(930097)(140003); X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?WGHkH1W2N64gsjoiwjp6AaLuhWQd1x1SuUx6+/7DA8Gmb1tYjSiSCfwp7b?= =?iso-8859-1?Q?88Wh5MS6tGJlMLDmKXILna5PmyIuSvwNGpWMSKly1K44tSvQGn+1eXNJpY?= =?iso-8859-1?Q?ywFTH+qY4aha7cdKujSwCZtmFwNXnMTW2FdGff2DrgQ8xRR+niwJDRxigm?= =?iso-8859-1?Q?Pxf9aFAHV4o/R0CB546J/UBAezhyxeCfrU1lJTMOZz6YRwdU/eOBljPfCD?= =?iso-8859-1?Q?htf3h7+N2HiQwwYAyFU/0fdwbuWpCw4jfVfBzg0blvFrekIl3yfcpOFaF3?= =?iso-8859-1?Q?2LJWvvkGNNW+A3FcOGl0mUSOc7hOsmg74HP5JEr8H+C4anWC6oToZFkkoN?= =?iso-8859-1?Q?10zAks8jOgM4PNiitXNEdZ7Uj/prT/Kp2uBQVqjZtSFT7ZGd1mwMuVuKRz?= =?iso-8859-1?Q?FaJerx7HALYpsgsp1BzzTsWJLA3HWG8CcsG8PO5/VR44ATKvgDQZWAfyF0?= =?iso-8859-1?Q?XsjsoIdEXs/U6zsNX/N3DBHMkrU3QZcc9XcbD/5V1bJxzmI2roGdmh2ORU?= =?iso-8859-1?Q?X/wyAen4DD0tI3utyAB9I2fkniLkI8n3LC2HJsBBAi4mRAiqL7TzHtFjrU?= =?iso-8859-1?Q?Xyg+U42It/4OksTLFp5LisLQj2yZp4mx8rS987qUQ6AUaer3tCPtHFVJou?= =?iso-8859-1?Q?5URufoM4V/7KYYAK07MMhPJPJljNHrTT6HZTXXxCaQWAx9VmZCbZ6zqwHK?= =?iso-8859-1?Q?YPvEWLgSlfhSXMSODAea5qcgtl/mufw8R0MS0Bjkw4C1zkU4/MXDO6gKYc?= =?iso-8859-1?Q?gaLR/knyYrkOvQYIvHtvfPLeWHYjAAoIhpuuFdpclI6rq2LSRPagnaiwje?= =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content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: Linus Liu https://bugzilla.tianocore.org/show_bug.cgi?id=3D3004 Cc: Qi Zhang Cc: Rahul Kumar Cc: Jiewen Yao Cc: Tina Chen Cc: Xiao X Chen Signed-off-by: Linus Liu --- SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c b/SecurityPkg/T= cg/Opal/OpalPassword/OpalDriver.c index e2e77cbc24..ba9fa66c60 100644 --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c @@ -87,7 +87,11 @@ OpalSupportGetAvailableActions ( // Secure erase is performed by generating a new encryption key // this is only available if encryption is supported // - AvalDiskActions->SecureErase =3D 1; + if (SupportedAttributes->MediaEncryption) { + AvalDiskActions->SecureErase =3D 1; + } else { + AvalDiskActions->SecureErase =3D 0; + } } else { AvalDiskActions->PsidRevert =3D 0; AvalDiskActions->SecureErase =3D 0; -- 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108511): https://edk2.groups.io/g/devel/message/108511 Mute This Topic: https://groups.io/mt/101307436/7575003 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [linus.liu@intel.com] -=3D-=3D-=3D-=3D-=3D-=3D --_002_PH7PR11MB5888EA75E38106F2FD83B454FCF1APH7PR11MB5888namp_--