[edk2-devel] [PATCH] RedfishPkg/RedfishDebugLib: add new interfaces

2023-07-04 Thread Nickle Wang via groups.io
Introduce DumpHiiStatementValue() and DumpRedfishValue() to RedfishDebugLib. Application uses these functions to debug print the value of HII_STATEMENT_VALUE and EDKII_REDFISH_VALUE. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- RedfishPkg/Include/Library/RedfishDebugLib.

[edk2-devel] [PATCH v2 1/3] RedfishPkg/RedfishRestExDxe: fix CPU exception in RedfishRestExDxe

2023-07-04 Thread Nickle Wang via groups.io
RedfishRestExDxe driver failed to uninstall service binding protocol when driver binding stop is called. Application drivers may still use RedfishRestExDxe after it is disconnected in system. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Reviewed-by: Abner Ch

[edk2-devel] [PATCH v2 2/3] RedfishPkg/RedfishPlatformConfigDxe: hide debug message

2023-07-04 Thread Nickle Wang via groups.io
Change debug message level of showing ordered list op-code to REDFISH_PLATFORM_CONFIG_DEBUG. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../RedfishPlatformConfigDxe.h| 2 +- .../RedfishPlatformConfigDxe.c| 24 +

[edk2-devel] [PATCH v2 3/3] RedfishPkg/JsonLib: add object clear interface

2023-07-04 Thread Nickle Wang via groups.io
-Add JsonObjectClear() interface for application to clear all elements in JSON object. -Fix typo. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Reviewed-by: Abner Chang --- RedfishPkg/Include/Library/JsonLib.h | 33 +-- RedfishPkg/Librar

Re: [edk2-devel] [PATCH v2 1/3] RedfishPkg/RedfishRestExDxe: fix CPU exception in RedfishRestExDxe

2023-07-06 Thread Nickle Wang via groups.io
with > RestExSb->RestExChildrenNum. > At first glance it appears this field must be decremented also. But I see no > usage > for RestExChildrenNum at all, may be it can be eliminated? > > Regards, > MIke. > > On Wed, Jul 5, 2023 at 9:56 AM Nickle Wang via groups.io

Re: [edk2-devel] [PATCH v2 1/3] RedfishPkg/RedfishRestExDxe: fix CPU exception in RedfishRestExDxe

2023-07-06 Thread Nickle Wang via groups.io
] > > > RedfishPkg/RedfishRestExDxe: fix > > CPU > > > exception in RedfishRestExDxe > > > > > > External email: Use caution opening links or attachments > > > > > > > > > Just one note: > > > All manipulations with this

Re: [edk2-devel] [PATCH 2/2] NetworkPkg/HttpDxe: fix driver binding start issue.

2023-07-12 Thread Nickle Wang via groups.io
> > Thanks, > > Saloni > > > > -Original Message- > > From: devel@edk2.groups.io On Behalf Of Nickle > > Wang via groups.io > > Sent: Tuesday, June 27, 2023 5:56 PM > > To: devel@edk2.groups.io; Nickle Wang > > Cc: Maciej Rabeda ; Siyua

[edk2-devel] [PATCH] RedfishPkg/RedfishRestExDxe: reset session when TCP timeout happens

2023-07-13 Thread Nickle Wang via groups.io
Call ResetHttpTslSession() to reset HTTP session when TCP timeout failure happens. So that application can perform retry to the same URI. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../RedfishRestExDxe/RedfishRestExInternal.h | 14 ++

[edk2-devel] [PATCH] RedfishPkg/RedfishCrtLib: multiple definitions of strncpy.

2023-07-22 Thread Nickle Wang via groups.io
There are two definitions for strncpy() function in RedfishCrtLib.h Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishPkg/Include/Library/RedfishCrtLib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RedfishPkg/Include/Librar

[edk2-devel] [PATCH] RedfishPkg/RedfishPlatformConfigDxe: fix can not set one-of option issue.

2023-07-22 Thread Nickle Wang via groups.io
StatementValue->Buffer is converted from ASCII to Unicode by caller already so we don't have to convert it again. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../RedfishPlatformConfigDxe/RedfishPlatformConfigDxe.c | 6 +- 1 file changed, 5 inse

[edk2-devel] [PATCH] RedfishPkg/RedfishRestExDxe: return HTTP status code to caller.

2023-07-22 Thread Nickle Wang via groups.io
Return unsupported HTTP status code to caller so caller can handle HTTP error status code. Current implementation only return EFI error to caller. Without knowing the HTTP status code, caller has trouble to handle HTTP request failure. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchyts

[edk2-devel] [PATCH] RedfishPkg/RedfishDiscoverDxe: fix netmask check issue

2023-07-24 Thread Nickle Wang via groups.io
- Add NTOHL() for coverting IP address from EFI_IPv4_ADDRESS to IP4_ADDR so that IP4_IS_VALID_NETMASK() return correct value. - Add DumpIpv4Address() in RedfishDebugLib and print IP address when invalid IP or subnet mask address is detected. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Ku

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishPlatformConfigDxe: fix can not set one-of option issue.

