* [PATCH] MdePkg/Acpi62: Add bit definitions to NFIT Platform Capabilities Structure
@ 2022-06-29 22:41 Miki Shindo
2022-07-01 1:54 ` 回复: [edk2-devel] " gaoliming
0 siblings, 1 reply; 2+ messages in thread
From: Miki Shindo @ 2022-06-29 22:41 UTC (permalink / raw)
To: devel; +Cc: Michael D Kinney, Liming Gao, Zhiguang Liu, Ray Ni
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3915
This commit adds each capability bit definition
for NFIT Platform Capabilities Structure.
The type has been added since ACPI Specification Version 6.2A.
Signed-off-by: Miki Shindo <miki.shindo@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
---
MdePkg/Include/IndustryStandard/Acpi62.h | 4 ++++
MdePkg/Include/IndustryStandard/Acpi63.h | 4 ++++
MdePkg/Include/IndustryStandard/Acpi64.h | 4 ++++
3 files changed, 12 insertions(+)
diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h
index 836e986ee5..e27775a85a 100644
--- a/MdePkg/Include/IndustryStandard/Acpi62.h
+++ b/MdePkg/Include/IndustryStandard/Acpi62.h
@@ -1651,6 +1651,10 @@ typedef struct {
UINT8 Reserved_12[4];
} EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT0
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
+#define EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT2
+
///
/// Secure DEVices Table (SDEV)
///
diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h b/MdePkg/Include/IndustryStandard/Acpi63.h
index 15a30d8808..10bdf5fe5a 100644
--- a/MdePkg/Include/IndustryStandard/Acpi63.h
+++ b/MdePkg/Include/IndustryStandard/Acpi63.h
@@ -1615,6 +1615,10 @@ typedef struct {
UINT8 Reserved_12[4];
} EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT0
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
+#define EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT2
+
///
/// Secure DEVices Table (SDEV)
///
diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h b/MdePkg/Include/IndustryStandard/Acpi64.h
index c1d8b14c44..fe5ebfac2b 100644
--- a/MdePkg/Include/IndustryStandard/Acpi64.h
+++ b/MdePkg/Include/IndustryStandard/Acpi64.h
@@ -1664,6 +1664,10 @@ typedef struct {
UINT8 Reserved_12[4];
} EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT0
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
+#define EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT2
+
///
/// Secure DEVices Table (SDEV)
///
--
2.27.0.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* 回复: [edk2-devel] [PATCH] MdePkg/Acpi62: Add bit definitions to NFIT Platform Capabilities Structure
2022-06-29 22:41 [PATCH] MdePkg/Acpi62: Add bit definitions to NFIT Platform Capabilities Structure Miki Shindo
@ 2022-07-01 1:54 ` gaoliming
0 siblings, 0 replies; 2+ messages in thread
From: gaoliming @ 2022-07-01 1:54 UTC (permalink / raw)
To: devel, miki.shindo
Cc: 'Michael D Kinney', 'Zhiguang Liu',
'Ray Ni'
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> -----邮件原件-----
> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Miki Shindo
> 发送时间: 2022年6月30日 6:42
> 收件人: devel@edk2.groups.io
> 抄送: Michael D Kinney <michael.d.kinney@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Zhiguang Liu <zhiguang.liu@intel.com>; Ray Ni
> <ray.ni@intel.com>
> 主题: [edk2-devel] [PATCH] MdePkg/Acpi62: Add bit definitions to NFIT
> Platform Capabilities Structure
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3915
>
> This commit adds each capability bit definition
> for NFIT Platform Capabilities Structure.
> The type has been added since ACPI Specification Version 6.2A.
>
> Signed-off-by: Miki Shindo <miki.shindo@intel.com>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> ---
> MdePkg/Include/IndustryStandard/Acpi62.h | 4 ++++
> MdePkg/Include/IndustryStandard/Acpi63.h | 4 ++++
> MdePkg/Include/IndustryStandard/Acpi64.h | 4 ++++
> 3 files changed, 12 insertions(+)
>
> diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h
> b/MdePkg/Include/IndustryStandard/Acpi62.h
> index 836e986ee5..e27775a85a 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi62.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi62.h
> @@ -1651,6 +1651,10 @@ typedef struct {
> UINT8 Reserved_12[4];
>
> } EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
>
>
>
> +#define
> EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDI
> MM_DURABILITY_ON_POWER_LOSS BIT0
>
> +#define
> EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUS
> H_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
>
> +#define
> EFI_ACPI_6_2_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTE
> NT_MEMORY_HARDWARE_MIRRORING BIT2
>
> +
>
> ///
>
> /// Secure DEVices Table (SDEV)
>
> ///
>
> diff --git a/MdePkg/Include/IndustryStandard/Acpi63.h
> b/MdePkg/Include/IndustryStandard/Acpi63.h
> index 15a30d8808..10bdf5fe5a 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi63.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi63.h
> @@ -1615,6 +1615,10 @@ typedef struct {
> UINT8 Reserved_12[4];
>
> } EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
>
>
>
> +#define
> EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDI
> MM_DURABILITY_ON_POWER_LOSS BIT0
>
> +#define
> EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUS
> H_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
>
> +#define
> EFI_ACPI_6_3_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTE
> NT_MEMORY_HARDWARE_MIRRORING BIT2
>
> +
>
> ///
>
> /// Secure DEVices Table (SDEV)
>
> ///
>
> diff --git a/MdePkg/Include/IndustryStandard/Acpi64.h
> b/MdePkg/Include/IndustryStandard/Acpi64.h
> index c1d8b14c44..fe5ebfac2b 100644
> --- a/MdePkg/Include/IndustryStandard/Acpi64.h
> +++ b/MdePkg/Include/IndustryStandard/Acpi64.h
> @@ -1664,6 +1664,10 @@ typedef struct {
> UINT8 Reserved_12[4];
>
> } EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITIES_STRUCTURE;
>
>
>
> +#define
> EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDI
> MM_DURABILITY_ON_POWER_LOSS BIT0
>
> +#define
> EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_MEMORY_CONTROLLER_FLUS
> H_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT1
>
> +#define
> EFI_ACPI_6_4_NFIT_PLATFORM_CAPABILITY_BYTE_ADDRESSABLE_PERSISTE
> NT_MEMORY_HARDWARE_MIRRORING BIT2
>
> +
>
> ///
>
> /// Secure DEVices Table (SDEV)
>
> ///
>
> --
> 2.27.0.windows.1
>
>
>
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#90916): https://edk2.groups.io/g/devel/message/90916
> Mute This Topic: https://groups.io/mt/92075891/4905953
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaoliming@byosoft.com.cn]
> -=-=-=-=-=-=
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-01 1:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-29 22:41 [PATCH] MdePkg/Acpi62: Add bit definitions to NFIT Platform Capabilities Structure Miki Shindo
2022-07-01 1:54 ` 回复: [edk2-devel] " gaoliming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox