From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail03.groups.io (mail03.groups.io [45.79.227.220]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9D1649413BF for ; Fri, 12 Apr 2024 07:06:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=3AuGl3uVsEYwCjDnhwUH6vpEBeydvGOOvpkBYkokRbg=; c=relaxed/simple; d=groups.io; h=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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1712905568; v=1; b=VBfM/ENKyMFuXNwV3Ev5yVEaf8wSEkv7cYFMYwov0O64w8ZkDql+PmMKSD5lVVNPRquIcdKi M0cS1va55H0/eI+PPcP0EIJF9gBkshPdSq5a+ejlGuu4vSU2Xi+fl9P+Dgb6d0h25SR8vlw7QKR Zt+BcZFP2FxaAUJqGVHJHzxS83ATSl5NbIzkJVg/jCdkD5nkBch5SiftEAMLiP9RgSMOU/JN9w7 iApKH2nvw+YBZWZVtOgM0QP+XMUe7Z+Mc5FPl2/SK+pXmkPzGau6beOZzZKcKhv92pBv4mwu4Hx nGEXWd0Z/Fx2HdbzRvTf+hgPjBmv8Pl2uXsm5xnA9dqjQ== X-Received: by 127.0.0.2 with SMTP id UFLqYY7687511xmDae0DkLxe; Fri, 12 Apr 2024 00:06:08 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mx.groups.io with SMTP id smtpd.web11.40748.1712905562652128723 for ; Fri, 12 Apr 2024 00:06:02 -0700 X-CSE-ConnectionGUID: P7eTnBLYQzCzs7XALs5HVQ== X-CSE-MsgGUID: aLFHLaVzT+iFgIVi+feLPA== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="8210323" X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="8210323" X-Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2024 00:06:02 -0700 X-CSE-ConnectionGUID: Q3TLWrOKSQCV2BVSR153Bg== X-CSE-MsgGUID: cZ47YbEmRQm9XMyVCjaX9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,195,1708416000"; d="scan'208";a="21637118" X-Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 12 Apr 2024 00:06:03 -0700 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 12 Apr 2024 00:06:01 -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.35 via Frontend Transport; Fri, 12 Apr 2024 00:06:01 -0700 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.41) 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.35; Fri, 12 Apr 2024 00:06:01 -0700 X-Received: from IA1PR11MB6324.namprd11.prod.outlook.com (2603:10b6:208:388::15) by CY5PR11MB6210.namprd11.prod.outlook.com (2603:10b6:930:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.25; Fri, 12 Apr 2024 07:05:59 +0000 X-Received: from IA1PR11MB6324.namprd11.prod.outlook.com ([fe80::310e:42e6:3574:f431]) by IA1PR11MB6324.namprd11.prod.outlook.com ([fe80::310e:42e6:3574:f431%6]) with mapi id 15.20.7452.019; Fri, 12 Apr 2024 07:05:59 +0000 From: "Cindy Kuo" To: "Yao, Jiewen" , "Chen, Tina" , "Bi, Dandan" , "devel@edk2.groups.io" CC: "Kumar, Rahul R" , "Tan, Ming" , "Chen, Arthur G" , "Chen, Xiao X" Subject: Re: [edk2-devel] [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI according to UEFI spec Thread-Topic: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI according to UEFI spec Thread-Index: AQHai73oDWO/70PzxUaabaLA3MRZMLFi64AAgABLcYCAAMN8gIAAC4IAgAAqujA= Date: Fri, 12 Apr 2024 07:05:59 +0000 Message-ID: References: <46e2b8943750c127746125f0265b91ab91a0a859.1712804652.git.cindyx.kuo@intel.com> In-Reply-To: Accept-Language: en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: IA1PR11MB6324:EE_|CY5PR11MB6210:EE_ x-ms-office365-filtering-correlation-id: c5f029d7-3d59-4be9-3121-08dc5abf01b5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: Kj2qWzd7Bq3fir9XaStYo9Pgnle5hf6nbVxRwxxJbtqqyZmsYdFimrenrjFDPa4k7UbfXFAD+nvTMSB7ouMStXwyIOXkRDjZBfZM5YcFV6auw3XwiqLPVZaEaVxhA59t0UOVVItcm4gc48JYA6aHhCwESpcAFRvwwPB93It6cYM5oAf/A/4YwRGgaYkp/RdK5Y+4yNKgu8LuHb/2WZ0X8stcR9fvEahNDLaW3StlK6roTabuTJudneMZfCEKzhH2z5bnsdF9Q3opYkvQZ9ocNMZGIiUH7oRcpW8daCTlxtpAAzqA9b5jPudmKqB6tl5JeeN8SEbYwVpXuEHt5WWcOELESWnQQUxa9sj05PVcaqFZFX7RUXi6HPaBknCZlPMaZRCqzp3LfVYCu+KnWO8aPzo6c5elpv+SRPKLly88MFkqgBAdEEqndEn4Ag4BaW9oNuhczhdwMnt881mPZDXHVk/qNlUQHx/p6VF1Q7dbeIZWGmhEy7i+hp2PfIu/xlGeJa+wsr1BOKv9N3E8MxdMqa4gsRL2615WweIVYyLTROwflEXq4+9MlSycNdaK4Pu64Z1e2h4LCNE444Qt3Yc+HPLtvwvYExAgxTDUmZNnVYSvUUc4+0VwMUDAp0Q0FM/QJDQFU2wa3TtJmYBuQTRDuuwnh78hDKj85FZbXcZxHE0= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8H4OzWPKbKITCyxVmPlruxTcl5lSg3bvoc3icIu05d2Ot5u4+9XxG0dqHiy6?= =?us-ascii?Q?3p9HzAyt2shQOF7HCl96Z9oHFmmukVByuUtB4T/SiNj1ds6h1HFPfWTDdtlk?= =?us-ascii?Q?wBbdyqpSr8vCPoB1zbhsW3eBdgkcwcQJcakpI8PoQ6C1XlbC6OlB8szn13XU?= =?us-ascii?Q?7Ahbxw1pArNAdXRMZXWpDPZQJ5l24yOP1QBobuva2cv4hG8C8qPkJaev0ECj?= =?us-ascii?Q?p4SDkWjXJZnFutsdk44yBDxhCTimmTKxz4UYpPXHsISn2Soef8ZG7QV3892i?= =?us-ascii?Q?YaabNoXXjWx7vL3sL+b79aQd4JndRTFyxUofnRT/ZO/Oh9PyUVg+6FCQSbIm?= =?us-ascii?Q?Z/6N66gGALQx9d2WXiuPSRmwHo7I52iYuecnT3LqDJoQFNmUOrGCxvjzhvge?= =?us-ascii?Q?tH5zv7No3Lq3J6+5eWYbf5TSIRNdKlTe56ybkC9cD6bfo1p1xItYynOgS5ca?= =?us-ascii?Q?i8kwbB3t82bMkbmtVFgAgOq0AYRjFIOjY1MlM1Gvbw77JbU16XZ+04UO5yTt?= =?us-ascii?Q?Buw0zp8qj8u1Nr+QqHujFMrhUpD0pmr/gWa8O4Kyt5EZWeY2RxlFfeVdIX0U?= =?us-ascii?Q?wpBr+MXRQ16py5p5hfdyc6xey+64gG+o8eor06ENzMdmky0fkloLM3aLnmuB?= =?us-ascii?Q?mp40Uq7PYKL5iti1X0aKQGqSDIvETbZqMSgiobdainpWGKwVZ3QEkRGvOdBo?= =?us-ascii?Q?6xaFM+L08prGKETbdg0Q6dQJ11tVIcW+a45AYSheBKOvyVAZilbQz73kYPO7?= =?us-ascii?Q?bFLpsp5DFatQ/JXW84VPAgLSw+54FrK5MXsZBXzM7UNug88GUdsDxS3rUd5D?= =?us-ascii?Q?Zmr9kd4qgaA9TaToiXN72bzJeFQ1uGN+F0YA21FFeTQmlAupY4+aLSt7a9ZS?= =?us-ascii?Q?8I1qfCyVXPBt4vvzTyVwRNPG2ufVZCIh6XXFt0uKeIVkZMgWem93JAhGuzXX?= =?us-ascii?Q?6oJyzZ22R4YfSI3Q9OEj66yspitA2ryYMWbM4ljzQPg3fqJessjInHWcyScS?= =?us-ascii?Q?v6lksiPLjgQXk8hS+qVOPRUNAn7DtcUo//QPqiRItnyCIwRxGs33BNoeJKj4?= =?us-ascii?Q?aWalJwjTaTki+GZwq/D4M2ISoclLnoCI18V4jlOOUrL4sHdgEJkCZ36hjpcn?= =?us-ascii?Q?7aKHTj6VpYdQc4WlseK7GsJ4ajhgRQGjpCAxsYkAAAJkoYyjVpV9Ufay6q1w?= =?us-ascii?Q?CDNbKGfoSN1Jpxw9w/y1MqfBgup0/XcfeH44Z0QNkTg2V++hY9bqwXx6lSof?= =?us-ascii?Q?CPJmnjyRanPEJPA2oXluTH3ac02BW2gDdOvOSEUEk2Zf3l4Nk2YMvpCCChXM?= =?us-ascii?Q?u7AY1D+CFfGK6UsvSrkLuUjRt0aRWnSisZ11HioBjVSor+jf3u+2dEbxBvHN?= =?us-ascii?Q?C7TnonAPSVYmxsF0r4iE8ZNSh5jepg9oy1Grql6yW5KFzbR6ozN/pyxyV+A7?= =?us-ascii?Q?2Ce0/o2IF4BNbW6/C+TFcDBrAlNIU8L+e96KLSZERfjyltJjSXuAV/BBlKCI?= =?us-ascii?Q?1jZcg5qlHlo0CAp1rVGWqE/buUgKnXy8+7pAzahVn05aRplXzc3suhGhmE1F?= =?us-ascii?Q?T3vmC7Bhey6xNt5FKBg8GaEP6EjtQaLtPTjdFnjN?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: IA1PR11MB6324.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5f029d7-3d59-4be9-3121-08dc5abf01b5 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2024 07:05:59.3091 (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: z7nXsWum/b4UeVzGx6l7TqSn9ryXbPH4rXA40+t2hvMJLAIf3/r0VWlbfGyUBUr/AKWR9Gj7s80dnFBC4t5riA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR11MB6210 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 Resent-Date: Fri, 12 Apr 2024 00:06:02 -0700 Resent-From: cindyx.kuo@intel.com Reply-To: devel@edk2.groups.io,cindyx.kuo@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ACeNrqQoQSQvwDZWLqVCvwbZx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b="VBfM/ENK"; 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 45.79.227.220 as permitted sender) smtp.mailfrom=bounce@groups.io Hi Jiewen, As you comment, I'll split them into two patch and upload later. And here is the test I've done for the patch. 1. Enter and exit Opal setup main menu and sub-menu disk info page, and mak= e sure no latency issue is observed. 2. Set password for Opal device and check boot successfully when unlock dev= ice with correct password. 3. Set password for Opal device and check system would force to shutdown wh= en unlock device with incorrect password and retry count exceeds the limit. Thanks, Cindy Kuo -----Original Message----- From: Yao, Jiewen =20 Sent: Friday, April 12, 2024 12:06 PM To: Chen, Tina ; Bi, Dandan ; Kuo= , CindyX ; devel@edk2.groups.io Cc: Kumar, Rahul R ; Tan, Ming ; Chen, Arthur G ; Chen, Xiao X Subject: RE: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI according to= UEFI spec Thanks to explain the background to me. I appreciate that. Also I trust Dandan's judgement as the UI expert. But my question remains: Are 2 and 3 related to UEFI spec update? IMHO, the= y are NOT required if we just want to do update for UEFI spec. If it is such case, please file a new issue, or split them into different p= atch. In each patch, please explain as clear as possible, on why it is needed. That will help reviewer or maintainer to have better understanding. Last but not least, please describe what test you have done for the patch. Thank you Yao, Jiewen > -----Original Message----- > From: Chen, Tina > Sent: Friday, April 12, 2024 11:25 AM > To: Yao, Jiewen ; Bi, Dandan=20 > ; Kuo, CindyX ;=20 > devel@edk2.groups.io > Cc: Kumar, Rahul R ; Tan, Ming=20 > ; Chen, Arthur G ; Chen,=20 > Xiao X > Subject: RE: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI=20 > according to UEFI spec >=20 > Hi JieWen, >=20 > For opalHii current design, it will display all NVME disks when the=20 > user enters TCG Drive Management dynamically. > Also, the related disk info form will be created along with the disks. > These actions will call get/set browser to refresh the display. > To meet UEFI 2.9 spec, a latency issue will be observed if the browser=20 > action changes from ACTION_FORM_OPEN to ACTION_RETRIEVE due to the=20 > current Hii browser design flow. > The NVNE disks will not be able to display when the user enters the forms= et. > (Revisit the formset can see the update.) After discussing with=20 > Dandan, came up with a solution to force reparsing the IFR binary when=20 > RETRIEVE. > That's why it needs to have additional changes besides changing the=20 > execute action only. > Thanks. >=20 > Sincerely, > Tina >=20 > -----Original Message----- > From: Yao, Jiewen > Sent: Thursday, April 11, 2024 23:45 > To: Bi, Dandan ; Kuo, CindyX=20 > ; devel@edk2.groups.io > Cc: Kumar, Rahul R ; Tan, Ming=20 > ; Chen, Arthur G ; Chen,=20 > Xiao X ; Chen, Tina > Subject: RE: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI=20 > according to UEFI spec >=20 > Hi > It seems this patch adds more change than just "update UI according to=20 > UEFI spec". >=20 > Please help me understand why we need below 2 and 3. Are you required=20 > for UEFI spec update? >=20 > > 2. Create dummy label with suppressif statement in VFR for form update = usage. > > 3. Add HiiUpdateForm() to force reparsing the IFR binary. >=20 > Thank you > Yao, Jiewen >=20 >=20 > > -----Original Message----- > > From: Bi, Dandan > > Sent: Thursday, April 11, 2024 7:15 PM > > To: Kuo, CindyX ; devel@edk2.groups.io > > Cc: Yao, Jiewen ; Kumar, Rahul R=20 > > ; Tan, Ming ; Chen,=20 > > Arthur G ; Chen, Xiao X=20 > > ; Chen, Tina > > Subject: RE: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI=20 > > according to UEFI spec > > > > Reviewed-by: Dandan Bi > > > > > > Thanks, > > Dandan > > -----Original Message----- > > From: Kuo, CindyX > > Sent: Thursday, April 11, 2024 11:11 AM > > To: devel@edk2.groups.io > > Cc: Kuo, CindyX ; Yao, Jiewen=20 > > ; Kumar, Rahul R ;=20 > > Bi, Dandan ; Tan, Ming ;=20 > > Chen, Arthur G ; Chen, Xiao X=20 > > ; Chen, Tina > > Subject: [PATCH v3] SecurityPkg/OpalPasswordDxe: Update UI according=20 > > to UEFI spec > > > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4735 > > > > Should not call HiiGetBrowserData() and HiiSetBrowserData() in=20 > > FORM_OPEN call back function. > > Those APIs are called within > > OpalHiiSetBrowserData/OpalHiiGetBrowserData > > which have been used by OpalHii.c. > > > > 1. Change callback action from FORM_OPEN to RETRIEVE. > > 2. Create dummy label with suppressif statement in VFR for form update = usage. > > 3. Add HiiUpdateForm() to force reparsing the IFR binary. > > > > Cc: Jiewen Yao > > Cc: Rahul Kumar > > Cc: Dandan Bi > > Cc: Ming Tan > > Cc: Arthur Chen > > Cc: Xiao X Chen > > Cc: Tina Chen > > Signed-off-by: CindyX Kuo > > --- > > .../Tcg/Opal/OpalPassword/OpalDriver.h | 1 + > > SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c | 84 ++++++++++++++++--- > > .../Tcg/Opal/OpalPassword/OpalHiiFormValues.h | 6 > > ++ .../Tcg/Opal/OpalPassword/OpalPasswordDxe.inf | 1 + > > .../Opal/OpalPassword/OpalPasswordForm.vfr | 8 +- > > 5 files changed, 87 insertions(+), 13 deletions(-) > > > > diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h > > b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h > > index 2089bd81b6..1a4671c602 100644 > > --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h > > +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h > > @@ -23,6 +23,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent > > > > #include > > #include > > +#include > > > > #include > > #include > > diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c > > b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c > > index 8035f44ebe..47af4fee40 100644 > > --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c > > +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c > > @@ -40,6 +40,7 @@ EFI_HII_HANDLE gHiiPackageListHandle =3D NULL; // > > const EFI_GUID gHiiPackageListGuid =3D PACKAGE_LIST_GUID; > > const EFI_GUID gHiiSetupVariableGuid =3D SETUP_VARIABLE_GUID; > > +const EFI_GUID gOpalSetupFormSetGuid =3D SETUP_FORMSET_GUID; > > > > // > > // Structure that contains state of the HII @@ -611,10 +612,15 @@=20 > > DriverCallback ( > > EFI_BROWSER_ACTION_REQUEST *ActionRequest > > ) > > { > > - HII_KEY HiiKey; > > - UINT8 HiiKeyId; > > - UINT32 PpRequest; > > - OPAL_DISK *OpalDisk; > > + HII_KEY HiiKey; > > + UINT8 HiiKeyId; > > + UINT32 PpRequest; > > + OPAL_DISK *OpalDisk; > > + EFI_STATUS Status; > > + VOID *StartOpCodeHandle; > > + VOID *EndOpCodeHandle; > > + EFI_IFR_GUID_LABEL *StartLabel; > > + EFI_IFR_GUID_LABEL *EndLabel; > > > > if (ActionRequest !=3D NULL) { > > *ActionRequest =3D EFI_BROWSER_ACTION_REQUEST_NONE; @@ -632,15 > > +638,69 @@ DriverCallback ( > > HiiKey.Raw =3D QuestionId; > > HiiKeyId =3D (UINT8)HiiKey.KeyBits.Id; > > > > - if (Action =3D=3D EFI_BROWSER_ACTION_FORM_OPEN) { > > - switch (HiiKeyId) { > > - case HII_KEY_ID_VAR_SUPPORTED_DISKS: > > - DEBUG ((DEBUG_INFO, "HII_KEY_ID_VAR_SUPPORTED_DISKS\n")); > > - return HiiPopulateMainMenuForm (); > > + if (Action =3D=3D EFI_BROWSER_ACTION_RETRIEVE) { > > + if ((HiiKeyId =3D=3D HII_KEY_ID_VAR_SUPPORTED_DISKS) || (HiiKeyId= =20 > > + =3D=3D > > HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS)) { > > + // > > + // Allocate space for creation of UpdateData Buffer > > + // > > + StartOpCodeHandle =3D HiiAllocateOpCodeHandle (); > > + if (StartOpCodeHandle =3D=3D NULL) { > > + return EFI_OUT_OF_RESOURCES; > > + } > > + > > + EndOpCodeHandle =3D HiiAllocateOpCodeHandle (); > > + if (EndOpCodeHandle =3D=3D NULL) { > > + return EFI_OUT_OF_RESOURCES; > > + } > > + > > + // > > + // Create Hii Extend Label OpCode as the start opcode > > + // > > + StartLabel =3D (EFI_IFR_GUID_LABEL *)HiiCreateGuid= OpCode > > (StartOpCodeHandle, &gEfiIfrTianoGuid, NULL, sizeof=20 > > (EFI_IFR_GUID_LABEL)); > > + StartLabel->ExtendOpCode =3D EFI_IFR_EXTEND_OP_LABEL; > > + > > + // > > + // Create Hii Extend Label OpCode as the end opcode > > + // > > + EndLabel =3D (EFI_IFR_GUID_LABEL *)HiiCreateGuidOp= Code > > (EndOpCodeHandle, &gEfiIfrTianoGuid, NULL, sizeof=20 > > (EFI_IFR_GUID_LABEL)); > > + EndLabel->ExtendOpCode =3D EFI_IFR_EXTEND_OP_LABEL; > > + > > + switch (HiiKeyId) { > > + case HII_KEY_ID_VAR_SUPPORTED_DISKS: > > + DEBUG ((DEBUG_INFO, "HII_KEY_ID_VAR_SUPPORTED_DISKS\n")); > > + Status =3D HiiPopulateMainMenuForm (); > > + > > + StartLabel->Number =3D OPAL_MAIN_MENU_LABEL_START; > > + EndLabel->Number =3D OPAL_MAIN_MENU_LABEL_END; > > + HiiUpdateForm ( > > + gHiiPackageListHandle, > > + (EFI_GUID *)&gOpalSetupFormSetGuid, > > + FORMID_VALUE_MAIN_MENU, > > + StartOpCodeHandle, > > + EndOpCodeHandle > > + ); > > + break; > > + > > + case HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS: > > + DEBUG ((DEBUG_INFO, > > "HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS\n")); > > + Status =3D HiiPopulateDiskInfoForm (); > > + > > + StartLabel->Number =3D OPAL_DISK_INFO_LABEL_START; > > + EndLabel->Number =3D OPAL_DISK_INFO_LABEL_END; > > + HiiUpdateForm ( > > + gHiiPackageListHandle, > > + (EFI_GUID *)&gOpalSetupFormSetGuid, > > + FORMID_VALUE_DISK_INFO_FORM_MAIN, > > + StartOpCodeHandle, > > + EndOpCodeHandle > > + ); > > + break; > > + } > > + > > + HiiFreeOpCodeHandle (StartOpCodeHandle); > > + HiiFreeOpCodeHandle (EndOpCodeHandle); > > > > - case HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS: > > - DEBUG ((DEBUG_INFO, > > "HII_KEY_ID_VAR_SELECTED_DISK_AVAILABLE_ACTIONS\n")); > > - return HiiPopulateDiskInfoForm (); > > + return Status; > > } > > } else if (Action =3D=3D EFI_BROWSER_ACTION_CHANGING) { > > switch (HiiKeyId) { > > diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h > > b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h > > index ab6957fc6f..0e098854ba 100644 > > --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h > > +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalHiiFormValues.h > > @@ -96,6 +96,12 @@ typedef struct { > > > > #define HII_KEY(id) HII_KEY_WITH_INDEX(id, 0) > > > > +/* Label */ > > +#define OPAL_MAIN_MENU_LABEL_START 0x6100 > > +#define OPAL_MAIN_MENU_LABEL_END 0x6101 > > +#define OPAL_DISK_INFO_LABEL_START 0x6200 > > +#define OPAL_DISK_INFO_LABEL_END 0x6201 > > + > > #define PACKAGE_LIST_GUID { 0xf0308176, 0x9058, 0x4153, { 0x93,=20 > > 0x3d, 0xda, 0x2f, 0xdc, 0xc8, 0x3e, 0x44 } } > > > > /* {410483CF-F4F9-4ece-848A-1958FD31CEB7} */ diff --git=20 > > a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf > > b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf > > index 87519198c0..89e72a74bc 100644 > > --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf > > +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf > > @@ -69,6 +69,7 @@ > > [Guids] > > gEfiEndOfDxeEventGroupGuid ## CONSUMES ## Event > > gS3StorageDeviceInitListGuid ## SOMETIMES_PRODUCES = ## > > UNDEFINED > > + gEfiIfrTianoGuid ## CONSUMES > > > > [Pcd] > > gEfiSecurityPkgTokenSpaceGuid.PcdSkipOpalPasswordPrompt ##=20 > > CONSUMES diff --git=20 > > a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordForm.vfr > > b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordForm.vfr > > index f0d3e220b2..a1049686ff 100644 > > --- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordForm.vfr > > +++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordForm.vfr > > @@ -25,8 +25,11 @@ formset > > form formid =3D FORMID_VALUE_MAIN_MENU, > > title =3D STRING_TOKEN(STR_OPAL); > > > > - //CONFIG_VARIABLE(HII_KEY(HII_KEY_ID_VAR_SUPPORTED_DISKS), > > SupportedDisks, 0x0, 0xFFFF); > > suppressif TRUE; > > + label OPAL_MAIN_MENU_LABEL_START; > > + label OPAL_MAIN_MENU_LABEL_END; > > + > > + //CONFIG_VARIABLE(HII_KEY(HII_KEY_ID_VAR_SUPPORTED_DISKS), > > + SupportedDisks, 0x0, 0xFFFF); > > numeric > > name =3D SupportedDisks, > > varid =3D OpalHiiConfig.SupportedDisks, > > @@ -149,6 +152,9 @@ form formid =3D > > FORMID_VALUE_DISK_INFO_FORM_MAIN, > > title =3D STRING_TOKEN(STR_OPAL); > > > > suppressif TRUE; > > + label OPAL_DISK_INFO_LABEL_START; > > + label OPAL_DISK_INFO_LABEL_END; > > + > > numeric > > name =3D SelectedDiskAvailableActions, > > varid =3D OpalHiiConfig.SelectedDiskAvailableActions, > > -- > > 2.44.0.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 (#117643): https://edk2.groups.io/g/devel/message/117643 Mute This Topic: https://groups.io/mt/105456188/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-