From patchwork Thu Jun 14 18:22:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138606 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2454713lji; Thu, 14 Jun 2018 11:26:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLorR3y0HMG6TY1jm68FF3SkfEDObz+05NIru3Uo9snSQ95/NVIM/GScLns9U0I8L+eC0KM X-Received: by 2002:a50:fa81:: with SMTP id w1-v6mr3476203edr.312.1529000808944; Thu, 14 Jun 2018 11:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529000808; cv=none; d=google.com; s=arc-20160816; b=bU3TukilOnPzPnXABjH3Zn+VcFIqYaR+a78z2ayD+zvWFBPmOy2N/TR4WBg+42T1d+ f8kJr6yB5OnCyFUGDgr7xmNr6X7L+j+u2rSiMYdirXXMCF5/+fU6b8s0VS5M/Jz4s6cv l/ek0rhRB4FyCK/aCsMISQFxAxFwuCrHo6OUJxGP4mLsYLpizjLJIigjqkXVHFAlYm8k SE4Wbte5D5Z8h0r3BhkwK6Nk0m57nlbdwgUQ+5I2z7ofvLLs+yKJt9tWrr8JdXFIASNC RYNs6prRXg6fkA+AkSo5hxcWr9aMCk3AxjZoGgV479/UNyM0lQvp/vodjO6ymu0ND9Nx e2Uw== 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=i3VvC4lAoJGGL2K6IC1G9hZ3TrWp7Djgn9LosNDflyQ=; b=tlLbHVF8hiwPo3BaQcy3jkquL1FsI1zlxtlTZLWBQvTI0TMMJZXf/8jea377XwtGsw RNUsJovUMMrPQ58ntYs9trGVR+3Dus8h1aAIVrKMwHaNC6DmI4bcgkVUhqbLuZiidx7F POb0XTFT+BAcZcGlKMCdVHZHmmTD+2oFBRwlKFvi+MF98bHFx/8PKEZ254iA8Z1frLZr 1IDNRYEgVfJU4fTDEfbdIruUszjCpOxj9Yg4XnbmV2SQGeM7vI57hhy5tkhnUD34/B05 Y3MBVFankQ4vZW5yy6qXSFNzlI9LMOXR3StPM4WSQcwXNMS6MKQmCgXU7Vzsf5VMVLMd aO5g== 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 g12-v6si1293318edk.419.2018.06.14.11.26.48; Thu, 14 Jun 2018 11:26:48 -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 859D9C21DB3; Thu, 14 Jun 2018 18:25:40 +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 44D10C21E56; Thu, 14 Jun 2018 18:22:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 289FCC21E47; Thu, 14 Jun 2018 18:22:40 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 00CCAC21BE5 for ; Thu, 14 Jun 2018 18:22:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 99067AFB1; Thu, 14 Jun 2018 18:22:34 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 14 Jun 2018 20:22:21 +0200 Message-Id: <20180614182232.78201-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Cc: Heinrich Schuchardt , Andy Shevchenko Subject: [U-Boot] [PATCH v2 00/11] sandbox: efi_loader support 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" This patch set augments Simon's patch set for efi_loader support in sandbox[1], but follows a different memory allocation scheme. Instead of keeping U-Boot (physical) addresses in the EFI memory map, this patch set makes the EFI memory map contain host virtual (virtual) addresses. That way most logic "just works" and all EFI interfaces automatically gain sandbox awareness. With this patch set in place, I can run a good chunk of the selftest suite as well as efi binaries compiled using gnu-efi. Alex [1] https://patchwork.ozlabs.org/project/uboot/list/?series=49832 v1 -> v2: - only compile efi_add_known_memory if efi_loader is enabled - clarify address vs pointer in fs_read patch - include mapmem.h Alexander Graf (7): efi_loader: Use compiler constants for image loader efi_loader: Use map_sysmem() in bootefi command efi.h: Do not use config options efi_loader: Allow SMBIOS tables in highmem sandbox: Map host memory for efi_loader efi_loader: Disable miniapps on sandbox efi_loader: Pass address to fs_read() Heinrich Schuchardt (1): efi_loader: efi_allocate_pages is too restrictive Simon Glass (3): efi: sandbox: Add distroboot support efi: sandbox: Add relocation constants efi: sandbox: Enable EFI loader for sandbox arch/sandbox/cpu/cpu.c | 20 ++++++++++++++++++++ cmd/bootefi.c | 13 ++++++++----- include/config_distro_bootcmd.h | 13 +++++++++++++ include/efi.h | 17 ++++------------- lib/efi/Makefile | 4 ++-- lib/efi_loader/Kconfig | 2 +- lib/efi_loader/efi_file.c | 5 ++++- lib/efi_loader/efi_image_loader.c | 12 ++++++------ lib/efi_loader/efi_memory.c | 2 +- lib/efi_loader/efi_runtime.c | 12 ++++++++++++ lib/efi_loader/efi_smbios.c | 11 +++++++++-- lib/efi_selftest/Makefile | 2 +- 12 files changed, 81 insertions(+), 32 deletions(-)