From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=217.140.101.70; helo=foss.arm.com; envelope-from=sughosh.ganu@arm.com; receiver=edk2-devel@lists.01.org Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by ml01.01.org (Postfix) with ESMTP id DDDDF21195BD1 for ; Tue, 27 Nov 2018 02:44:08 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7E9C232F4; Tue, 27 Nov 2018 02:44:08 -0800 (PST) Received: from usa.arm.com (a074948-lin.blr.arm.com [10.162.4.56]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E52E03F575; Tue, 27 Nov 2018 02:44:06 -0800 (PST) From: Sughosh Ganu To: edk2-devel@lists.01.org, Ard Biesheuvel , Leif Lindholm , Achin Gupta Date: Tue, 27 Nov 2018 16:13:52 +0530 Message-Id: <1543315437-17774-1-git-send-email-sughosh.ganu@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH v5 0/5] ArmPkg related changes for StandaloneMM package 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: , X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 X-List-Received-Date: Tue, 27 Nov 2018 10:44:09 -0000 Changes since v4: Based on comments from Ard - Removed now superfluous call to FreePages from MmCommunication.c - Removed Chipset/AArch64.h header file from ArmMmuStandaloneMmLib.c Changes since v3: Based on review comments from Ard, moved the MMU attribute changing functions for StandaloneMM image into a new library class. Moved the addition of memory space used as a MM_COMMUNICATE buffer to memory type 'EfiGcdMemoryTypeReserved' and removed the call to AllocatgePages. Changes since v2: Based on review comments from Ard, moved the memory attribute updation changes out of DebugPeCoffExtraActionLib into an extra action library added in StandaloneMM package. The patch for setting the memory attributes, now under StandaloneMmPkg directory, will be submitted separately from this series. Changes since v1: Handled review comments from Leif Achin Gupta (4): ArmPkg: Add PCDs needed for MM communication driver. ArmPkg/Drivers: Add EFI_MM_COMMUNICATION_PROTOCOL DXE driver. ArmPkg/Include: Add MM interface SVC return codes. ArmPkg/ArmMmuLib: Add MMU Library suitable for use in S-EL0. Sughosh Ganu (1): ArmPkg/Include: Fix the SPM version SVC ID ArmPkg/ArmPkg.dec | 4 + ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf | 56 +++ ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf => ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf | 23 +- ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h | 28 ++ ArmPkg/Include/IndustryStandard/ArmMmSvc.h | 9 +- ArmPkg/Include/Library/{ArmMmuLib.h => StandaloneMmMmuLib.h} | 38 +- ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c | 372 ++++++++++++++++++++ ArmPkg/Library/StandaloneMmMmuLib/Aarch64/ArmMmuStandaloneMmLib.c | 184 ++++++++++ 8 files changed, 669 insertions(+), 45 deletions(-) create mode 100644 ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf copy ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf => ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf (56%) create mode 100644 ArmPkg/Drivers/MmCommunicationDxe/MmCommunicate.h copy ArmPkg/Include/Library/{ArmMmuLib.h => StandaloneMmMmuLib.h} (55%) create mode 100644 ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.c create mode 100644 ArmPkg/Library/StandaloneMmMmuLib/Aarch64/ArmMmuStandaloneMmLib.c -- 2.7.4