From patchwork Sun Dec 3 23:08:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 120468 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3769467qgn; Sun, 3 Dec 2017 15:08:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ5mYgXgRWbCjhlX9qhGg7hEA7QB3RyHVyutdrnJ18l57Tz7SIfYYhThEPNgZMc8W0hm96w X-Received: by 10.80.221.73 with SMTP id u9mr26958306edk.162.1512342517420; Sun, 03 Dec 2017 15:08:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512342517; cv=none; d=google.com; s=arc-20160816; b=YnHlHrzP9EfOm881eav6UXlKtvL3tqVCBTbv2vL+0TmTR3auMWfMfncPa78muQMrh+ ti4a7sK/zey+vcljMaiyxDxX+p3JJEFY9uRXNomD6uCsik1+2WkUrS9s76YQNdFbi1j4 tg8KMbffEO4mMZ6ZFIOe6PXaCGdqs+aWN/yuKyljoblJ/akg7lEm6SHcLGvdONYPsIKm n8y3UNIRw+i2dF0S5v1dFK/+NPJLTz38/f7OTjd+BJQVOAbYnpyvVJ/3srhx0+1WLVgu t+euog5KPsELbqOxcvKNZL59Vwu8ecxyvIHo7I4mK1ucCvd4dd5q5SwdZxAgJ8lRlaMI rLGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=lZARcJFE1OUpjwDrwJD/SYRjVk3IjO5jWRrGJPnC2Yc=; b=VNrluLxTyqn3l8uhP7Q0eB7JjMTJhs7FxeHWKzb824jPt9w7BnlbqS1Zbu6Kf5lK/i RNp2FGbaKbBT2tU2hgOlHbiWfrjRqoWmR/ZeFcloUauwAKgrkNdmw+eXbqATiZEiZM7+ wGDmaMprRoZ5+RtNQFsFg0yN+qdRFk7m3a38d+IQgCzDn+r8YFTCShOA1u04SQ31LG0O nvJBzKVnE3gKYkXCVQkwlFsxiJPGG6Fio1BEKCt6IY5XT43VcF/LmPo0bO98C/Kx7vXO Qj5E4GE8W9X26hPh3FtsaC0JCk5X2IYTWS/US5/Vls5Ev0hzuu94Ey4fMQ1JDXJnGplX yL8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b5si9377742edc.123.2017.12.03.15.08.37; Sun, 03 Dec 2017 15:08:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id E8E10C22040; Sun, 3 Dec 2017 23:08:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 04D7EC21FA6; Sun, 3 Dec 2017 23:08:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4E0BEC21FA6; Sun, 3 Dec 2017 23:08:31 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id EDACCC21F34 for ; Sun, 3 Dec 2017 23:08:30 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A64B9AAB9; Sun, 3 Dec 2017 23:08:30 +0000 (UTC) From: Alexander Graf To: Tom Rini Date: Mon, 4 Dec 2017 00:08:30 +0100 Message-Id: <20171203230830.18187-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: Heinrich Schuchardt , "u-boot @ lists . denx . de" Subject: [U-Boot] [PULL] efi patch queue 2017-12-04 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Hi Tom, This is my current patch queue for efi. Please pull. Alex The following changes since commit 9804d88630cdb22f5f0ace05ac05942928410fd9: Merge branch 'rmobile-mx' of git://git.denx.de/u-boot-sh (2017-11-30 10:39:04 -0500) are available in the git repository at: git://github.com/agraf/u-boot.git tags/signed-efi-next for you to fetch changes up to 3bb74f9800cdc4cf10a87f2725242c2565256654: efi_loader helloworld.efi: Fix building with -Os (2017-12-01 22:31:00 +0100) ---------------------------------------------------------------- Patch queue for efi - 2017-12-04 Highlights for this release: - Dynamic EFI object creation (lists instead of static arrays) - EFI selftest improvements - Minor fixes ---------------------------------------------------------------- Alexander Graf (2): efi_loader: Fix partition offsets efi_loader helloworld.efi: Fix building with -Os Heinrich Schuchardt (64): 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 execution 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 efi_loader: capitalize EFI_LOCATE_SEARCH_TYPE values efi_selftest: test protocol management efi_loader: eliminate efi_install_protocol_interface_ext efi_loader: eliminate efi_uninstall_protocol_interface_ext efi_loader: remove unused typedef for INTN efi_loader: replace UINTN by efi_uintn_t efi_loader: consistently use efi_uintn_t in boot services efi_loader: rework efi_locate_handle efi_loader: rework efi_search_obj efi_loader: fix typo efi_install_multiple_protocol_interfaces efi_loader: debug output efi_install_protocol_interface efi_loader implement UninstallMultipleProtocolInterfaces efi_loader: efi_gop: check calloc return value efi_loader: efi_disk: check return value of calloc efi_loader: efi_net: check return value of calloc efi_loader: efi_dp_match should have const arguments efi_loader: make efi_create_handle non-static efi_loader: argument of efi_search_obj should be const efi_loader: efi_gop: use correct types for parameters efi_selftest: test for graphics output protocol efi_loader: helper functions for protocol management efi_loader: simplify efi_install_protocol_interface efi_loader: simplify efi_search efi_loader: simplify efi_uninstall_protocol_interface efi_loader: simplify efi_locate_protocol efi_loader: refactor efi_setup_loaded_image efi_loader: efi_console: use helper functions efi_loader: helloworld.c: remove superfluous include efi_loader: size of media device path node represenation efi_loader: efi_dp_str should print path not node efi_loader: fix efi_convert_device_node_to_text efi_loader: reimplement LocateDevicePath efi_selftest: test EFI_DEVICE_PATH_TO_TEXT_PROTOCOL efi_loader: efi_disk: use efi_add_protocol efi_loader: efi_net: use efi_add_protocol efi_loader: efi_gop: use efi_add_protocol efi_loader: simplify efi_open_protocol efi_loader: simplify find_obj efi_loader: manage protocols in a linked list efi_selftest: compile without special compiler flags efi_selftest: add missing line feed efi_loader: output load options in helloworld test/py: check return code of helloworld efi_loader: pass handle of loaded image efi_loader: helper function to add EFI object to list efi_loader: comments for EFI_DEVICE_PATH_TO_TEXT_PROTOCOL Jonathan Gray (1): efi_loader: initialise partition_signature memory Rob Clark (1): efi_loader: add missing breaks Stefan Roese (1): efi_loader: Exit in efi_set_bootdev() upon invalid "desc" cmd/bootefi.c | 73 ++- include/charset.h | 15 + include/efi.h | 6 +- include/efi_api.h | 48 +- include/efi_loader.h | 66 +- include/efi_selftest.h | 21 + lib/charset.c | 57 +- lib/efi_loader/Makefile | 6 +- lib/efi_loader/efi_boottime.c | 788 ++++++++++++++---------- lib/efi_loader/efi_console.c | 48 +- lib/efi_loader/efi_device_path.c | 67 +- lib/efi_loader/efi_device_path_to_text.c | 193 +++--- lib/efi_loader/efi_disk.c | 103 ++-- lib/efi_loader/efi_gop.c | 34 +- lib/efi_loader/efi_memory.c | 20 +- lib/efi_loader/efi_net.c | 31 +- lib/efi_loader/efi_watchdog.c | 89 +++ lib/efi_loader/helloworld.c | 38 +- lib/efi_selftest/Makefile | 22 +- lib/efi_selftest/efi_selftest.c | 153 ++++- lib/efi_selftest/efi_selftest_console.c | 10 + lib/efi_selftest/efi_selftest_devicepath.c | 390 ++++++++++++ lib/efi_selftest/efi_selftest_events.c | 2 +- lib/efi_selftest/efi_selftest_gop.c | 95 +++ lib/efi_selftest/efi_selftest_manageprotocols.c | 354 +++++++++++ lib/efi_selftest/efi_selftest_snp.c | 2 +- lib/efi_selftest/efi_selftest_textoutput.c | 53 ++ lib/efi_selftest/efi_selftest_tpl.c | 4 +- lib/efi_selftest/efi_selftest_util.c | 11 +- lib/efi_selftest/efi_selftest_watchdog.c | 231 +++++++ test/py/tests/test_efi_loader.py | 4 +- test/py/tests/test_efi_selftest.py | 14 +- 32 files changed, 2390 insertions(+), 658 deletions(-) create mode 100644 lib/efi_loader/efi_watchdog.c create mode 100644 lib/efi_selftest/efi_selftest_devicepath.c create mode 100644 lib/efi_selftest/efi_selftest_gop.c create mode 100644 lib/efi_selftest/efi_selftest_manageprotocols.c create mode 100644 lib/efi_selftest/efi_selftest_textoutput.c create mode 100644 lib/efi_selftest/efi_selftest_watchdog.c