Skip to content

system: add EFI variable validation testcase#432

Open
smuppand wants to merge 1 commit intoqualcomm-linux:mainfrom
smuppand:logger
Open

system: add EFI variable validation testcase#432
smuppand wants to merge 1 commit intoqualcomm-linux:mainfrom
smuppand:logger

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

This PR adds a new System testcase for EFI variable validation.

Why this PR is needed:
Having EFI-related kernel config enabled is not enough by itself to prove that EFI runtime functionality is working correctly on target. We also need to validate the actual efivar runtime path and confirm that EFI variables can be enumerated, written, and read back with the expected attributes and values.

What this PR adds:

  • a new System testcase under Runner/suites/System/EFI_Variable_Validation
  • EFI kernel config validation for:
    • CONFIG_EFI=y
    • CONFIG_EFI_ESRT=y
    • CONFIG_EFIVAR_FS=y
  • EFI runtime path checks for:
    • /sys/firmware/efi
    • /sys/firmware/efi/efivars
  • efivar enumeration validation using efivar -l
  • write and readback validation for:
    • 8be4df61-93ca-11d2-aa0d-00e098032b8c-OsTrialBootStatus
  • attribute and value validation for:
    • OsTrialBootStatus
    • OsIndicationsSupported

Why this is useful:
This helps catch regressions where EFI support appears enabled in kernel config but the runtime EFI variable service is not working correctly. It also validates that the expected UEFI variable attributes and payloads are reflected correctly on target, which is important for platform bring-up, firmware integration, and runtime EFI validation.

Add a System testcase to validate EFI kernel config, efivar runtime availability, OsTrialBootStatus write and readback, and OsIndicationsSupported attribute and value checks.

This helps catch regressions where EFI support is enabled in kernel config but EFI variable access or expected UEFI variable behavior is not functioning correctly on target.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant