From patchwork Sun Jun 7 13:58:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 206303 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=-4.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no 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 5815BC433E0 for ; Sun, 7 Jun 2020 13:58:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3139520748 for ; Sun, 7 Jun 2020 13:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591538327; bh=kQo6hsNrluWIYjLBJA/GB7FOOAsY0HPaIOIhhqRewug=; h=From:To:Cc:Subject:Date:List-ID:From; b=VjaqfGgF3DYD83hFVzcg8ybuhJCSVnXVH9ruxTTrhwFz8a5mcPK1lr2Y3dq/hQrXk L0FiQxM38nVwkBcU67OkE40vTel33rbYfPJ5Ts2V2RnT3JsDNwAhAQ0RISlj3Ammu8 ccMFAidLDJwMf33iNQvozZtimWiHFhO8U1ruSPoE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbgFGN6q (ORCPT ); Sun, 7 Jun 2020 09:58:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51874 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgFGN6q (ORCPT ); Sun, 7 Jun 2020 09:58:46 -0400 Received: from dogfood.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 EDB3720663; Sun, 7 Jun 2020 13:58:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591538326; bh=kQo6hsNrluWIYjLBJA/GB7FOOAsY0HPaIOIhhqRewug=; h=From:To:Cc:Subject:Date:From; b=gcNyI7E60YmnU4u+cUGSDPlSjJYoQGq6+fsDZXc/TuMpkyae+98+i1MONNVIE7l+y zQuu/u9481F8XdgojaYSugyK6/2szPa4Mea9fNiSzUeqziHzYpq/Z47ElBQNyjfO6x s5oBoPXc/8zlAIEa+CQLi3U0L+UNjSaCvXehnA2A= From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, maz@kernel.org, linux@armlinux.org.uk, xypron.glpk@gmx.de, Ard Biesheuvel Subject: [PATCH v2 0/2] efi/arm: deal with HYP mode boot Date: Sun, 7 Jun 2020 15:58:32 +0200 Message-Id: <20200607135834.898294-1-ardb@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org Some changes to make booting in HYP mode via EFI more robust. Changes since v2: - Use the correct register for testing/disabling the HYP MMU - Don't pretend we're in SVC mode for the HYP+caches case, but set up a HYP exception handler for HVC instructions issued from HYP mode*** BLURB HERE *** Ard Biesheuvel (2): efi/arm: decompressor: deal with HYP mode boot gracefully efi/arm: libstub: print boot mode and MMU state at boot arch/arm/boot/compressed/head.S | 61 ++++++++++++++++++++ drivers/firmware/efi/libstub/arm32-stub.c | 11 ++++ 2 files changed, 72 insertions(+)