Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp597988ybz; Fri, 24 Apr 2020 06:08:32 -0700 (PDT) X-Google-Smtp-Source: APiQypLdJzC/QfjtVzYFUU5dq899diHja/D/pxNZi5soyMa/12/FHbkJeo5ZmepVxd+gHy6eXVKY X-Received: by 2002:a50:d5c8:: with SMTP id g8mr7248948edj.370.1587733712585; Fri, 24 Apr 2020 06:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587733712; cv=none; d=google.com; s=arc-20160816; b=oSxXHw09d38gCcD4jjLW90o7nBlfatoaMDuav67mu2aqbayebpSwX3tds+/3QtGdUM SAVv7FO9xXl22XaXjeYV8DUVnmbIkiwY3tV83Dr8e8cnKrUgwWNh/tzzx3m8QKMi6tEC E0dy3rZjSFpwseOG3hG2tYihQfN4jVsTKVHZSsKC9haSJspxa5qA4F2uJHcsXf68nDyQ 6XaX3CG9g7pTwhgmX5RsI5iAxtzYSr2mVzkFS1V8TLwyPRIME4XoPCiSm9mLiPxLufAr eU9/sPjV/v4uUqQsnn2QB6OfIb6XH78oqSmWaUdhs2Q5uFe61oUm9Tk2l3JzgJ1rCjI5 +b8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=mbbnkTqlACt47J9a9iCynmXnQLUTBswJ/cwyKwh93R8=; b=X+rnAHSxDFDM0UeAE6fmb3HPAhKnqBIdMdf0MCQMKijqP6jzV2kuu/Pt31cWmjegMY ZASRDBnDRQJ4ixsiAlR1Z3lv5slS3EhPp7pVw6jeA+Ko4FPly5B5qnDPB94EPCxYR1OL lU/CN6bvXBj9Zc09f7qoF5L29HErGS7cVQKGH0qfbFs9X7kuCB44+RqxDQuFjrtHZqeo pvsCnCVLNuFFrsAaa6ZJo7Dp3ANrAU+JdZYpk2FW+I55PKgR++g4jMJgDr0iOQ62U6G0 C7IdRCLbbjEhzTjDsV/OqntQfmkvpRCFX5L6+HnpdQe5knVMZKN5FcOEjPgSbJ5hxVfQ A+wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mt2kNDVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si3012949ejt.100.2020.04.24.06.08.00; Fri, 24 Apr 2020 06:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mt2kNDVx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbgDXNGN (ORCPT + 99 others); Fri, 24 Apr 2020 09:06:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:56458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgDXNGN (ORCPT ); Fri, 24 Apr 2020 09:06:13 -0400 Received: from e123331-lin.home (amontpellier-657-1-18-247.w109-210.abo.wanadoo.fr [109.210.65.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F317B20728; Fri, 24 Apr 2020 13:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587733572; bh=MGfaKuTdiHMWXthLJG7QjKnDtjDnpF4Sbmv1jSHLBaw=; h=From:To:Cc:Subject:Date:From; b=mt2kNDVx0/Zn5SRqp6TTuvYKiha8u0LKNG4C0Mm81Hj/xmd4c+ipnN1bI8I9d/qOb L2eCkuDsXWm0krlV9vsSHbdia8h5wNwC35oKuuoSVq2yKgkghNaMw5cs9xqX7KALd4 fv8J3CzfLL+l4brN8mLPIPSxQIZwcGLe3r+DSrMk= From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Arvind Sankar , Atish Patra , Palmer Dabbelt , Zou Wei Subject: [GIT PULL 00/33] EFI updates for v5.8 Date: Fri, 24 Apr 2020 15:04:58 +0200 Message-Id: <20200424130531.30518-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ingo, Thomas, Please pull the attached changes into tip/efi/next. There is some coordination going on with the RISC-V tree this time, so please take the patches in this exact order, and apply them onto v5.7-rc2 so the first three patches can serve as a shared stable base between the efi/core branch and the riscv tree. The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936: Linux 5.7-rc2 (2020-04-19 14:35:30 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git tags/efi-next for you to fetch changes up to 4eb8320bd1aaa7e69d039f2c251735e3ef0b9a38: efi: Move arch_tables check to caller (2020-04-24 14:52:16 +0200) ---------------------------------------------------------------- EFI changes for v5.8: - preliminary changes for RISC-V - add support for setting the resolution on the EFI framebuffer - simplify kernel image loading for arm64 - Move .bss into .data via the linker script instead of relying on symbol annotations. - Get rid of __pure getters to access global variables - Clean up the config table matching arrays ---------------------------------------------------------------- Ard Biesheuvel (14): efi/libstub: Make initrd file loader configurable efi/libstub: Unify EFI call wrappers for non-x86 efi/libstub/random: Align allocate size to EFI_ALLOC_ALIGN efi/libstub/random: Increase random alloc granularity efi/libstub/arm64: Replace 'preferred' offset with alignment check efi/libstub/arm64: Simplify randomized loading of kernel image efi/libstub: Add API function to allocate aligned memory efi/libstub/arm64: Switch to ordinary page allocator for kernel image efi/libstub: Move efi_relocate_kernel() into separate source file efi/libstub: Drop __pure getter for efi_system_table efi/libstub: Drop __pure getters for EFI stub options efi/libstub/x86: Avoid getter function for efi_is64 efi: Clean up config table description arrays efi: Move arch_tables check to caller Arvind Sankar (17): efi/gop: Remove redundant current_fb_base efi/gop: Move check for framebuffer before con_out efi/gop: Get mode information outside the loop efi/gop: Factor out locating the gop into a function efi/gop: Slightly re-arrange logic of find_gop efi/gop: Move variable declarations into loop block efi/gop: Use helper macros for populating lfb_base efi/gop: Use helper macros for find_bits efi/gop: Remove unreachable code from setup_pixel_info efi/gop: Add prototypes for query_mode and set_mode efi/gop: Allow specifying mode number on command line efi/gop: Allow specifying mode by x efi/gop: Allow specifying depth as well as resolution efi/gop: Allow automatically choosing the best mode efi/arm: Remove __efistub_global annotation efi/x86: Remove __efistub_global and add relocation check efi: Kill __efistub_global Atish Patra (1): efi/libstub: Move arm-stub to a common file Zou Wei (1): efi/libstub/arm: Make install_memreserve_table static Documentation/fb/efifb.rst | 33 +- arch/arm/Kconfig | 2 +- arch/arm/boot/compressed/vmlinux.lds.S | 2 +- arch/arm/include/asm/efi.h | 8 - arch/arm64/Kconfig | 2 +- arch/arm64/include/asm/efi.h | 8 - arch/ia64/kernel/efi.c | 12 +- arch/x86/boot/compressed/vmlinux.lds.S | 1 + arch/x86/include/asm/efi.h | 29 +- arch/x86/platform/efi/efi.c | 8 +- drivers/firmware/efi/Kconfig | 15 +- drivers/firmware/efi/arm-init.c | 4 +- drivers/firmware/efi/efi.c | 44 +- drivers/firmware/efi/libstub/Makefile | 42 +- drivers/firmware/efi/libstub/alignedmem.c | 57 +++ drivers/firmware/efi/libstub/arm64-stub.c | 94 ++-- drivers/firmware/efi/libstub/efi-stub-helper.c | 47 +- .../efi/libstub/{arm-stub.c => efi-stub.c} | 23 +- drivers/firmware/efi/libstub/efistub.h | 96 ++-- drivers/firmware/efi/libstub/fdt.c | 8 +- drivers/firmware/efi/libstub/file.c | 34 +- drivers/firmware/efi/libstub/gop.c | 492 ++++++++++++++++----- drivers/firmware/efi/libstub/mem.c | 191 +------- drivers/firmware/efi/libstub/randomalloc.c | 6 +- drivers/firmware/efi/libstub/relocate.c | 174 ++++++++ drivers/firmware/efi/libstub/x86-stub.c | 35 +- include/linux/efi.h | 2 +- 27 files changed, 895 insertions(+), 574 deletions(-) create mode 100644 drivers/firmware/efi/libstub/alignedmem.c rename drivers/firmware/efi/libstub/{arm-stub.c => efi-stub.c} (96%) create mode 100644 drivers/firmware/efi/libstub/relocate.c