2023-08-02 Thread Nickle Wang via groups.io
Hi Igor, Thanks for your review. I think this is feasible. Let me try it and provide version 2 patch. Thanks, Nickle > -Original Message- > From: Igor Kulchytskyy > Sent: Monday, July 24, 2023 9:49 AM > To: Nickle Wang ; devel@edk2.groups.io > Cc: Abner Chang ; Nick Ramirez > > Subjec

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishRestExDxe: return HTTP status code to caller.

2023-08-02 Thread Nickle Wang via groups.io
> Subject: Re: [edk2-devel] [PATCH] RedfishPkg/RedfishRestExDxe: return HTTP > status code to caller. > > External email: Use caution opening links or attachments > > > On Sat, Jul 22, 2023 at 11:18 AM Nickle Wang via groups.io > wrote: > > > > Return unsupported

Re: [edk2-devel] [PATCH] RedfishPkg/RedfishCrtLib: multiple definitions of strncpy.

2023-08-02 Thread Nickle Wang via groups.io
char *). > I would suggest to remove this declaration at all. > BTW there are duplicated declaration for memcmp, memset, strncmp. > > On Sat, Jul 22, 2023 at 11:18 AM Nickle Wang via groups.io > wrote: > > > > There are two definitions for strncpy() function in Re

[edk2-devel] [PATCH] RedfishPkg: fix multiple SMBIOS type 42 version issue

2023-01-31 Thread Nickle Wang via groups.io
RedfishHostInterfaceDxe does not close protocol notify event in event callback function. This could cause multiple version of type 42 records issue if the protocol is installed more than once. Close the event in callback function so we only create one type 42 record. Signed-off-by: Nickle Wang Cc

[edk2-devel] [PATCH 1/2] RedfishPkg: fix config handler driver bug

2023-01-31 Thread Nickle Wang via groups.io
Bug fix: - function stack fault - config handler driver requires the dependency of Redfish Credential Protocol - incorrect caller id installation when failed to perform init() Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../RedfishConfigHandler/Redfi

[edk2-devel] [PATCH 2/2] RedfishPkg: Redfish discover driver improvement

2023-01-31 Thread Nickle Wang via groups.io
Bug fix: - function stack fault - properly handle "SubnetAddrInfoIPv6" when there is no IPv6 support - copy-n-paste error in RedfishGetHostInterfaceProtocolData() Enhancement: - Redfish discover driver now can configure host IP address based on the information from SMBIOS type 42 record. This sav

[edk2-devel] [PATCH 0/2] Disable TLS host verify for Redfish connection

2023-01-31 Thread Nickle Wang via groups.io
When BMC server uses self-signed certificate and BIOS can not get root CA, we need a way of disabling TLS host verify in HTTPs connection. Some tool like "curl" has this ability to NOT verify host certificate. Adding this option to HttpDxe driver helps BIOS Redfish driver to communicate with BMC

[edk2-devel] [PATCH 1/2] NetworkPkg/HttpDxe: provide function to disable TLS host verify

2023-01-31 Thread Nickle Wang via groups.io
Provide an option for caller to disable TLS host verify in HttpDxe driver. When web server uses self-signed certificate and caller has no way to get root CA from web server, caller can use this option to disable TLS host verify function. This option is similar to the "-k" option in "curl" tool. Si

[edk2-devel] [PATCH 2/2] RedfishPkg/RedfishDiscoverDxe: provide PCD to disable TLS host verify

2023-01-31 Thread Nickle Wang via groups.io
Introduce PCD PcdRedfishTlsHostVerifyDisabled to RedfishDiscoverDxe driver. Setting this PCD to true will turn off TLS host verify in HTTPS connection between host and BMC. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishPkg/RedfishPkg.dec

[edk2-devel] [PATCH 1/1] RedfishPkg/RedfishDebugLib: provide Redfish debug functions

2023-02-01 Thread Nickle Wang via groups.io
Introduce RedfishDebugLib to RedfishPkg. This library provides several debugging functions for Redfish application. Redfish drivers rely on Rest Ex protocol to communicate with BMC and the communication data may be big and complicated. Use RedfishDebugLib in RedfishRestExDxe to simplify debugging p

Re: [edk2-devel] [PATCH 1/2] NetworkPkg/HttpDxe: provide function to disable TLS host verify

2023-02-01 Thread Nickle Wang via groups.io
, Nickle Wang via groups.io wrote: > diff --git a/MdePkg/Include/Protocol/Http.h b/MdePkg/Include/Protocol/Http.h > index 28e6221593..21a782eaac 100644 > --- a/MdePkg/Include/Protocol/Http.h > +++ b/MdePkg/Include/Protocol/Http.h > @@ -6,6 +6,7 @@ > > Copyright (c) 2016 - 20

Re: [edk2-devel] [PATCH 1/2] NetworkPkg/HttpDxe: provide function to disable TLS host verify

2023-02-01 Thread Nickle Wang via groups.io
2/2023 11:06, Nickle Wang via groups.io wrote: > Thanks for catching this. To prevent the change to data structure, > would you suggest me to create new interface in EFI_HTTP_PROTOCOL and > disable TLS host verify? Adding an interface to EFI_HTTP_PROTOCOL would also break the ABI by chan

