WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@nicklela
Copy link
Contributor

Description

Introduce driver and library to support Redfish task service.

How This Was Tested

Build pass on RedfishClientPkg.

Introduce new library to handle Redfish message. This library associate
Redfish message to corresponding Redfish URI. When Redfish resource is
ready for provisioning, driver can get all Redfish messages associated
with this Redfish URI and add them into provision data.

Signed-off-by: Nickle Wang <[email protected]>
…tate

Introduce new library of updating Redfish task state to BMC. The interface
between host and BMC for updating Redfish task state is not defined in
industrial specification. Since this depends on platform BMC
implementation, this library is created for platform owner to handle this
part.

Signed-off-by: Nickle Wang <[email protected]>
@nicklela nicklela self-assigned this Oct 24, 2024
@nicklela nicklela force-pushed the redfish-task-support branch from 72422bd to 269641a Compare October 24, 2024 07:42
Add new library to read Redfish protocol feature attribute. Redfish
feature driver calls this library to get protocol feature support
on BMC.

Signed-off-by: Nickle Wang <[email protected]>
@nicklela nicklela force-pushed the redfish-task-support branch 2 times, most recently from fecbecc to 62a3d74 Compare October 24, 2024 12:28
… task

Introduce new driver to handle Redfish task service. This driver reads
Redfish task service and dispatch task to registered Redfish driver. When
Redfish driver is done with his job, this driver helps to return task
result back to BMC.

Signed-off-by: Nickle Wang <[email protected]>
Add special handing for Redfish task service because task needs
to be called before Redfish feature driver. The request from Redfish
task may change the BIOS configuration so it has to be handled first.

Signed-off-by: Nickle Wang <[email protected]>
Enable Redfish task support by adding RedfishTaskDxe driver,
Redfish message library and Redfish task library to
RedfishClientPkg.

Signed-off-by: Nickle Wang <[email protected]>
@nicklela nicklela force-pushed the redfish-task-support branch from 62a3d74 to 5881f20 Compare October 24, 2024 13:25
while (!IsNull (&Private->RegisteredList, Node)) {
Entry = REDFISH_TASK_REGISTERED_ENTRY_FROM_LIST (Node);

if ((StrCmp (Entry->ListenUri, Uri) == 0) && (Entry->Context == Context)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to check Context value at first?

JsonValueFree (TaskCollection);
}

return Status;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicklela, there is a compilation warning:

RedfishClientPkg/RedfishTaskServiceDxe/RedfishTaskServiceDxe.c:496:10: error: 'Status' may be used uninitialized in this function [-Werror=maybe-uninitialized]
return Status;
^~~~~~
cc1: all warnings being treated as errors.

@nicklela nicklela marked this pull request as draft January 22, 2025 23:49
@nicklela
Copy link
Contributor Author

I need more time to create flow diagram and explain how Redfish task works. So I convert this pull request to draft for now.

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.

2 participants