From nobody Mon Feb 9 23:57:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+79745+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79745+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1629783289; cv=none; d=zohomail.com; s=zohoarc; b=FtuNZyH1QiAcEs4HSsncURPAg6LMgnmR1ZIS9teH8ULKz+U/VgRDwZAquf2P8qFjq8WbJabyeZIRtDBnC8oNinqLEqvZmuJ1Rm5guB+QGYfobUtHzDk0tAbNlEzzq4EblouMOpA9xya23AbQpvRihFPzxy2a5tpDTG7e97RJhnM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629783289; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=js47UnKHpLVIDeZMM6TzHwWdm6L6hRllOvh6ObjpC94=; b=Iy8vrmwCC9E48LVPCXiW9Dp9oB5ssCJDIQoQdXkab9RHmk3FGm9Gr6gdUeVzaCw8yRNdVfMiJVeKgoSNeom++VpCvnRLZqJpwObU7N8mFXlM6ukitiuZNbRJOgLL807aKtzRzL34nzruI7JrbS9ooOvuydWch/M6pcdvnFIxEdM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+79745+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1629783289816365.02502984581963; Mon, 23 Aug 2021 22:34:49 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id amQTYY1788612xUtPK5v8Bkn; Mon, 23 Aug 2021 22:34:49 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.35646.1629783288968603943 for ; Mon, 23 Aug 2021 22:34:49 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AAF601042; Mon, 23 Aug 2021 22:34:48 -0700 (PDT) X-Received: from usa.arm.com (a077433.blr.arm.com [10.162.46.10]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7774F3F766; Mon, 23 Aug 2021 22:34:47 -0700 (PDT) From: "Omkar Anand Kulkarni" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [edk2-platforms][PATCH v3 4/5] EmbeddedPkg: Add helpers for HEST table generation Date: Tue, 24 Aug 2021 11:04:02 +0530 Message-Id: <20210824053403.24103-5-omkar.kulkarni@arm.com> In-Reply-To: <20210824053403.24103-1-omkar.kulkarni@arm.com> References: <20210824053403.24103-1-omkar.kulkarni@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,omkar.kulkarni@arm.com X-Gm-Message-State: 28ZCm6qoQRkYVoUFddQB5u6Zx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1629783289; bh=CwflYvNW7AADgPyfyK+iTm2xwJQOhRBSazsUE4onbLI=; h=Cc:Date:From:Reply-To:Subject:To; b=rNkpL7oAeXc9EBE5fS8UT/qzWqQN27E53BwYZtcLgUJxM+lxxRZZvJj7eOSUZZax2qp IFamu2OLKWyCxlzHB8QNuPG0CHPDGcO5Unl7YFOkdRyW81HUTBz78tFa7JqC3WmU6OjCh NP+l9U9jsX0VkCcZPaXPqb2GvsoshWLu7fI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1629783291964100008 Content-Type: text/plain; charset="utf-8" Add helper macros for the generation of the HEST ACPI table. Macros to initialize the HEST GHESv2 Notification Structure and Error Status Structure are introduced. Signed-off-by: Omkar Anand Kulkarni Reviewed-by: Sami Mujawar --- EmbeddedPkg/Include/Library/AcpiLib.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/EmbeddedPkg/Include/Library/AcpiLib.h b/EmbeddedPkg/Include/Li= brary/AcpiLib.h index c142446d9d59..6de067823011 100644 --- a/EmbeddedPkg/Include/Library/AcpiLib.h +++ b/EmbeddedPkg/Include/Library/AcpiLib.h @@ -22,6 +22,7 @@ #define ARM_GAS16(Address) { EFI_ACPI_5_0_SYSTEM_MEMORY, 16, 0, EFI_AC= PI_5_0_WORD, Address } #define ARM_GAS32(Address) { EFI_ACPI_5_0_SYSTEM_MEMORY, 32, 0, EFI_AC= PI_5_0_DWORD, Address } #define ARM_GASN(Address) { EFI_ACPI_5_0_SYSTEM_MEMORY, 0, 0, EFI_AC= PI_5_0_DWORD, Address } +#define ARM_GAS64(Address) { EFI_ACPI_6_3_SYSTEM_MEMORY, 64, 0, EFI_AC= PI_6_3_QWORD, Address } =20 // // Macros for the Multiple APIC Description Table (MADT) @@ -89,6 +90,25 @@ WatchdogTimerGSIV, WatchdogTimerFlags = \ } =20 +// +// HEST table GHESv2 type related structure. +// Helper Macro to initialize the HEST GHESv2 Notification Structure. +// Refer Table 18-394 in ACPI Specification, Version 6.3. +// +#define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE_INIT(Type, = \ + PollInterval, EventId) = \ + { = \ + Type, = \ + sizeof (EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE), = \ + {0, 0, 0, 0, 0, 0, 0}, /* ConfigurationWriteEnable */ = \ + PollInterval, = \ + EventId, = \ + 0, /* Poll Interval Threshold Value */ = \ + 0, /* Poll Interval Threshold Window */ = \ + 0, /* Error Threshold Value */ = \ + 0 /* Error Threshold Window */ = \ + } + typedef BOOLEAN (EFIAPI *EFI_LOCATE_ACPI_CHECK) ( --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79745): https://edk2.groups.io/g/devel/message/79745 Mute This Topic: https://groups.io/mt/85104608/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-