++ Tina , Chen Xiao

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Linus Liu
Sent: Monday, September 4, 2023 4:38 PM
To: devel@edk2.groups.io
Cc: Liu, Linus <linus....@intel.com>; Zhang, Qi1 <qi1.zh...@intel.com>; Kumar, 
Rahul R <rahul.r.ku...@intel.com>; Yao, Jiewen <jiewen....@intel.com>
Subject: [edk2-devel] [PATCH v1] Pyrite support - Secure erase is only 
available if encryption is supported.

From: Linus Liu <linus....@intel.com>

https://bugzilla.tianocore.org/show_bug.cgi?id=3004

Cc: Qi Zhang    <qi1.zh...@intel.com>
Cc: Rahul Kumar <rahul1.ku...@intel.com>
Cc: Jiewen Yao  <jiewen....@intel.com>
---
 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/Tcg/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 = 1;+    if (SupportedAttributes->MediaEncryption) 
{+      AvalDiskActions->SecureErase = 1;+    }   } else {     
AvalDiskActions->PsidRevert  = 0;     AvalDiskActions->SecureErase = 0;-- 
2.39.2.windows.1



-=-=-=-=-=-=
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/7575003
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [linus....@intel.com] 
-=-=-=-=-=-=




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108279): https://edk2.groups.io/g/devel/message/108279
Mute This Topic: https://groups.io/mt/101144585/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to