Add pldm bios attrs for huge_pages and power_limit
Make memory_region_size an enum, add huge_page_size and
power_limit_enable and power_limit_in_watts.
Signed-off-by: Corey Swenson <cswenson@us.ibm.com>
Change-Id: Iae47d103df323a30ac8838b00504fac9702feb08
diff --git a/oem/ibm/configurations/bios/enum_attrs.json b/oem/ibm/configurations/bios/enum_attrs.json
index 3282b41..ff2f260 100644
--- a/oem/ibm/configurations/bios/enum_attrs.json
+++ b/oem/ibm/configurations/bios/enum_attrs.json
@@ -227,6 +227,30 @@
],
"helpText" : "Enabling vTPM makes a TPM available to the guest operating system.",
"displayName" : "Virtual Trusted Platform Module"
+ },
+ {
+ "attribute_name":"hb_memory_region_size",
+ "possible_values":[
+ "128MB",
+ "256MB"
+ ],
+ "default_values":[
+ "256MB"
+ ],
+ "helpText" : "Specifies the size of the logical memory block the system uses to read memory, requires a reboot for a change to be applied.",
+ "displayName" : "Memory Region Size"
+ },
+ {
+ "attribute_name":"hb_power_limit_enable",
+ "possible_values":[
+ "Enabled",
+ "Disabled"
+ ],
+ "default_values":[
+ "Disabled"
+ ],
+ "helpText" : "Specifies if the power limit is enabled.",
+ "displayName" : "Power Limit Enable"
}
]
}
diff --git a/oem/ibm/configurations/bios/integer_attrs.json b/oem/ibm/configurations/bios/integer_attrs.json
index e9716a3..c3a780e 100644
--- a/oem/ibm/configurations/bios/integer_attrs.json
+++ b/oem/ibm/configurations/bios/integer_attrs.json
@@ -42,19 +42,10 @@
"upper_bound" : 255,
"scalar_increment" : 1,
"default_value" : 0,
- "helpText" : "Specifies the size of huge pages, requires a reboot for a change to be applied.",
+ "helpText" : "Specifies the size of huge pages, 0 = 16GB, requires a reboot for a change to be applied.",
"displayName" : "Huge Page Size"
},
{
- "attribute_name" : "hb_memory_region_size",
- "lower_bound" : 0,
- "upper_bound" : 255,
- "scalar_increment" : 1,
- "default_value" : 4,
- "helpText" : "Specifies the size of the logical memory block the system uses to read memory, requires a reboot for a change to be applied. Encoded: 3=128MB 4=256MB.",
- "displayName" : "Memory Region Size"
- },
- {
"attribute_name" : "hb_field_core_override",
"lower_bound" : 0,
"upper_bound" : 255,
@@ -62,6 +53,15 @@
"default_value" : 0,
"helpText" : "The number of cores to activate where 0 being to activate all available cores. Where N, for fused cores, is to activate 2N cores. Where N, for non-fused cores, is to activate N cores.",
"displayName" : "Field Core Override"
- }
+ },
+ {
+ "attribute_name" : "hb_power_limit_in_watts",
+ "lower_bound" : 0,
+ "upper_bound" : 65535,
+ "scalar_increment" : 1,
+ "default_value" : 0,
+ "helpText" : "Specifies the power limit in watts.",
+ "displayName" : "Power Limit In Watts"
+ }
]
}