Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedfishClientPkg/Feature: Default detection #96

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

nicklela
Copy link
Contributor

Description

  • Add the function to detect the condition when BIOS loads default settings. In this case, feature driver should ignore the request at BMC side since they are stale settings. And feature driver should force update default settings to BMC.
  • Code optimization for BIOS feature driver and minor bug fix.

How This Was Tested

Build pass on RedfishClinetPkg

…ition

When BIOS loads default settings and remove all variables, Redfish feature
driver should ignore stale settings on BMC and force update default
settings to BMC.

Signed-off-by: Nickle Wang <[email protected]>
When BIOS loads default settings and remove all variables, Redfish feature
driver should ignore stale settings on BMC and force update default
settings to BMC.

Code optimization:
- Only consume attributes when number of attributes is not zero.
- Only convert Bios structure to JSON data when attribute value is
changed.
- Initial variable before using it.
- Return EFI_SUCCESS when there is nothing to update and prevent
false alarm.
- In check() function, return EFI_UNSUPPORTED when there is no config
language found for this Redfish resource. And return EFI_NOT_FOUND
when there is config language found but they are missing at BMC. This
is to match the check() function description and feature driver can
understand how to handle these two case separately.

Signed-off-by: Nickle Wang <[email protected]>
@nicklela nicklela self-assigned this Aug 19, 2024
@nicklela nicklela merged commit 6201d76 into tianocore:main Aug 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants