UEFI Capsule flag check for ScatterGatherList #11669
Unanswered
davidhuziji
asked this question in
Q&A
Replies: 1 comment
-
|
I assume the edk2 code is incomplete and/or use case isn't supported. In the platforms I build we do not use this type of capsule. Using CAPSULE_FLAGS_POPULATE_SYSTEM_TABLE is not something I have seen used for anything other than a platform defined use case. Capsules for 3rd party (not tightly coupled with motherboard builder/UEFI author) is not something with clear guidelines. FMP and ESRT has some mention of how it "could" work with option rom/3rd party, but I don't know of widespread usage. If a capsule needs to be persisted across reset in system memory I would expect the ScatterGatherList is needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Sorry if it is a dumb question.
I'm quite confused by the descriptions of
ScatterGatherListin UEFI spec. When I check EDK2 code as a reference, I notice that EDK2 and EDK2-test implement 2 different behaviors to validateScatterGatherList.ScatterGatherListshall not be NULL as long asCAPSULE_FLAGS_PERSIST_ACROSS_RESETis set: https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c#L175CAPSULE_FLAGS_PERSIST_ACROSS_RESETandCAPSULE_FLAGS_POPULATE_SYSTEM_TABLEare set to perform the same validation: https://github.com/tianocore/edk2-test/blob/master/uefi-sct/SctPkg/TestCase/UEFI/EFI/RuntimeServices/MiscRuntimeServices/BlackBoxTest/MiscRuntimeServicesBBTestConformance.c#L124Can I ask for clarity about setting which flag(s) suggest that
ScatterGatherListshall not be NULL?Is
ScatterGatherListalso used in UEFI capsule update whenCAPSULE_FLAGS_POPULATE_SYSTEM_TABLEis not set?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions