From nobody Mon Feb 9 16:45:04 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+77664+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+77664+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1625933933; cv=none; d=zohomail.com; s=zohoarc; b=mAGWMNkMYFjw5GY6idtKiBAxuQawgv3b+FTanyAkfg3jSXlXCLrwYML8EbSCtkM49DqmzUJiqujbV/7n8VputIkac4yAmhR49b2KimzZiM99t8UozaXBXXIJ8lTzJ5SXHMZ4dtGiZb4V74sR7qK9PQUYyVEUNYvq5BQdX3B66mQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1625933933; 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=bTrgR3MWiJw8hvxukLMG/adbovbvSKOvM0GWIwWcsJI=; b=hiomREpYrGXsv4mP7c2OoDotEJsmN4NlxgGgSJWpV+YRXiwfiuXpK0SM1YHSJfCBAHSxxACYJNAEyNeWvJVks2+XkR7o+ZgCN2VEEI5JDzOFrXecBSyroViiEOx/Mn4PpIAWZylXiuknLcTy5z5B3ALWyEe9YEtlYL6UViEXR78= 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+77664+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 1625933933588870.0511967234614; Sat, 10 Jul 2021 09:18:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NydEYY1788612xjMWOsU4uh1; Sat, 10 Jul 2021 09:18:53 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.26154.1625933927304159304 for ; Sat, 10 Jul 2021 09:18:47 -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 E37DD1478; Sat, 10 Jul 2021 09:18:46 -0700 (PDT) X-Received: from usa.arm.com (a077433.blr.arm.com [10.162.4.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B65B23F5A1; Sat, 10 Jul 2021 09:18:45 -0700 (PDT) From: "Omkar Anand Kulkarni" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Sami Mujawar Subject: [edk2-devel] [PATCH v2 4/4] ArmPlatformPkg: Add helpers for HEST table generation Date: Sat, 10 Jul 2021 21:48:31 +0530 Message-Id: <20210710161831.30433-5-omkar.kulkarni@arm.com> In-Reply-To: <20210710161831.30433-1-omkar.kulkarni@arm.com> References: <20210710161831.30433-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: 3b01IEJryxIAsVp8eRUDm9GBx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1625933933; bh=pheAAHyeTcDUZYuDA8MxEz49txNz6yNucsk4jUpUdsE=; h=Cc:Date:From:Reply-To:Subject:To; b=YTDDQS21Pr6Tkevaio4FVfX0As2ysA19iA9jy57mu4ahbh9e3rcyGwmkEMTTJr0DznC BZH6AgdTWmOZnpeaHndPlb/ZiNL+fe9hvSc9c9Nl1/AqgB/fBXuC9PW5QJV/d07Xu2qW7 c5vI3VuNSgjxDqsbzVHevfFz3kdGa2z5rSM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1625933934458100001 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 --- ArmPlatformPkg/Include/HestAcpiHeader.h | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/ArmPlatformPkg/Include/HestAcpiHeader.h b/ArmPlatformPkg/Inclu= de/HestAcpiHeader.h new file mode 100644 index 000000000000..5112ee5b22c5 --- /dev/null +++ b/ArmPlatformPkg/Include/HestAcpiHeader.h @@ -0,0 +1,49 @@ +/** @file + HEST table helper macros. + + Macro definitions to initialize the HEST ACPI table specific structures. + + Copyright (c) 2021, ARM Limited. All rights reserved. + SPDX-License-Identifier: BSD-2-Clause-Patent + + @par Specification Reference: + - ACPI Reference Specification 6.3 + - UEFI Reference Specification 2.8 +**/ + +#ifndef HEST_ACPI_HEADER_ +#define HEST_ACPI_HEADER_ + +#include + +// +// HEST table GHESv2 type related structures. +// +// 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 */ = \ + } + +// Helper Macro to initialize the HEST GHESv2 Error Status Structure. +// Refer Section 5.2.3.2 in ACPI Specification, Version 6.3. +#define EFI_ACPI_6_3_GENERIC_ERROR_STATUS_STRUCTURE_INIT(Address) \ + { \ + 0, /* UINT8 Address Space ID */ \ + 64, /* Register Bit Width */ \ + 0, /* Register Bit Offset */ \ + 4, /* Access Size */ \ + Address /* CPER/Read Ack Addr */ \ + } + +#endif /* HEST_ACPI_HEADER_ */ --=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 (#77664): https://edk2.groups.io/g/devel/message/77664 Mute This Topic: https://groups.io/mt/84115233/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-