From patchwork Tue Apr 4 16:02:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 96749 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp264795qgd; Tue, 4 Apr 2017 09:06:35 -0700 (PDT) X-Received: by 10.98.89.70 with SMTP id n67mr23783920pfb.224.1491321995716; Tue, 04 Apr 2017 09:06:35 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si17917600pla.204.2017.04.04.09.06.35; Tue, 04 Apr 2017 09:06:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754806AbdDDQDP (ORCPT + 25 others); Tue, 4 Apr 2017 12:03:15 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:32995 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754552AbdDDQDN (ORCPT ); Tue, 4 Apr 2017 12:03:13 -0400 Received: by mail-wm0-f49.google.com with SMTP id x89so733622wma.0 for ; Tue, 04 Apr 2017 09:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=LprKOxcoV/jpZ4LJMGdpk5O3CGHTeok51QxLIoEpqNA=; b=E7DS3XkxgYtE23ZbolRhE7Ax6vIk00KOb4unliB522s5BXxDau/KLDjFwXam29cUe1 gyQGHTKCL26gOEnkIF7O+GqHXjqY7wJkfekj6DydLxpIRZmQ7qViJO6/RYx6Xt7QNAFq rlz6+VSPltz+KBMDDPwojZ10+QcOIpw0gjAMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LprKOxcoV/jpZ4LJMGdpk5O3CGHTeok51QxLIoEpqNA=; b=I9if+qrXo7ojdx7kDptSmxxKFvNBVVvsRRTyDrwRR1lMCgE7DdwcWQ8QBJI5U/MsMs 7nrn8c7ASlycOLe331NTOekz1UogxE+1m/R9dfRBMKbHRXzwzGOqdWcZ1boP1cSni6J+ oWJRJiwXAKqD5kJB8gcdVSHmC8ZJ33sprzoMBpwyZqIad8VsnpkVruXf7KO3zL5BRIfi CgYFv3oVYFsb330Vprkfj0G2/d4amg15jTcnkDTVTnOK0NTh2M1CIEl4XQX2w/o+O/2c YH05jxepKE9wUS+WQ3Cz94H8ZBu3zEzp0htgrxFTPC6bopDUWwHKlNsUjW185UYLrF0m Qbqg== X-Gm-Message-State: AFeK/H2JF75j76ON1aMd89FlV+tyVMsQJ4EyiKdhfdPImIDfOr0Mlnt+B50UPhw/HRoPE/H0 X-Received: by 10.28.139.195 with SMTP id n186mr16050783wmd.139.1491321786648; Tue, 04 Apr 2017 09:03:06 -0700 (PDT) Received: from localhost.localdomain ([160.163.145.113]) by smtp.gmail.com with ESMTPSA id z88sm19686465wrb.1.2017.04.04.09.03.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 09:03:05 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Andy Lutomirski , Andy Lutomirski , Baoquan He , Bhupesh Sharma , Borislav Petkov , Eugene Cohen , Evgeny Kalugin , Jeffrey Hugo , Leif Lindholm , Mark Rutland , Matt Fleming , Richard Ruigrok , Roy Franz Subject: [GIT PULL 00/12] EFI updates for v4.12 Date: Tue, 4 Apr 2017 17:02:34 +0100 Message-Id: <20170404160245.27812-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, This is what we have queued up for v4.12 so far. Please pull it so that it gets some exposure in -next before the merge window. The following changes since commit 4495c08e84729385774601b5146d51d9e5849f81: Linux 4.11-rc2 (2017-03-12 14:47:08 -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 efc491b0f06f65ea588f6591f0bc31db779e0594: ef/libstub: arm/arm64: Randomize the base of the UEFI rt services region (2017-04-02 16:36:29 +0100) ---------------------------------------------------------------- EFI changes for v4.12: - move BGRT handling to drivers/acpi so it can be shared between x86 and ARM - bring the EFI stub's initrd and FDT allocation logic in line with the latest changes to the arm64 boot protocol - some changes to the EFI stub's command line parsing routines -- share more code, fix a minor buglet and add support for the 'quiet' command line parameter on ARM/arm64 (whose EFI stub is a bit noisy by default) - randomize the virtual mapping of the UEFI runtime services on ARM/arm64 - other minor enhancements and fixes ---------------------------------------------------------------- Andy Lutomirski (1): x86/efi: Clean up efi CR3 save/restore Ard Biesheuvel (7): efi: arm-stub: Correct FDT and initrd allocation rules for arm64 efi: arm-stub: Round up FDT allocation to mapping size efi/arm32-stub: Allow boottime allocations in the vmlinux region efi/libstub: Fix harmless command line parsing bug efi/libstub: Unify command line param parsing efi/libstub: arm/arm64: Disable debug prints on 'quiet' cmdline arg ef/libstub: arm/arm64: Randomize the base of the UEFI rt services region Baoquan He (1): x86/efi: Clean up a minor mistake in code comment Bhupesh Sharma (2): x86/efi-bgrt: Move efi-bgrt handling out of arch/x86 efi: bgrt: Enable ACPI BGRT handling on arm64 Evgeny Kalugin (1): pstore: return error code (if any) from efi_pstore_write arch/arm/include/asm/efi.h | 14 +- arch/arm64/include/asm/efi.h | 24 +++- arch/arm64/kernel/acpi.c | 3 + arch/x86/include/asm/efi.h | 17 ++- arch/x86/kernel/acpi/boot.c | 6 - arch/x86/platform/efi/Makefile | 1 - arch/x86/platform/efi/efi.c | 6 +- arch/x86/platform/efi/efi_32.c | 12 +- arch/x86/platform/efi/efi_64.c | 24 ++-- drivers/acpi/Kconfig | 2 +- drivers/acpi/bgrt.c | 6 + drivers/firmware/efi/Makefile | 1 + .../platform => drivers/firmware}/efi/efi-bgrt.c | 0 drivers/firmware/efi/efi-pstore.c | 6 +- drivers/firmware/efi/libstub/arm-stub.c | 80 ++++++----- drivers/firmware/efi/libstub/arm32-stub.c | 150 ++++++++++++++++++--- drivers/firmware/efi/libstub/arm64-stub.c | 4 +- drivers/firmware/efi/libstub/efi-stub-helper.c | 32 +++-- drivers/firmware/efi/libstub/efistub.h | 9 ++ drivers/firmware/efi/libstub/fdt.c | 57 ++++---- drivers/firmware/efi/libstub/secureboot.c | 2 + include/linux/efi-bgrt.h | 5 + include/linux/efi.h | 5 +- 23 files changed, 328 insertions(+), 138 deletions(-) rename {arch/x86/platform => drivers/firmware}/efi/efi-bgrt.c (100%)