oem-ibm: Adding value_name json key for dynamic deallocation of Memory
This commit adds value_name json key to BIOS attribute that allows user
to enable/disable the dynamic deallocation of memory based on predictive
memory fail events.
Tested: Verified the BIOS attribute with get bios attribute command from
pldmtool.
Change-Id: I913d2062c1d7af024a447f9eb4e0289fa7ebdf12
Signed-off-by: Riya Dixit <riyadixitagra@gmail.com>
diff --git a/oem/ibm/configurations/bios/bios_attrs.json b/oem/ibm/configurations/bios/bios_attrs.json
index 80bb3ef..adccdfe 100644
--- a/oem/ibm/configurations/bios/bios_attrs.json
+++ b/oem/ibm/configurations/bios/bios_attrs.json
@@ -96,6 +96,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -104,6 +105,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",
diff --git a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Bonnell/bios_attrs.json b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Bonnell/bios_attrs.json
index 1e8e54a..d41c02a 100644
--- a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Bonnell/bios_attrs.json
+++ b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Bonnell/bios_attrs.json
@@ -78,6 +78,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -86,6 +87,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",
diff --git a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Everest/bios_attrs.json b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Everest/bios_attrs.json
index 0ad6ce2..0e63bec 100644
--- a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Everest/bios_attrs.json
+++ b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Everest/bios_attrs.json
@@ -96,6 +96,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -104,6 +105,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",
diff --git a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier1S4U/bios_attrs.json b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier1S4U/bios_attrs.json
index 65e5f63..11ce1d0 100644
--- a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier1S4U/bios_attrs.json
+++ b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier1S4U/bios_attrs.json
@@ -96,6 +96,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -104,6 +105,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",
diff --git a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier2U/bios_attrs.json b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier2U/bios_attrs.json
index 65e5f63..11ce1d0 100644
--- a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier2U/bios_attrs.json
+++ b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier2U/bios_attrs.json
@@ -96,6 +96,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -104,6 +105,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",
diff --git a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier4U/bios_attrs.json b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier4U/bios_attrs.json
index 65e5f63..11ce1d0 100644
--- a/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier4U/bios_attrs.json
+++ b/oem/ibm/configurations/bios/com.ibm.Hardware.Chassis.Model.Rainier4U/bios_attrs.json
@@ -96,6 +96,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard"
@@ -104,6 +105,7 @@
"attribute_type": "enum",
"attribute_name": "hb_predictive_mem_guard_current",
"possible_values": ["Enabled", "Disabled"],
+ "value_names": ["Enabled", "Disabled"],
"default_values": ["Enabled"],
"help_text": "Enable or Disable Predictive Guard for Memory Errors.",
"display_name": "Predictive Memory Guard",