From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web11.3559.1578388942484978835 for ; Tue, 07 Jan 2020 01:22:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=RozsLhd0; spf=pass (domain: linaro.org, ip: 209.85.128.65, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wm1-f65.google.com with SMTP id p17so18528794wma.1 for ; Tue, 07 Jan 2020 01:22:22 -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=bDIHuBEqbprG/xkILuZ4KqFG4GLvY5qJ1l5+Sq+iPSY=; b=RozsLhd0Tu0ssBd5ezKVp6BkVqnRCSqNmbp5cSDjc3/C8eA3YZkxEykqKOM/iaCcIf RQaStWqOAbfz/XwGhRrtG8DaUclnVmccLZ2MRAaoF3EAsRrTZypHbCtULDbT4ZPDxNBh 5+aY8gRqj1kN2PaFYsC74QCU3AsPI2mZIQZ11jf9XtbH0rku0SpW4K7jqWpOxJNtKVvQ SoM1YXFHy4tJtxHKiAIXA/0MuapDzmx8hD7V2uDypdKZQ/Gdb+FRGcYVB9h5uysNytaR oVcQPJ5n7OgoTTAy703hG9RnCKHRth3b213RLuBlCML/1lvpQnmSK0ky43bIUSOfQKSQ tImg== 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=bDIHuBEqbprG/xkILuZ4KqFG4GLvY5qJ1l5+Sq+iPSY=; b=ruW0cMIOoVJ4UMX7upiXzZtPWpc+fbv0d0G/NmpetVBMUTBtqujXp+rQg9lp+Oj/cO CHnco2ausS9KYuicmUoUhHiDshJIebbweGbjn871ZWFiM8WqdRUjYL1tasnLXe4VYu3K 3sMMX3x8VNaAiCelRoN8+u0yx+qP8SCZrWdC8Hmnv0Us843qzc5uT7bIEYBTbuTWOClI eqE5uRXrlKLsZBNXrHieAdsPVNvDuND6rCXERYzEP69xq2B5Wddjgx1XchUhvatbI4nB upvqqU86rthFOsjg5/CXImOuAUCidPNb5fTrECKdgrhVFJ5JL4MWrK0vJcFHXXibfP1x iLrg== X-Gm-Message-State: APjAAAUhxCUl9OHkeSgmNx2AmpnHyEMlxp09A32+6htyScEY2eiL1a0t eQmOW6N+dK4rj2FJ7d7eJbZ/wS3CAwLZdQ== X-Google-Smtp-Source: APXvYqwSLUEqiTip543Z91MS6qmi0Nw3zCWMJSSXrzPm8u8+3inUSmXDIxGisSYvQ/3mD9TudGhMTw== X-Received: by 2002:a1c:6406:: with SMTP id y6mr39189017wmb.144.1578388940721; Tue, 07 Jan 2020 01:22:20 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2a01:cb1d:112:6f00:cc7e:d2b6:8b0c:cb36]) by smtp.gmail.com with ESMTPSA id h66sm27445476wme.41.2020.01.07.01.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 01:22:19 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, Ard Biesheuvel Subject: [PATCH 0/2] some ARM fixes Date: Tue, 7 Jan 2020 10:22:13 +0100 Message-Id: <20200107092215.3271-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some preparatory fixes for TPM measured boot on ARM systems. Patch #1 removes EnterS3WithImmediateWake() with the associated support code from ArmSmcPsciResetSystemLib. EnterS3WithImmediateWake () is no longer being called anywhere, and will be removed from ResetSystemLib, and the support code dependencies on DXE facilities are preventing this library from being used in the PEI phase, which is needed for TPM support. Patch #2 adds the missing call to enable VFP on PrePeiCore based platforms. This is causing TPM crypto code to blow up. Ard Biesheuvel (2): ArmPkg/ArmSmcPsciResetSystemLib: remove EnterS3WithImmediateWake () ArmPlatformPkg/PrePeiCore: enable VFP at startup ArmPkg/ArmPkg.dec | 4 -- ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf | 17 ----- ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf | 1 + ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf | 1 + ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.c | 66 +------------------- ArmPlatformPkg/PrePeiCore/PrePeiCore.c | 5 ++ ArmPkg/Library/ArmSmcPsciResetSystemLib/AArch64/Reset.S | 24 ------- ArmPkg/Library/ArmSmcPsciResetSystemLib/AArch64/Reset.asm | 29 --------- ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.S | 23 ------- ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.asm | 28 --------- 10 files changed, 9 insertions(+), 189 deletions(-) delete mode 100644 ArmPkg/Library/ArmSmcPsciResetSystemLib/AArch64/Reset.S delete mode 100644 ArmPkg/Library/ArmSmcPsciResetSystemLib/AArch64/Reset.asm delete mode 100644 ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.S delete mode 100644 ArmPkg/Library/ArmSmcPsciResetSystemLib/Arm/Reset.asm -- 2.20.1