From d61fd2c3c681f76363a484e810c6c10af87e8a9c Mon Sep 17 00:00:00 2001 From: Greg Still Date: Fri, 25 Aug 2017 17:09:56 -0500 Subject: PM: Move to chip EC based #V validity checking in p9_pstate_parameter_block - Was always returning SUCCESS which caused p9_hcode_image_build to not properly terminate (false error logs) - Added EC feature attribute to skip #V validity checking and thus disabling pstates for Nimbus < 20 and Cumulus < 11 - Initalized wof io_size to 0. - Rebased - Added override attribute ATTR_SYSTEM_POUNDV_VALIDITY_HALT_DISABLE to disable killing the IPL upon #V validity check failure. Disables Pstates and continues. This allow the use of parts that don't have good #V for other, non-Pstate oriented purposes. Marked with new tag. Change-Id: Ia238af9758ae1fe35d39fa536d73ec41e85f9498 CQ: SW400102 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45185 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Reviewed-by: Juan R. Medina Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46083 Reviewed-by: Sachin Gupta --- .../xml/attribute_info/chip_ec_attributes.xml | 25 +++++++++++++++++++ .../xml/attribute_info/pm_plat_attributes.xml | 28 +++++++++++++++++++++- 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml index 78692ec0..4ae4caa6 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml @@ -5193,6 +5193,31 @@ + + + ATTR_CHIP_EC_FEATURE_POUNDV_VALIDATE_DISABLE + TARGET_TYPE_PROC_CHIP + + Disables the checking of #V validity by p9_pstate_parameter_block. + If not disable, invalid #V will fail to IPL. + + + + ENUM_ATTR_NAME_NIMBUS + + 0x20 + LESS_THAN + + + + ENUM_ATTR_NAME_CUMULUS + + 0x11 + LESS_THAN + + + + ATTR_CHIP_EC_FEATURE_OBUS_HW419305 diff --git a/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml index ad7c55ea..fb5043c7 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml @@ -972,6 +972,32 @@ + + ATTR_SYSTEM_POUNDV_VALIDITY_HALT_DISABLE + TARGET_TYPE_SYSTEM + Disables the validity checking of #V VPD content from causing + IPL failures. + + OFF: Will enable PStates given all validity checks pass. If + validity checks fail, the a failure is log and error reaction + will occur (eg IPL failure) + ON: Will disable #V validity checking of #V from causing IPL + to halt. Validity check failures will cause error logs and + Pstates (including other dependent functions) will be + disabled. + + Producer: Override + + Consumers: p9_pstate_parameter_block + + + uint8 + OFF=0, ON=1 + + + + + ATTR_SYSTEM_WOF_DISABLE TARGET_TYPE_SYSTEM @@ -1036,7 +1062,7 @@ THIS IS NOT SUPPORTED AT PRESENT. GA1 SUPPORT IS TBD). uint8 - FIXED=0, STEPPED=1 + FIXED=0, CALCULATED=1 -- cgit v1.2.1