[U-Boot] [PATCH v4 00/18] efi_loader: implement SetWatchdogTimer

Heinrich Schuchardt xypron.glpk at gmx.de
Wed Oct 18 16:13:02 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.

A test for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.setattribute is supplied.

Additional fixes include missing comments and fixing typos.

v4:
	Fix build flags for efi_selftest_textoutput.c
	Remove superfluous definitions in patch
	efi_selftest: allow to select a single test for exexution
	Fix indentation in
	efi_loader: consistently use efi_status_t in bootefi
v3:
	Split patches as suggested by Alex.
	Add test for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.setattribute

Heinrich Schuchardt (18):
  efi_loader: move efi_search_obj up in code
  efi_loader: implement SetWatchdogTimer
  efi_selftest: provide test for watchdog timer
  efi_loader: new function utf8_to_utf16
  efi_loader: guard against double inclusion of efi_loader.h
  efi_loader: consistently use efi_status_t in bootefi
  efi_selftest: provide a dummy device path
  efi_selftest: reformat code
  efi_selftest: efi_st_memcmp should return 0
  efi_selftest: deduplicate code
  efi_selftest: allow to select a single test for exexution
  efi_selftest: correctly cleanup after selftest
  efi_loader: use bootargs as load options
  efi_selftest: test reboot by watchdog
  test/py: test reboot by EFI watchdog
  test/py: fix typo in test_efi_loader.py
  efi_selftest: provide test for EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL
  efi_loader: set parent handle in efi_load_image

 cmd/bootefi.c                              |  56 ++++++-
 include/charset.h                          |  15 ++
 include/efi_loader.h                       |  11 +-
 include/efi_selftest.h                     |  18 +++
 lib/charset.c                              |  57 ++++++-
 lib/efi_loader/Makefile                    |   2 +-
 lib/efi_loader/efi_boottime.c              |  60 ++++----
 lib/efi_loader/efi_watchdog.c              |  89 +++++++++++
 lib/efi_selftest/Makefile                  |  10 +-
 lib/efi_selftest/efi_selftest.c            | 153 ++++++++++++++-----
 lib/efi_selftest/efi_selftest_console.c    |  10 ++
 lib/efi_selftest/efi_selftest_textoutput.c |  53 +++++++
 lib/efi_selftest/efi_selftest_util.c       |  11 +-
 lib/efi_selftest/efi_selftest_watchdog.c   | 230 +++++++++++++++++++++++++++++
 test/py/tests/test_efi_loader.py           |   2 +-
 test/py/tests/test_efi_selftest.py         |  14 +-
 16 files changed, 711 insertions(+), 80 deletions(-)
 create mode 100644 lib/efi_loader/efi_watchdog.c
 create mode 100644 lib/efi_selftest/efi_selftest_textoutput.c
 create mode 100644 lib/efi_selftest/efi_selftest_watchdog.c

-- 
2.14.2



More information about the U-Boot mailing list