From patchwork Mon Dec 3 19:22:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 152729 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp7192645ljp; Mon, 3 Dec 2018 11:23:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/WOnpfuPM+SPk8wNMLF8CM/joO0wz3ks5i6XfyCMJCnoB873nY23Q2MlD2oKWV33wlctpAq X-Received: by 2002:a50:ba3d:: with SMTP id g58mr15717610edc.35.1543864987187; Mon, 03 Dec 2018 11:23:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543864987; cv=none; d=google.com; s=arc-20160816; b=knXAyZUSaa22tg1lp/7Wp7tJ6rOEYCEB1kibJYCt9B8vMaE8Fm6uDMJO1iKW366Fon UGsKvK2Lvu1u9HBC0yJMbd0kGQ4sPmyzKPgddtu+1n0zXig++HqDKduCSLbaVvEZRbfT 05QwuxztXRU+YRnqWkNv8wHmoQVocNLZsb/aaAZywEakgiG1qaivEIDk1ZXhmumZUEo6 qm/C/uHa3QeWMrPrTf/hEnckiHq1O4XuEELgLz8WMCmd5Huz1Bjig3n8KA6i6Is8ViWV izBy8o+gEFXubLYpPA7pxlPLaLBOp10i6/majCFbNljPFMx4VX9eV6GDjHCT+f4li8Pi qhhQ== 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:message-id:date:to:from; bh=V5nXnIQ5YjwwjjmLkFJA5Z35MYxBe9ZnRiVYpTeaYDA=; b=EhhBAJZTXDdD2AMQdKNJKDs86fHJi1eBgD7/NgYm0UgaYBJ8xz6/TEmdolJftheXiM bw9aBljZ9D1vk6OTRuJ/SBNWQSYwhqaVM1RtG7L+1PVVe3hpIeV6tfEb8Qnkf2qd98vg fq8ubPeP8yrBrgFJnnS8Sz6RaeW8h1MR4I24DDoWz8leppIO4iIci2NqyvXMMvvqnlLI esp0A5GaEXgC84Awg+grcAabmKBMQ7TmdjJe1LZlNc3ApcXMvIEfXFLSO+36L9Y41FYy rYGARt80HbzGNgLOn82GYnwoWdllqgd1K+0N0w4JhceqmNFSUz29P26gAAxu2T5EjtDm WhGA== 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 y8si4616650edq.352.2018.12.03.11.23.06; Mon, 03 Dec 2018 11:23:07 -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 94A29C22526; Mon, 3 Dec 2018 19:23:05 +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=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED 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 CA869C222DE; Mon, 3 Dec 2018 19:23:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BB84FC222DE; Mon, 3 Dec 2018 19:23:01 +0000 (UTC) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 5E24DC2202A for ; Mon, 3 Dec 2018 19:23:01 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 015C8ACFA for ; Mon, 3 Dec 2018 19:23:00 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Mon, 3 Dec 2018 20:22:59 +0100 Message-Id: <20181203192259.46694-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Subject: [U-Boot] [PULL] efi patch queue 2018-12-03 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 952061352acfd24034e6990b6b7d32cded020c0a: drivers: rtc: correctly convert seconds to time structure (2018-12-01 18:03:14 -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 1a82b3413cb577cd52cf8a1dc22dd306e4ce0772: efi_loader: bootmgr: add load option helper functions (2018-12-03 00:17:45 +0100) ---------------------------------------------------------------- Patch queue for efi - 2018-12-03 This release is fully packed with lots of glorious improvements in UEFI land again! - Make PE images more standards compliant - Improve sandbox support - Improve correctness - Fix RISC-V execution on virt model - Honor board defined top of ram (fixes a few boards) - Imply DM USB access when distro boot is available - Code cleanups ---------------------------------------------------------------- AKASHI Takahiro (6): fs: update fs_dev_part in fs_set_blk_dev_with_part() efi_loader: add efi_dp_from_name() efi_loader: correct a function prototype of QueryCapsuleCapabilities() efi_loader: SetVirtualAddressMap() should return EFI_UNSUPPORTED efi_loader: allow device == NULL in efi_dp_from_name() efi_loader: bootmgr: add load option helper functions Alexander Graf (7): usb: Do not compile USB_STORAGE with BLK && !DM_USB distro: Imply USB_STORAGE when USB is available efi_loader: Handle RELA absolute relocations properly efi_loader: Ensure memory allocations are page aligned Revert "efi_loader: remove efi_exit_caches()" efi_loader: Reserve unaccessible memory efi_loader: Align runtime section to 64kb Bin Meng (6): efi_loader: Generate Microsoft PE format compliant images x86: efi: payload: Generate Microsoft PE format compliant image x86: efi: app: Generate Microsoft PE format compliant image pe.h: Add characteristics defines arm: efi: Generate Microsoft PE format compliant images riscv: efi: Generate Microsoft PE format compliant images Heinrich Schuchardt (36): efi_selftest: simplify lib/efi_selftest/Makefile efi_selftest: test handling of exceptions efi_loader: implement EFI_RESET_SHUTDOWN at boot time efi_loader: delete handles efi_selftest: fix typos efi_loader: typedef struct efi_object *efi_handle_t efi_loader: eliminate handle member efi_loader: rename parent to header efi_selftest: use CR LF in helloworld efi_loader: UninstallMultipleProtocolInterfaces error code efi_loader: unset CONFIG_EFI_LOADER on vf610twr efi_loader: fix typos in efi_device_path.c efi_loader: PSCI reset and shutdown efi_selftest: do not write to linker generated array efi_loader: fix typos efi_loader: do not use unsupported printf code efi_loader: memory reservation for fdt efi_loader: carving out memory reservations efi_loader: correct efi_add_known_memory() efi_loader: use u16* for UTF16 strings efi_selftest: incorrect use of bitwise or efi_loader: eliminate sandbox addresses efi_selftest: add test for memory allocation efi_selftest: building sandbox with EFI_SELFTEST efi_loader: macro efi_size_in_pages() fdt: sandbox: correct use of ${fdtcontroladdr} fdt_support: fdt reservations on the sandbox efi_loader: fix memory mapping for sandbox efi_loader: create fdt reservation before copy efi_selftest: check fdt is marked as runtime data MAINTAINERS: add EFI PAYLOAD reviewer efi_selftest: fix simple network protocol test efi_loader: correctly aligned transmit buffer efi_loader: fix simple network protocol efi_selftest: rename setup_ok doc: README.iscsi: Open-iSCSI configuration Simon Glass (5): sandbox: smbios: Update to support sandbox efi: Check for failure to create objects in selftest efi: Split out test init/uninit into functions efi: Create a function to set up for running EFI code efi: Rename bootefi_test_finish() to bootefi_run_finish() Kconfig | 1 + MAINTAINERS | 3 + arch/arm/cpu/armv7/smccc-call.S | 2 + arch/arm/cpu/armv8/Kconfig | 1 + arch/arm/cpu/armv8/fwcall.c | 52 +-- arch/arm/cpu/armv8/smccc-call.S | 2 + arch/arm/lib/crt0_aarch64_efi.S | 12 +- arch/arm/lib/crt0_arm_efi.S | 16 +- arch/riscv/lib/crt0_riscv_efi.S | 12 +- arch/x86/config.mk | 4 +- cmd/bootefi.c | 244 ++++++------ common/board_r.c | 3 +- common/fdt_support.c | 3 +- configs/vf610twr_defconfig | 2 +- configs/vf610twr_nand_defconfig | 2 +- doc/README.iscsi | 35 +- drivers/firmware/psci.c | 100 ++++- drivers/usb/Kconfig | 1 + fs/fs.c | 1 + include/asm-generic/pe.h | 18 + include/common.h | 11 + include/efi.h | 2 +- include/efi_api.h | 14 +- include/efi_loader.h | 73 +++- include/efi_selftest.h | 2 - include/linux/psci.h | 6 +- lib/Makefile | 2 +- lib/efi/efi.c | 2 +- lib/efi_loader/efi_bootmgr.c | 95 +++-- lib/efi_loader/efi_boottime.c | 191 +++++++--- lib/efi_loader/efi_console.c | 24 +- lib/efi_loader/efi_device_path.c | 75 +++- lib/efi_loader/efi_device_path_to_text.c | 8 +- lib/efi_loader/efi_disk.c | 42 +- lib/efi_loader/efi_file.c | 2 +- lib/efi_loader/efi_gop.c | 32 +- lib/efi_loader/efi_memory.c | 85 ++++- lib/efi_loader/efi_net.c | 444 ++++++++++++++++++---- lib/efi_loader/efi_runtime.c | 13 +- lib/efi_loader/efi_smbios.c | 20 +- lib/efi_loader/helloworld.c | 40 +- lib/efi_selftest/Kconfig | 2 +- lib/efi_selftest/Makefile | 12 +- lib/efi_selftest/efi_selftest.c | 31 +- lib/efi_selftest/efi_selftest_config_table.c | 12 +- lib/efi_selftest/efi_selftest_controllers.c | 2 +- lib/efi_selftest/efi_selftest_crc32.c | 4 +- lib/efi_selftest/efi_selftest_devicepath.c | 2 +- lib/efi_selftest/efi_selftest_event_groups.c | 4 +- lib/efi_selftest/efi_selftest_events.c | 2 +- lib/efi_selftest/efi_selftest_exception.c | 50 +++ lib/efi_selftest/efi_selftest_fdt.c | 2 +- lib/efi_selftest/efi_selftest_loaded_image.c | 2 +- lib/efi_selftest/efi_selftest_manageprotocols.c | 18 +- lib/efi_selftest/efi_selftest_memory.c | 187 +++++++++ lib/efi_selftest/efi_selftest_snp.c | 16 +- lib/efi_selftest/efi_selftest_textinput.c | 2 +- lib/efi_selftest/efi_selftest_tpl.c | 2 +- lib/efi_selftest/efi_selftest_unicode_collation.c | 6 +- lib/efi_selftest/efi_selftest_variables.c | 6 +- lib/efi_selftest/efi_selftest_watchdog.c | 2 +- lib/fdtdec.c | 6 +- lib/smbios.c | 52 ++- scripts/Makefile.lib | 2 +- test/py/tests/test_efi_selftest.py | 10 +- 65 files changed, 1549 insertions(+), 582 deletions(-) create mode 100644 lib/efi_selftest/efi_selftest_exception.c create mode 100644 lib/efi_selftest/efi_selftest_memory.c