Re: [edk2-devel] [PATCH] RedfishPkg: RedfishRestExDxe: PCD introduced to disable chunked reguest

2023-02-06 Thread Nickle Wang via groups.io
Hi Igor, It seems to me that AMI copyrights header is missing in these files. Could you please check this? Thanks, Nickle -Original Message- From: Chang, Abner Sent: Sunday, February 5, 2023 12:01 AM To: devel@edk2.groups.io; ig...@ami.com Cc: Nickle Wang Subject: RE: [PATCH] Redfish

[edk2-devel] [PATCH 1/2] RedfishPkg/RedfishRestExDxe: fix driver binding stop issue.

2023-02-10 Thread Nickle Wang via groups.io
RedfishRestExDriverBindingStop() does not uninstall service binding protocol and release resource because: - RestExDestroyChildEntryInHandleBuffer() does not remove entry when NetIsInHandleBuffer() return false. So the linked list is not empty. - When NumberOfChildrenis 0, binding stop function ret

[edk2-devel] [PATCH 2/2] NetworkPkg/HttpDxe: fix driver binding start issue.

2023-02-10 Thread Nickle Wang via groups.io
When failure happens in HttpDxeStart, the error handling code release the memory buffer but it does not uninstall HTTP service bindnig protocol. As the result, application can still locate this protocol and invoke service binding fucntions in released memory pool. Signed-off-by: Nickle Wang Cc: M

[edk2-devel] [edk2-staging][PATCH] RedfishClientPkg: Add mechanism to reboot system if config is changed

2023-02-14 Thread Nickle Wang via groups.io
When system configuration is updated from RESTful interface, we need a system reboot so that the changes can be applied. Introduce PCD "PcdSystemRebootRequired" to RedfishClientPkg. RedfishFeatureUtility library will enable this flag when system config is updated. RedfishFeatureCore driver will che

[edk2-devel] [edk2-staging][PATCH v2 1/1] RedfishClientPkg: Add mechanism to reboot system if config is changed

2023-03-01 Thread Nickle Wang via groups.io
When system configuration is updated from RESTful interface, we need a system reboot so that the changes can be applied. Introduce PCD "PcdSystemRebootRequired" to RedfishClientPkg. RedfishFeatureUtility library will enable this flag when system config is updated. RedfishFeatureCore driver will che

Re: [edk2-devel] [edk2-staging][PATCH] RedfishClientPkg: Add mechanism to reboot system if config is changed

2023-03-01 Thread Nickle Wang via groups.io
Thanks for your review, Abner. Version 2 patch is sent. I also fixed uncrustify issue together. Regards, Nickle -Original Message- From: Chang, Abner Sent: Thursday, February 16, 2023 8:56 PM To: Nickle Wang ; devel@edk2.groups.io Cc: Igor Kulchytskyy ; Nick Ramirez Subject: RE: [edk2

[edk2-devel] [edk2-staging][PATCH 0/3] RedfishClientPkg: Add feature drivers

2023-03-01 Thread Nickle Wang via groups.io
Add BIOS feature driver version 1.2.0 and Computer System feature driver version 1.17.0. Move the function of handling "@Redfish.Settings" to RedfishFeatureUtilityLib because it is called multiple times in different feature drivers. The missing of FreePool() calls are fixed together. Signed-off-

[edk2-devel] [edk2-staging][PATCH 1/3] RedfishClientPkg: RedfishFeatureUtilityLib

2023-03-01 Thread Nickle Wang via groups.io
- Add new interface GetPendingSettings() to check and see if "Redfish.Settings" is in the JSON data or not. If "Redfish.Settings" is found, return the URI and the context to Redfish pending settings. - Fix missing FreePool() and uncrustify issues. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: I

[edk2-devel] [edk2-staging][PATCH 2/3] RedfishClientPkg: Add BIOS feature driver v1.2.0

2023-03-01 Thread Nickle Wang via groups.io
- Add latest BIOS schema version 1.2.0 - Follow early fix in Bios.V1_0_9.c and add fix to Bios.V1_2_0.c Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../src/Bios/Bios.V1_2_0/Bios.V1_2_0.c| 1341 + .../Features/Bios/v1_2_0/Common/

[edk2-devel] [edk2-staging][PATCH 3/3] RedfishClientPkg: Add ComputerSystem feature driver v1.17.0

2023-03-01 Thread Nickle Wang via groups.io
Add Computer System schema version 1.17.0 Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../v1_17_0/Common/ComputerSystemCommon.c | 1636 + .../v1_17_0/Common/ComputerSystemCommon.h | 29 + .../v1_17_0/Dxe/ComputerSystemDxe.c

Re: [edk2-devel] Exposing Redfish data via HII

2024-10-23 Thread Nickle Wang via groups.io
Hi tdoedline, For the UEFI Redfish design and implementation, please check below links: * Redfish foundation support: https://github.com/tianocore/edk2/tree/master/RedfishPkg * Redfish application implementation by using RedfishPkg: https://github.com/tianocore/edk2-redfish-client/tree/mai

<    1   2   3   4   5   6