[U-Boot] [PATCH 0/11] efi_loader: implement SetWatchdogTimer

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Oct 8 04:57:24 UTC 2017


The patch series is centered on implementing the SetWatchdogTimer
boottime service. Two tests are supplied. One that checks that
resetting the watchdog timer saves from a reboot. The other
checks that the watchdog timer actually leads to a reset.
Both are covered by Python test cases.

Two bugs leading to NULL dereferening are corrected.

Additional fixes include missing comments and fixing typos.

Heinrich Schuchardt (11):
  efi_selftest: avoid dereferencing NULL in tpl test
  efi_loader: avoid NULL dereference in efi_dp_match
  efi_loader: comments for functions add missing @return
  efi_selftest: error handling in SNP test
  efi_loader: move efi_search_obj up in code
  efi_loader: implement SetWatchdogTimer
  efi_selftest: provide test for watchdog timer
  efi_selftest: allow to select a single test for exexution
  efi_selftest: test reboot by watchdog
  test/py: test reboot by EFI watchdog
  test/py: fix typo in test_efi_loader.py

 cmd/bootefi.c                            |  25 +++-
 include/efi_loader.h                     |   4 +
 include/efi_selftest.h                   |  18 +++
 lib/efi_loader/Makefile                  |   2 +-
 lib/efi_loader/efi_boottime.c            |  68 +++++----
 lib/efi_loader/efi_watchdog.c            |  59 ++++++++
 lib/efi_selftest/Makefile                |   5 +-
 lib/efi_selftest/efi_selftest.c          |  88 +++++++++++-
 lib/efi_selftest/efi_selftest_snp.c      |   9 +-
 lib/efi_selftest/efi_selftest_tpl.c      |   3 +-
 lib/efi_selftest/efi_selftest_util.c     |   9 ++
 lib/efi_selftest/efi_selftest_watchdog.c | 230 +++++++++++++++++++++++++++++++
 test/py/tests/test_efi_loader.py         |   2 +-
 test/py/tests/test_efi_selftest.py       |  11 +-
 14 files changed, 485 insertions(+), 48 deletions(-)
 create mode 100644 lib/efi_loader/efi_watchdog.c
 create mode 100644 lib/efi_selftest/efi_selftest_watchdog.c

-- 
2.14.1



More information about the U-Boot mailing list