From nobody Wed May 15 02:36:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+108253+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108253+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1693816722; cv=none; d=zohomail.com; s=zohoarc; b=IiRdBXiy+FzH1JFVm8NDVfl3t0epSaZ+8h7rPlZ98/pf40tib5OKDyHEFsKXQmSFXV0fKC2ll+XWXpm+MpnDhojgsMk+3C18SJVeGkzUd78lijA1pllWws2UhrMA/RX8un1z6vLWL3cpe3pGzooj8AfIN8iIzLApCfviJWmh3uY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693816722; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=harOx02FxROFp6wVXu51JSeyz2QehZ0vm59BeczhfA8=; b=LfkKkLI8/DRYrhviUpKeo2Pk7D+dwJ4353V0EQNuVyxycqdgpq9+UT2JM7UW7fMs97EHw9L8ZZdDmEuBigMU2vTbV3GsySn81nr6HQFnJAFntmUzehIak76rEuAElWnglo2A+rF4ldhlo3yX80JqPju48Nd3tzRGjJoASrSFreM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+108253+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1693816722207977.4355024167476; Mon, 4 Sep 2023 01:38:42 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=kGLrNLAo6OZ1VD3YBWWpqsxq28NLNOdu9J0qKFuHotw=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1693816721; v=1; b=YVkMc9iAZAzwiaCR586o2H8aCL/sNZtL+DjdrGPnn84HAdmp7u+ucIQxiYwK4bwfnNUjGGxa EQsCw55mjAuALncNtq+f1K0GXZ1AZkbmy7EHr8VaeJzjD/H5wovRoWFwGgt/nWOyynVFZ4Q5YPo fLKAiSYdmQL/6+fuLAUFRAgA= X-Received: by 127.0.0.2 with SMTP id gbxrYY1788612xtaSDN0zkef; Mon, 04 Sep 2023 01:38:41 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.43729.1693816720908354538 for ; Mon, 04 Sep 2023 01:38:41 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="361573832" X-IronPort-AV: E=Sophos;i="6.02,225,1688454000"; d="scan'208";a="361573832" X-Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 01:38:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10822"; a="769908221" X-IronPort-AV: E=Sophos;i="6.02,225,1688454000"; d="scan'208";a="769908221" X-Received: from linusliu-desk1.gar.corp.intel.com ([10.5.215.134]) by orsmga008.jf.intel.com with ESMTP; 04 Sep 2023 01:38:38 -0700 From: "Linus Liu" To: devel@edk2.groups.io Cc: Linus Liu , Qi Zhang , Rahul Kumar , Jiewen Yao Subject: [edk2-devel] [PATCH v1] Pyrite support - Secure erase is only available if encryption is supported. Date: Mon, 4 Sep 2023 01:38:15 -0700 Message-Id: <20230904083815.412-1-linus.liu@intel.com> MIME-Version: 1.0 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: FrC31qaewNjaaudSp5KYVfsNx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1693816724328100001 Content-Type: text/plain; charset="utf-8" From: Linus Liu https://bugzilla.tianocore.org/show_bug.cgi?id=3D3004 Cc: Qi Zhang Cc: Rahul Kumar Cc: Jiewen Yao --- SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c b/SecurityPkg/T= cg/Opal/OpalPassword/OpalDriver.c index e2e77cbc24..88650a28dc 100644 --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c @@ -87,7 +87,9 @@ 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->PsidRevert =3D 0; AvalDiskActions->SecureErase =3D 0; --=20 2.39.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108253): https://edk2.groups.io/g/devel/message/108253 Mute This Topic: https://groups.io/mt/101144585/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-