From patchwork Fri Oct 13 08:37:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 115713 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp469986qgn; Fri, 13 Oct 2017 01:37:59 -0700 (PDT) X-Google-Smtp-Source: AOwi7QC5Rt/dgDC50oxiuqk2vt7lIhQoT073gSTo1dgFpsmY3KDLfNP4ZEFxdUIB0CtbovkEO+E8 X-Received: by 10.80.145.148 with SMTP id g20mr1232843eda.140.1507883879812; Fri, 13 Oct 2017 01:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507883879; cv=none; d=google.com; s=arc-20160816; b=Qkzs7+gtA8MTkfezfut1kbIf/WlYeRkMfcOPmdN2ooUX03q8kBZwwRSsfJL20j1JU0 qh4h/QDNcX+Z3cRxEIgC20yA0x7JZ7RuS7ELPnuib+tQDSVLREx1rT7nnnUdkXiqwtFC CEXJvD7HbVF/s0fNzTjE0U5zOM4d5XvEqzgCRSyNxIy44xhAjMiIGoOW5zQu2VLuBDXT zQ0apIuWsJ1g7sH6vwWYFoPMvNqTbjIT4AUFqrlUXsXY3qnrKNoskIbLTARPC9j0bqSe cHPk2pkNcahxN4pRZZ7BE2tFf69S2iXnKVXsAHiOuoBvIDHxrMJMtn/NoGOH8lbWX2wM irhQ== 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=Aqag8u/wy3EzKOYgwnI862u2CKxMvF4UKYfcLjNdGyg=; b=cOwLMCT9Zl/SqwO9aNovNBcN7ej3iOdlQQtF2AbhysJn4WivTgycz7jqJP1e5cDs3y Hv03C+cDxzuWZelca2u3y96pCThyLE1B09RRFUBhsHO5jOHdk+GuLuzhYv/88mlTm+s6 ZveY4v/xEPp6JEm0zFJZ8+8xhDbNahAjCFIYwRQ2cQgcJMnhugukaPCWRmGD1WLntWzT uqvB5cLHdn9gzCN3IJCdGfadr92WNx1xQ1whArC2TgSC9ncoC0VSLhEhUecPUMSD1Abw SNC6Psiv3mZZW43lrmstNQlU+9vxge2SuPBtmJ0Jdxc3YJz6BojumphL0WsR3aaR7erK MbCQ== 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 j29si630570eda.5.2017.10.13.01.37.59; Fri, 13 Oct 2017 01:37:59 -0700 (PDT) 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 51AF1C21C59; Fri, 13 Oct 2017 08:37:57 +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=none 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 E2ABBC21F04; Fri, 13 Oct 2017 08:37:55 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B4595C22018; Fri, 13 Oct 2017 08:37:43 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 94F47C21F8C for ; Fri, 13 Oct 2017 08:37:39 +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 03BF0AABA; Fri, 13 Oct 2017 08:37:39 +0000 (UTC) From: Alexander Graf To: Tom Rini Date: Fri, 13 Oct 2017 10:37:37 +0200 Message-Id: <20171013083737.55163-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [U-Boot] [PULL] efi patch queue 2017-10-13 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 39dd65a059e503883dbf16d4c00ac083d15837da: sandbox: Enable btrfs support (2017-10-03 08:44:55 -0400) 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 abe994633b2ad56c5eea87c9253873f41dab477d: efi_selftest: correctly check return values (2017-10-13 10:24:22 +0200) ---------------------------------------------------------------- Patch queue for efi - 2017-10-13 This is the second batch of amazing improvements for efi_loader in 2017.11: - New self tests to verify our own code - A few bug fixes - colored text support - event and SNP improvements, should get us close to iPXE working ---------------------------------------------------------------- Heinrich Schuchardt (32): efi_loader: support 16 protocols per efi_object efi_loader: allow creating new handles efi_selftest: enable CONFIG_CMD_BOOTEFI_SELFTEST efi_selftest: use efi_st_error for all error messages efi_loader: use type bool for event states efi_selftest: make tests easier to read efi_loader: provide function comments for boot services efi_loader: replace efi_div10 by do_div efi_loader: call EFI_EXIT in efi_copy_mem, efi_set_mem efi_loader: parameters of CopyMem and SetMem efi_loader: pass GUIDs as const efi_guid_t * efi_loader: wrong type in wait_for_event efi_loader: incorrect definition of EFI_SIMPLE_NETWORK_PROTOCOL efi_loader: correct bits of receive_filters bit mask efi_loader: fill simple network protocol revision efi_loader: efi_net: hwaddr_size = 6 efi_net: return EFI_UNSUPPORTED where appropriate efi_loader: use events for efi_net_receive efi_loader: implement WaitForPacket event efi_loader: fix efi_net_get_status efi_loader: size fields in SimpleNetworkProtocol efi_loader: fill return values in SimpleNetworkProtocol efi_selftest: correct definition of efi_st_error efi_selftest: allow printing MAC addresses efi_loader: supply EFI network test efi_selftest: efi_st_memcmp return difference of bytes 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: MAX_UTF8_PER_UTF16 = 3 efi_selftest: correctly check return values Jonathan Gray (2): efi_loader: search all possible disk partitions efi_loader: don't increment part twice per loop Rob Clark (3): efi_loader: Fix disk dp's for pre-DM/legacy devices efi_loader: Add mem-mapped for fallback efi_loader: console support for color attributes cmd/bootefi.c | 23 + configs/qemu-x86_64_defconfig | 1 + configs/qemu-x86_defconfig | 1 + include/charset.h | 4 +- include/efi_api.h | 103 ++- include/efi_loader.h | 15 +- include/efi_selftest.h | 18 +- lib/efi_loader/efi_boottime.c | 788 ++++++++++++++++++++--- lib/efi_loader/efi_console.c | 29 +- lib/efi_loader/efi_device_path.c | 24 + lib/efi_loader/efi_device_path_to_text.c | 9 + lib/efi_loader/efi_disk.c | 26 +- lib/efi_loader/efi_net.c | 143 +++- lib/efi_selftest/Makefile | 8 +- lib/efi_selftest/efi_selftest.c | 37 +- lib/efi_selftest/efi_selftest_console.c | 41 +- lib/efi_selftest/efi_selftest_events.c | 84 +-- lib/efi_selftest/efi_selftest_exitbootservices.c | 46 +- lib/efi_selftest/efi_selftest_snp.c | 431 +++++++++++++ lib/efi_selftest/efi_selftest_tpl.c | 90 +-- lib/efi_selftest/efi_selftest_util.c | 25 + 21 files changed, 1688 insertions(+), 258 deletions(-) create mode 100644 lib/efi_selftest/efi_selftest_snp.c create mode 100644 lib/efi_selftest/efi_selftest_util.c