Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CADF4C433E0 for ; Sun, 17 May 2020 12:10:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9151C20727 for ; Sun, 17 May 2020 12:10:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589717403; bh=auZDmc8uW6OcQB29fEJ/RnVaomBCvmNLzYuYDuMv4n8=; h=From:To:Cc:Subject:Date:List-ID:From; b=QKkhXgMBf8VpX8dGYfP7CSa9LOJNQ08iSmXVPZbCba0jo5rXwkigYAoJx9i2M5yF7 ZOHSrPAtWgzTd+1DA1aH5QUzqSp2drW8Hkap1/F/AX+AG7W7rVmVppkZxl4ienScIY COVTKzmrtYCP6KMwv9kQrPgTosNfj9NmWpz0XAFE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbgEQMKD (ORCPT ); Sun, 17 May 2020 08:10:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:41054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbgEQMKD (ORCPT ); Sun, 17 May 2020 08:10:03 -0400 Received: from e123331-lin.nice.arm.com (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 0FCC7204EC; Sun, 17 May 2020 12:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589717402; bh=auZDmc8uW6OcQB29fEJ/RnVaomBCvmNLzYuYDuMv4n8=; h=From:To:Cc:Subject:Date:From; b=OhDp4xjxAPH8UmXGt0bUrepFuOBr9FJ4zkNK/zQqlf6R0qvFgOcwan2lzTUyaxtcL yf5Cb5Joq00APMtzgpMh6B2WU4RNjzPKIBzyEKVhod/dQRw060KiAyDSJzQYht9vP4 X+KAUOuXUhCGAMjJh1Jqc8w8KHVnoSTRJD1s3hoI= From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux+pull@armlinux.org.uk Subject: [GIT PULL] ARM: simplify handover from UEFI to decompressor Date: Sun, 17 May 2020 14:09:59 +0200 Message-Id: <20200517120959.7191-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org The following changes since commit 91e4f3d37e1a932396801fc2831286353821ff23: ARM: 8972/1: boot: Obtain start of physical memory from DTB (2020-04-29 13:30:29 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git tags/pr-efi-arm-no-relocate for you to fetch changes up to ea98a6da3baf477541f8cbb036d1827e6b84ac91: ARM: decompressor: run decompressor in place if loaded via UEFI (2020-05-06 09:58:24 +0200) ---------------------------------------------------------------- Simply EFI handover to decompressor The EFI stub in the ARM kernel runs in the context of the firmware, which means it usually runs with the caches and MMU on. Currently, we relocate the zImage so it appears in the first 128 MiB, disable the MMU and caches and invoke the decompressor via its ordinary entry point. However, since we can pass the base of DRAM directly, there is no need to relocate the zImage, which also means there is no need to disable and re-enable the caches and create new page tables etc. ---------------------------------------------------------------- Ard Biesheuvel (5): ARM: decompressor: move headroom variable out of LC0 ARM: decompressor: split off _edata and stack base into separate object ARM: decompressor: defer loading of the contents of the LC0 structure ARM: decompressor: move GOT into .data for EFI enabled builds ARM: decompressor: run decompressor in place if loaded via UEFI arch/arm/boot/compressed/head.S | 91 +++++++++++++------------------ arch/arm/boot/compressed/vmlinux.lds.S | 5 ++ drivers/firmware/efi/libstub/arm32-stub.c | 45 ++------------- 3 files changed, 48 insertions(+), 93 deletions(-)