uefirtvariable: add some information for the GetNextVariableName sub-tests
Add more information for testing the GetNextVarialbeName sub-tests.
Signed-off-by: Ivan Hu <email address hidden>
Acked-by: Keng-Yu Lin <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Colin Ian King <email address hidden>
uefi: uefirtvariable: minor code tidy up, constify and statics
Tidy up the code, make gtestguid1, gtestguid2, attributes and
variablenametest static. Remove FWTS_UNUSED(fw) from
uefirtvatiable_deinit(). Constify some function args.
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Keng-Yu Lin <email address hidden>
efiruntime: getnextvariablename update the VariableNameSize before return when get EFI_BUFFER_TOO_SMALL
The UEFI variable test on fwts, we test the getnextvariable implementation that
when EFI_BUFFER_TOO_SMALL error occurs, the VariableNameSize is updated to
reflect the size of buffer needed.
When EFI_BUFFER_TOO_SMALL error occurs, efi_runtime need to first update the the
VariableNameSize, then return error code. so move the return error code later than update code.
Signed-off-by: Ivan Hu <email address hidden>
Acked-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
dmi: dmi_decode: Add another commonly used serial number
Some newer systems that we are seeing don't seem to have the
serial number initialised properly and are set to a default
string "System Serial Number" which is meaningless. Check for this.
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Keng-Yu Lin <email address hidden>
Acked-by: Ivan Hu <email address hidden>
data: klog.json: Add in another batch of BIOS and ACPI related checks
Add another batch of BIOS and related ACPI klog scanning checks.
Some of these are more specific instances of patterns already in the
klog.json database - this provides even finer control of feeding back
some useful advice information.
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Keng-Yu Lin <email address hidden>
Acked-by: Ivan Hu <email address hidden>
acpi: acpidump: abort dumping of SLIC if length is zero
Some systems have a length specified as zero in the SLIC header
length field which means we get stuck dumping the null headers
forever. Add a check so we can break out early.
Signed-off-by: Colin Ian King <email address hidden>
Acked-by: Alex Hung <email address hidden>
Acked-by: Keng-Yu Lin <email address hidden>