From patchwork Tue Mar 5 13:32:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 159652 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4974730jad; Tue, 5 Mar 2019 05:33:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxHyBTkdmOJ9+I5cCEv8PTciHZZ0JldnZqTHS79c++n7IzCjxJ0mg9sHHsmfuSw1nZ78jKn X-Received: by 2002:a17:902:be16:: with SMTP id r22mr1257752pls.128.1551792779941; Tue, 05 Mar 2019 05:32:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551792779; cv=none; d=google.com; s=arc-20160816; b=ZGSdBS8waCwCMe6FQEY7gUaxIHwQ/Wy56E2gU7vsqqViXh2BtHtqUheVd+sK4Ix8hd ov7SirMvhpCk6SHk9RLnzDv7gWrxybL+P2RQ/Y+45r7hHo/PkeBY9MAqMMa6wJR0MjXC tSUa048BI2UPGc3YXKzrbwbZmvh4CoL8S2hv3glo+/QSFjS3h9VM7/dptCju9MfhY5BA ozT78JOOVJUB8udxxUc2hPRbR7iJmBDN/LhPQ8Bgaz0jE3Eth+sLcRbpCr/ioZzwMbjZ WNXpeRvoOC0E67rCVLvb7Luo9sNEbKbEFCpqAOZ3p7wRwwchNe3G7NFQbZ6zfznWvPAe IoZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=wPUq1+0ZE1uAFUG96bkZOJVvtMxbUEwNqbRaMIjzlWg=; b=PCRxR34z3n/yFMqk44UPUC8AEiO6OG5kXfQnh/H5sAqcqhSm0jfSiiLu6jQLNIeTfT U42ekPocAR2BFtYWnbcSz3rfVgB2JcofbNEJteXlnKns1Q3BhZoo9Xjok5f+z5j2Elgc wXgQ1xBAnUPYcMNLALFHX3g8az5xo5ITksZ3lMxY4+EzEHj56be5P5LeOpjzsHqhPcbr AD4q8Bs/wmmsTwFUFyL8z3toLAIw57uunHBgOLpNZ01PfhIIPzHq0K/H6/Mo+HDcqx2s 46B5UFy9agTgd54QfkeuCr0reVv9Xs2M/NYsHR7SJkbtq8P9NWd2/pYLIHGuKx3/8/Uf De+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XCTs0T0p; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id q61si8450608plb.49.2019.03.05.05.32.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 05:32:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XCTs0T0p; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DD576211D5047; Tue, 5 Mar 2019 05:32:58 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::32a; helo=mail-wm1-x32a.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 72245211D3917 for ; Tue, 5 Mar 2019 05:32:57 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id n19so2582106wmi.1 for ; Tue, 05 Mar 2019 05:32:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BzqG4j8LzINia76NKgjl5qzmPYWJcmPSAU22Y5SuM1I=; b=XCTs0T0p+TjVC0+cDGQwPJMsQzHX6YkrwGmdGBGTUmZ9NO5Fs62NvMnz8dz5uYROdY 5ZZDhhXrDqfHyUkXxJeBfZFIGfVhY3Bv+J0P2jkEVW+yZerHcCc5n4uWVUKNxsvkkrIM tHU2fRryeIgGPpshaqqugLMjV5RPv79864pysRJF5od1nqTSCQNKlhJc9Qqjt0iPhDNX PwJIj7WuBrclFGWhOnJq2RjtQSrqV35O22KwEPNW5m8UVqc+OCyvb03fouVEPoXcdRnp PC02TSbqBAsIQ5gWNiKAvxv7SC6cCVB52wdn59sqPPzICVHzwfLxYpw0u2CDoZNMmlb3 qvXw== 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:mime-version :content-transfer-encoding; bh=BzqG4j8LzINia76NKgjl5qzmPYWJcmPSAU22Y5SuM1I=; b=Qe2VqwJm8k83zA8rMrgYrqa221C27D48F39iCUeHv8DgwDWk3rcY8SgUeNE5HMnXjN R3yohxKJvqqD21Ti8WxJz0DhZzwaUxX7eWIUeX3ebDBeaCvgMpDXsgKUWuYobja3ZMsg zF3J1qPmjZEHcJFOGPi0kaR0AitjJ0jy4muZ8oaC6cBDGKkt04aAV7Y8Qou3VoNAGbpe TWZQVbTfW5b4+n8tG6C3yZorh04/bC+Rzy+tiT77BncyEMcQwP5iUda4ga0a70FDpyTn LtW5YaAhKNFmm4SdPCnjL/PoM53nE2WzS31SGlZi6zflBUTtl8zooHGWepHS+kQog2UR vyRw== X-Gm-Message-State: APjAAAWbx0qUGDTn9g63lAFQiry2aAXdwz5NKKpfH4fkGqACQR7V3D58 iW7HiHObQdZC4Ya6goKZnk9JrrwoU/s= X-Received: by 2002:a1c:c90b:: with SMTP id f11mr2756828wmb.61.1551792774803; Tue, 05 Mar 2019 05:32:54 -0800 (PST) Received: from localhost.localdomain (aputeaux-684-1-18-114.w90-86.abo.wanadoo.fr. [90.86.221.114]) by smtp.gmail.com with ESMTPSA id i4sm8370097wrw.19.2019.03.05.05.32.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 05:32:53 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Tue, 5 Mar 2019 14:32:38 +0100 Message-Id: <20190305133248.4828-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [edk2] [PATCH 00/10] StandaloneMmPkg, ArmPkg: cleanups and improvements X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiewen Yao Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This series is a further cleanup of the StandaloneMmPkg infrastructure used to implement UEFI secure boot on ARM systems. The first 5 patches are simple cleanups. Patch #6 adds support for dispatching a compressed firmware volume in the standalone MM context, so that all drivers except the core can be delivered in an encapsulated compressed FV, which saves quite some space. Patch #7 modifies the driver dispatch logic in the MM context so that the dispatcher continues until all drivers are dispatched, rather than waiting for a nudge from the non-secure side once the CPU driver has been loaded. Patch #8 removes support for the FV dispatch MM call. Patch #9 removes support for legacy boot handling. Patch #10 implements relaying architected PI events from DXE into MM by the MM communicate driver. Cc: Achin Gupta Cc: Supreeth Venkatesh Cc: Jiewen Yao Cc: Leif Lindholm Cc: Jagadeesh Ujja Ard Biesheuvel (10): StandaloneMmPkg: drop redundant definition of gEfiMmConfigurationProtocolGuid StandaloneMmPkg: drop unused PCD PcdStandaloneMmEnable StandaloneMmPkg: switch to NULL DebugLib resolution StandaloneMmPkg: remove redundant StandaloneMmDriverEntryPoint driver StandaloneMmPkg/StandaloneMmCoreEntryPoint: drop explicit SerialPortLib call StandaloneMmPkg/Core: permit encapsulated firmware volumes StandaloneMmPkg/Core: dispatch all drivers at init time StandaloneMmPkg/Core: drop support for dispatching FVs into MM StandaloneMmPkg/Core: remove legacy boot support ArmPkg/MmCommunicationDxe: signal architected PI events into MM context StandaloneMmPkg/StandaloneMmPkg.dec | 6 - StandaloneMmPkg/StandaloneMmPkg.dsc | 14 +- ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf | 5 + StandaloneMmPkg/Core/StandaloneMmCore.inf | 1 + StandaloneMmPkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf | 41 ------ StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf | 3 - StandaloneMmPkg/Core/StandaloneMmCore.h | 44 ------- ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c | 47 ++++++- StandaloneMmPkg/Core/Dispatcher.c | 138 -------------------- StandaloneMmPkg/Core/FwVol.c | 99 ++++++++++++-- StandaloneMmPkg/Core/StandaloneMmCore.c | 126 +++++------------- StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c | 3 - StandaloneMmPkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.c | 99 -------------- 13 files changed, 175 insertions(+), 451 deletions(-) delete mode 100644 StandaloneMmPkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf delete mode 100644 StandaloneMmPkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.c -- 2.20.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel