Skip to content

Commit 0981bd7

Browse files
ibmzachrfrandse
authored andcommitted
Add *_current definitions for currently-defined Hostboot BIOS attributes
This commit adds hb_*_current attributes for currently-defined "latched" Hostboot BIOS attributes. Certain hb_* BIOS attributes will be copied into the hb_*_current attributes at the beginning of each IPL to indicate what value is in use for the IPL after it is complete. Change-Id: I5112e82c84f44a512a240e2b2d3c4e0865b34f67 Signed-off-by: Zach Clark <[email protected]>
1 parent 6277414 commit 0981bd7

File tree

3 files changed

+80
-11
lines changed

3 files changed

+80
-11
lines changed

oem/ibm/configurations/bios/enum_attrs.json

+27-4
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,19 @@
215215
"256MB"
216216
],
217217
"helpText" : "Specifies the size of the logical memory block the system uses to read memory, requires a reboot for a change to be applied.",
218-
"displayName" : "Memory Region Size"
218+
"displayName" : "Memory Region Size (pending)"
219+
},
220+
{
221+
"attribute_name":"hb_memory_region_size_current",
222+
"possible_values":[
223+
"128MB",
224+
"256MB"
225+
],
226+
"default_values":[
227+
"256MB"
228+
],
229+
"helpText" : "Specifies the size of the logical memory block the system uses to read memory for the current IPL. Do not set this attribute directly; set hb_memory_region_size instead.",
230+
"displayName" : "Memory Region Size (current)"
219231
},
220232
{
221233
"attribute_name":"hb_power_limit_enable",
@@ -226,8 +238,20 @@
226238
"default_values":[
227239
"Disabled"
228240
],
229-
"helpText" : "Specifies if the power limit is enabled.",
230-
"displayName" : "Power Limit Enable"
241+
"helpText" : "Specifies if the power limit is enabled, requires a reboot for a change to be applied.",
242+
"displayName" : "Power Limit Enable (pending)"
243+
},
244+
{
245+
"attribute_name":"hb_power_limit_enable_current",
246+
"possible_values":[
247+
"Enabled",
248+
"Disabled"
249+
],
250+
"default_values":[
251+
"Disabled"
252+
],
253+
"helpText" : "Specifies if the power limit is enabled for the current IPL. Do not set this attribute directly; set hb_power_limit_enable instead.",
254+
"displayName" : "Power Limit Enable (current)"
231255
},
232256
{
233257
"attribute_name":"hb_secure_ver_lockin_enabled",
@@ -243,4 +267,3 @@
243267
}
244268
]
245269
}
246-

oem/ibm/configurations/bios/integer_attrs.json

+42-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@
3434
"scalar_increment" : 1,
3535
"default_value" : 0,
3636
"helpText" : "Specifies the number of huge pages available for memory management, requires a reboot for a change to be applied.",
37-
"displayName" : "Number Huge Pages"
37+
"displayName" : "Number Huge Pages (pending)"
38+
},
39+
{
40+
"attribute_name" : "hb_number_huge_pages_current",
41+
"lower_bound" : 0,
42+
"upper_bound" : 65535,
43+
"scalar_increment" : 1,
44+
"default_value" : 0,
45+
"helpText" : "Specifies the number of huge pages available for memory management for the current IPL. Do not set this attribute directly; set hb_number_huge_pages instead.",
46+
"displayName" : "Number Huge Pages (current)"
3847
},
3948
{
4049
"attribute_name" : "hb_huge_page_size",
@@ -43,25 +52,52 @@
4352
"scalar_increment" : 1,
4453
"default_value" : 0,
4554
"helpText" : "Specifies the size of huge pages, 0 = 16GB, requires a reboot for a change to be applied.",
46-
"displayName" : "Huge Page Size"
55+
"displayName" : "Huge Page Size (pending)"
56+
},
57+
{
58+
"attribute_name" : "hb_huge_page_size_current",
59+
"lower_bound" : 0,
60+
"upper_bound" : 255,
61+
"scalar_increment" : 1,
62+
"default_value" : 0,
63+
"helpText" : "Specifies the size of huge pages, 0 = 16GB, for the current IPL. Do not set this attribute directly; set hb_huge_page_size instead.",
64+
"displayName" : "Huge Page Size (current)"
4765
},
4866
{
4967
"attribute_name" : "hb_field_core_override",
5068
"lower_bound" : 0,
5169
"upper_bound" : 255,
5270
"scalar_increment" : 1,
5371
"default_value" : 0,
54-
"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.",
55-
"displayName" : "Field Core Override"
72+
"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. Requires a reboot for a change to be applied.",
73+
"displayName" : "Field Core Override (pending)"
74+
},
75+
{
76+
"attribute_name" : "hb_field_core_override_current",
77+
"lower_bound" : 0,
78+
"upper_bound" : 255,
79+
"scalar_increment" : 1,
80+
"default_value" : 0,
81+
"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. Value applicable for the current IPL. Do not set this attribute directly; set hb_field_core_override instead.",
82+
"displayName" : "Field Core Override (current)"
5683
},
5784
{
5885
"attribute_name" : "hb_power_limit_in_watts",
5986
"lower_bound" : 0,
6087
"upper_bound" : 65535,
6188
"scalar_increment" : 1,
6289
"default_value" : 0,
63-
"helpText" : "Specifies the power limit in watts.",
64-
"displayName" : "Power Limit In Watts"
90+
"helpText" : "Specifies the power limit in watts, requires a reboot for a change to be applied.",
91+
"displayName" : "Power Limit In Watts (pending)"
92+
},
93+
{
94+
"attribute_name" : "hb_power_limit_in_watts_current",
95+
"lower_bound" : 0,
96+
"upper_bound" : 65535,
97+
"scalar_increment" : 1,
98+
"default_value" : 0,
99+
"helpText" : "Specifies the power limit in watts for the current IPL. Do not set this attribute directly; set hb_power_limit_in_watts instead.",
100+
"displayName" : "Power Limit In Watts (current)"
65101
}
66102
]
67103
}

oem/ibm/configurations/bios/string_attrs.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,17 @@
6868
"default_string_length" : 32,
6969
"default_string" : "00000000000000000000000000000000",
7070
"helpText" : "Specifies the configuration flags used by manufacturing, requires a reboot for a change to be applied.",
71-
"displayName" : "Manufacturing Flags"
71+
"displayName" : "Manufacturing Flags (pending)"
72+
},
73+
{
74+
"attribute_name" : "hb_mfg_flags_current",
75+
"string_type" : "Hex",
76+
"minimum_string_length" : 32,
77+
"maximum_string_length" : 32,
78+
"default_string_length" : 32,
79+
"default_string" : "00000000000000000000000000000000",
80+
"helpText" : "Specifies the configuration flags used by manufacturing for the current IPL. Do not set this attribute directly; set hb_mfg_flags instead.",
81+
"displayName" : "Manufacturing Flags (current)"
7282
},
7383
{
7484
"attribute_name" : "hb_lid_ids",

0 commit comments

Comments
 (0)