From 142a25c1a3453d0cc5bac4a93a2765e60a281d2d Mon Sep 17 00:00:00 2001 From: Prachi Gupta Date: Mon, 20 Mar 2017 11:07:49 -0500 Subject: move all non-volatile/openpower attributes from _hb to _openpower files When pushing hb's attr/target type files to common-mrw-xml repo, we add tags to represent which attributes are for openpower (bmc based system) and which are for fsp based systems. All attributes in _hb files are considered common for both platforms and do not have any tag. All attributes in _openpower will get openpower tag and be only shown to a system engineer if they are building a bmc based system. Therefore, the source of the attribute file is important from now on. Change-Id: I213348f4c4f372b0610b07ad3453f08f75d02224 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38161 Tested-by: Jenkins Server Reviewed-by: William G. Hoffa Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Matthew A. Ploetz Reviewed-by: Daniel M. Crowell --- src/build/configs/fsprelease.config | 2 + src/include/usr/errl/errlentry.H | 2 + src/usr/errl/errlentry.C | 5 +- src/usr/errl/errlmanager_common.C | 2 + src/usr/hwas/hwasPlatCallout.C | 3 +- .../initservice/istepdispatcher/istepdispatcher.C | 7 +- src/usr/isteps/istep06/host_discover_targets.C | 3 +- src/usr/makefile | 4 +- src/usr/secureboot/trusted/trustedboot.C | 2 + .../common/xmltohb/attribute_types_hb.xml | 1363 +++++--------------- .../common/xmltohb/attribute_types_openpower.xml | 625 +++++++++ .../targeting/common/xmltohb/target_types_hb.xml | 46 - .../common/xmltohb/target_types_openpower.xml | 68 + 13 files changed, 1008 insertions(+), 1124 deletions(-) (limited to 'src') diff --git a/src/build/configs/fsprelease.config b/src/build/configs/fsprelease.config index d0fd81eca..75d97efff 100644 --- a/src/build/configs/fsprelease.config +++ b/src/build/configs/fsprelease.config @@ -9,3 +9,5 @@ unset INCLUDE_XML_OPENPOWER unset ENABLE_HDAT_IN_HOSTBOOT unset START_OCC_DURING_BOOT unset NO_SBE_UPDATES +unset BMC_BT_LPC_IPMI +unset HTMGT diff --git a/src/include/usr/errl/errlentry.H b/src/include/usr/errl/errlentry.H index 65f1c7240..aea539062 100644 --- a/src/include/usr/errl/errlentry.H +++ b/src/include/usr/errl/errlentry.H @@ -726,6 +726,7 @@ private: */ void addHbBuildId(); +#ifdef CONFIG_BMC_IPMI /** * @brief called by addHwCallout to retrieve the serial and part number * from the current target. If the current target does not contain @@ -735,6 +736,7 @@ private: * @param[in] i_target The target to get the numbers for */ void addPartAndSerialNumbersToErrLog(const TARGETING::Target * i_target); +#endif /** * @brief set iv_skipShowingLogs diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C index 9192ff83a..7c46edff4 100644 --- a/src/usr/errl/errlentry.C +++ b/src/usr/errl/errlentry.C @@ -605,6 +605,7 @@ void ErrlEntry::checkHiddenLogsEnable( ) /////////////////////////////////////////////////////////////////////////////// // Called by addHwCallout to get the part and serial numbers from the current // target so that it can be appended to the error log +#ifdef CONFIG_BMC_IPMI void ErrlEntry::addPartAndSerialNumbersToErrLog (const TARGETING::Target * i_target) { @@ -668,7 +669,7 @@ void ErrlEntry::checkHiddenLogsEnable( ) TRACDCOMP(g_trac_errl, EXIT_MRK"ErrlEntry::addPartAndSerialNumbersToErrLog()"); } - +#endif /////////////////////////////////////////////////////////////////////////////// // for use by ErrlManager @@ -724,7 +725,9 @@ void ErrlEntry::commit( compId_t i_committerComponent ) this); if(!l_err) { +#ifdef CONFIG_BMC_IPMI addPartAndSerialNumbersToErrLog( l_target ); +#endif } else { diff --git a/src/usr/errl/errlmanager_common.C b/src/usr/errl/errlmanager_common.C index 264b631d3..385042748 100644 --- a/src/usr/errl/errlmanager_common.C +++ b/src/usr/errl/errlmanager_common.C @@ -26,8 +26,10 @@ #include #include #include +#ifdef CONFIG_BMC_IPMI #include #include +#endif #include #include #include diff --git a/src/usr/hwas/hwasPlatCallout.C b/src/usr/hwas/hwasPlatCallout.C index 7d7182e87..2385434cc 100644 --- a/src/usr/hwas/hwasPlatCallout.C +++ b/src/usr/hwas/hwasPlatCallout.C @@ -34,8 +34,9 @@ #include #include #include +#ifdef CONFIG_BMC_IPMI #include - +#endif namespace HWAS { diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.C b/src/usr/initservice/istepdispatcher/istepdispatcher.C index 98e68ac20..3ce73e8c5 100644 --- a/src/usr/initservice/istepdispatcher/istepdispatcher.C +++ b/src/usr/initservice/istepdispatcher/istepdispatcher.C @@ -64,13 +64,15 @@ #include #include #include +#ifdef CONFIG_BMC_IPMI #include //IPMI watchdog timer #include //IPMI System ACPI Power State #include -#include #include #include +#endif +#include #include #include #include @@ -248,8 +250,11 @@ void IStepDispatcher::init(errlHndl_t &io_rtaskRetErrl) // Get tracelite setting from top level target attributes TARGETING::Target* l_pSys = NULL; TARGETING::targetService().getTopLevelTarget(l_pSys); + +#ifdef CONFIG_INCLUDE_XML_OPENPOWER uint8_t l_tlEnabled = l_pSys->getAttr(); TRACE::setTraceLite(l_tlEnabled); +#endif if(iv_mailboxEnabled) { diff --git a/src/usr/isteps/istep06/host_discover_targets.C b/src/usr/isteps/istep06/host_discover_targets.C index 4e0870089..0ac877f30 100644 --- a/src/usr/isteps/istep06/host_discover_targets.C +++ b/src/usr/isteps/istep06/host_discover_targets.C @@ -48,9 +48,10 @@ #include #include #include +#ifdef CONFIG_BMC_IPMI #include #include - +#endif #include #include diff --git a/src/usr/makefile b/src/usr/makefile index 17b0283b1..c07030fb9 100644 --- a/src/usr/makefile +++ b/src/usr/makefile @@ -62,8 +62,8 @@ SUBDIRS += gpio.d SUBDIRS += lpc.d SUBDIRS += console.d SUBDIRS += errldisplay.d -SUBDIRS += ipmi.d -SUBDIRS += htmgt.d +SUBDIRS += $(if $(CONFIG_BMC_BT_LPC_IPMI),ipmi.d) +SUBDIRS += $(if $(CONFIG_HTMGT),htmgt.d) SUBDIRS += diag.d SUBDIRS += xz.d SUBDIRS += $(if $(CONFIG_ENABLE_HDAT_IN_HOSTBOOT),hdat.d,) diff --git a/src/usr/secureboot/trusted/trustedboot.C b/src/usr/secureboot/trusted/trustedboot.C index d9b6b5cb7..83db64a86 100644 --- a/src/usr/secureboot/trusted/trustedboot.C +++ b/src/usr/secureboot/trusted/trustedboot.C @@ -46,7 +46,9 @@ #include #include #include +#ifdef CONFIG_BMC_IPMI #include +#endif #include #include #include diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml index 255851800..aac5b3cf2 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml @@ -31,21 +31,6 @@ Contains the definition of hostboot attributes which should not be synced to/from FSP ================================================================= --> - - OP_TRACE_LITE - - Enable Trace lite on openpower. - - - - - - - volatile-zeroed - - - - HIDDEN_ERRLOGS_ENABLE @@ -366,52 +351,6 @@ - - GPIO_INFO - Information needed to address GPIO device - - Structure to define the addessing for an I2C - slave device. - - i2cMasterPath - Entity path to the chip that contains the I2C - master - EntityPath - physical:sys-0 - - - port - Port from the I2C Master device. This is a 6-bit - value. - uint8_t - 0 - - - devAddr - Device address on the I2C bus. This is a 7-bit value, - but then shifted 1 bit left. - uint8_t - 0 - - - engine - I2C master engine. This is a 2-bit - value. - uint8_t - 0 - - - vddrPin - - Logical GPIO pin number used to enabled/disable VDDR - - uint8_t - 0 - - - non-volatile - - HB_TARGET_SCOMABLE @@ -483,6 +422,137 @@ + + IPMI_SENSOR_ARRAY + Enumeration defining the offsets into the + IPMI_SENSORS array. + + NAME_OFFSET + 0x00 + + + NUMBER_OFFSET + 0x01 + + + + + SENSOR_NAME + Enumeration indicating the IPMI sensor name, which will + be used by hostboot when determining the sensor number to return. + he sensor name consists of one byte of sensor type plus one byte of + sub-type, to differentiate similar sensors under the same target. + Our implementaion uses the IPMI defined entity ID as the sub-type. + + + PROC_TEMP + 0x0103 + + + DIMM_TEMP + 0x0120 + + + CORE_TEMP + 0x01D0 + + + STATE + 0x0500 + + + MEMBUF_TEMP + 0x01D1 + + + PROC_STATE + 0x0703 + + + CORE_STATE + 0x07D0 + + + DIMM_STATE + 0x0C20 + + + MEMBUF_STATE + 0x0CD1 + + + FW_BOOT_PROGRESS + 0x0F22 + + + SYSTEM_EVENT + 0x1201 + + + OS_BOOT + 0x1F23 + + + HOST_STATUS + 0x2223 + + + OCC_ACTIVE + 0x07D2 + + + CORE_FREQ + 0xC1D0 + + + APSS_CHANNEL + 0xC2D7 + + + PCI_ACTIVE + 0xC423 + + + REBOOT_COUNT + 0xC322 + + + FAULT + 0xC700 + + + BACKPLANE_FAULT + 0xC707 + + + REF_CLOCK_FAULT + 0xC7D4 + + + PCI_CLOCK_FAULT + 0xC7D5 + + + TOD_CLOCK_FAULT + 0xC7D6 + + + APSS_FAULT + 0xC7D7 + + + DERATING_FACTOR + 0xC815 + + + REDUNDANT_PS_POLICY + 0xCA22 + + + TPM_REQUIRED + 0xFFFF + + SBE_FFDC_ADDR @@ -514,928 +584,245 @@ - OPEN_POWER_DIMM_THROTTLE_TEMP_DEG_C - - DIMM temperature threshold where throttling will - occur in degrees C - + SERIAL_NUMBER + The serial number for a particular FRU target - + + + 18 - non-volatile + volatile-zeroed + + + ATTR_SERIAL_NUMBER + DIRECT + + + - OPEN_POWER_DIMM_ERROR_TEMP_DEG_C - - DIMM temperature where an error will be generated - in degrees C - + PART_NUMBER + The part number for a particular FRU target - + + + 20 - non-volatile + volatile-zeroed + + + ATTR_PART_NUMBER + DIRECT + + - OPEN_POWER_MEMCTRL_THROTTLE_TEMP_DEG_C - - Memory controller temperature threshold - where throttling will occur in degrees C - + PSTATE_TABLE + HTMGT PSTATE data - + + 3656 - non-volatile + volatile-zeroed + - OPEN_POWER_PROC_WEIGHT - - Weight factor (in 1/10ths) for each core DTS to calculate a core - temperature. - + PSTATE_TABLE_MFG + HTMGT PSTATE data for mfg - + + 3656 - non-volatile + volatile-zeroed + + - OPEN_POWER_QUAD_WEIGHT - - Weight factor (in 1/10ths) for each quad (cache) DTS to calculate a core - temperature. + OCC_CONTROL_DATA + OCC operational data - + + 256 - non-volatile + volatile-zeroed + - - - OPEN_POWER_PROC_DVFS_TEMP_DEG_C - - Processor temperature where DVFS will occur in degrees C + HTMGT_INTERNAL_FLAGS + HTMGT internal flags - + + 0 + - non-volatile + volatile-zeroed + + - OPEN_POWER_MEMCTRL_ERROR_TEMP_DEG_C + OT_MIN_N_PER_MBA - Memory controller temperature where an error will occur - in degrees C + Lowest per MBA numerator ever allowed when OCC is + throttling due to OT. - + + 0 + - non-volatile + volatile-zeroed + + - OPEN_POWER_N_BULK_POWER_LIMIT_WATTS + N_PLUS_ONE_N_PER_MBA - N mode bulk power supply limit in Watts + Static per MBA numerator setting when not in + oversubscription. Calculated based on MRW memory + power with redundant power. Lowest per MBA numerator + ever allowed when OCC is throttling due to OT. - + + 0 + - non-volatile + volatile-zeroed - - - OPEN_POWER_N_MAX_MEM_POWER_WATTS - - Maximum power allocated to DIMMs in Watts - - - - - non-volatile - - - - OPEN_POWER_MEMCTRL_READ_TIMEOUT_SEC - - Memory controller read timeout in seconds - - - - - non-volatile - - - - OPEN_POWER_DIMM_READ_TIMEOUT_SEC - - DIMM read timeout in seconds - - - - - non-volatile - - - - OPEN_POWER_PROC_ERROR_TEMP_DEG_C - - Processor temperature error threshold in degrees C - - - - - non-volatile - - - - OPEN_POWER_MIN_MEM_UTILIZATION_THROTTLING - - Minimum memory utilization for memory throttling - - - - - non-volatile - - - - OPEN_POWER_PROC_READ_TIMEOUT_SEC - - Processor read timeout in seconds - - - - - non-volatile - - - - OPEN_POWER_REGULATOR_EFFICIENCY_FACTOR - - Regulator efficiency factor - - - - - non-volatile - - - - - OPEN_POWER_MIN_POWER_CAP_WATTS - - Minimum hard power cap in Watts - - - - - non-volatile - - - - - OPEN_POWER_SOFT_MIN_PCAP_WATTS - - Minimum soft power cap in Watts - - - - - non-volatile - - - - - OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS - - N+1 bulk power limit in Watts for systems running - with redundant power supplies (default) - - - - - non-volatile - - - - - OPEN_POWER_N_PLUS_ONE_HPC_BULK_POWER_LIMIT_WATTS - - N+1 bulk power limit in Watts for High Performance Computing - systems running with a non-redundant power supply policy - - - - 0 - - - non-volatile - - - - OPEN_POWER_N_PLUS_ONE_MAX_MEM_POWER_WATTS - - N+1 max memory power in Watts - - - - - non-volatile - - - - OPEN_POWER_TURBO_MODE_SUPPORTED - - If this system supports Turbo frequency mode. - 0x00 = no - 0x01 = yes - - - - - non-volatile - - - - - ADC_CHANNEL_FUNC_IDS - ADC Channel function id. 16 channels. - - - 16 - - non-volatile - - - - - ADC_CHANNEL_SENSOR_NUMBERS - ADC Channel IPMI sensor numbers. 16 channels. - - - 16 - - non-volatile - - - - - ADC_CHANNEL_GNDS - ADC Channel ground. 16 channels. - - - 16 - - non-volatile - - - - - ADC_CHANNEL_GAINS - ADC channel gain * 1000. 16 channels. - - - 16 - - non-volatile - - - - - ADC_CHANNEL_OFFSETS - ADC channel offset * 1000. 16 channels - - - 16 - - non-volatile - - - - - APSS_GPIO_PORT_MODES - APSS GPIO PORT MODES - - - 2 - - non-volatile - - - - - APSS_GPIO_PORT_PINS - APSS GPIO PORT PINS - Port0 pin 0-7 - Port1 pin 8-15 - - - - 16 - - non-volatile - - - - - PSTATE_TABLE - HTMGT PSTATE data - - - 3656 - - volatile-zeroed - - - - - - PSTATE_TABLE_MFG - HTMGT PSTATE data for mfg - - - 3656 - - volatile-zeroed - - - - - - OCC_CONTROL_DATA - OCC operational data - - - - 256 - - volatile-zeroed - - - - - - HTMGT_INTERNAL_FLAGS - HTMGT internal flags - - - - 0 - - - volatile-zeroed - - - - - - OT_MIN_N_PER_MBA - - Lowest per MBA numerator ever allowed when OCC is - throttling due to OT. - - - - 0 - - - volatile-zeroed - - - - - - N_PLUS_ONE_N_PER_MBA - - Static per MBA numerator setting when not in - oversubscription. Calculated based on MRW memory - power with redundant power. Lowest per MBA numerator - ever allowed when OCC is throttling due to OT. - - - - 0 - - - volatile-zeroed - - - - - - N_PLUS_ONE_N_PER_CHIP - - Static per chip numerator setting when not in oversubscription. - - - - 0 - - - volatile-zeroed - - - - - - OVERSUB_N_PER_MBA - - Static per MBA numerator setting when in oversubscription. - Calculated based on MRW oversubscription memory power. - - - - 0 - - - volatile-zeroed - - - - - - OVERSUB_N_PER_CHIP - - Static per chip numerator setting when in oversubscription. - - - - 0 - - - volatile-zeroed - - - - - - - - - VPD_SWITCHES - Attribute storing VPD state information - - VPD flags - - pnorCacheValid - Set when this target's VPD data has been loaded - from EEPROM into the PNOR. - - uint8_t - 1 - 0 - - - pnorCacheValidRT - See pnorCacheValid. Allows runtime version to be - set separately from common version. - - uint8_t - 1 - 0 - - - disableWriteToPnorRT - Set to disable write-thru to PNOR at runtime - - uint8_t - 1 - 0 - - - reserved - Reserved for future expansion - uint8_t - 5 - 0 - - - volatile-zeroed - - - - - - OPAL_MODEL - - Specifies the compatible model name for Opal to key off of. - This is sourced from the MRW and should be of the format - 'vendor,model', e.g. 'tyan,palmetto'. - - - - ibm,miscopenpower - 32 - - - non-volatile - - - - - ISDIMM_MBVPD_INDEX - - Multiple centaurs can sometimes have their VPD located in one - physical SEEPROM. This is the index into the memory buffer VPD - for this centaur. - - - - 0 - - - non-volatile - - - ATTR_ISDIMM_MBVPD_INDEX - DIRECT - - - - - HTMGT_SAFEMODE - 1 = in safemode. 0 = in normal mode. - - - - - volatile-zeroed - - - - - - - SPCWKUP_COUNT - - Keep track of the calls to Special Wakeup. Increment for each - call to enable, decrement for each call to disable. Not - thread-safe, used at runtime which is single-threaded. - - - - - - volatile-zeroed - - - - - - - IPMI_INSTANCE - Holds the IPMI instance number for this entity. - - - - - non-volatile - - - - ENTITY_ID - Enumeration indicating the IPMI entity ID, these values are - defined in the IPMI specification. These values will be used in place - of target type when events are sent to the BMC. - - NA - 0 - - - OTHER - 0x01 - - - PROCESSOR - 0x03 - - - SYSTEM_BOARD - 0x07 - - - POWER_MGMT - 0x15 - - - CHASSIS - 0x17 - - - MEMORY_DEVICE - 0x20 - - - BIOS - 0x22 - - - OS - 0x23 - - - CORE - 0xD0 - - - MEMBUF - 0xD1 - - - OCC - 0xD2 - - - REF_CLOCK - 0xD4 - - - PCI_CLOCK - 0xD5 - - - TOD_CLOCK - 0xD6 - - - APSS - 0xD7 - - - - - SENSOR_NAME - Enumeration indicating the IPMI sensor name, which will - be used by hostboot when determining the sensor number to return. - he sensor name consists of one byte of sensor type plus one byte of - sub-type, to differentiate similar sensors under the same target. - Our implementaion uses the IPMI defined entity ID as the sub-type. - - - PROC_TEMP - 0x0103 - - - DIMM_TEMP - 0x0120 - - - CORE_TEMP - 0x01D0 - - - STATE - 0x0500 - - - MEMBUF_TEMP - 0x01D1 - - - PROC_STATE - 0x0703 - - - CORE_STATE - 0x07D0 - - - DIMM_STATE - 0x0C20 - - - MEMBUF_STATE - 0x0CD1 - - - FW_BOOT_PROGRESS - 0x0F22 - - - SYSTEM_EVENT - 0x1201 - - - OS_BOOT - 0x1F23 - - - HOST_STATUS - 0x2223 - - - OCC_ACTIVE - 0x07D2 - - - CORE_FREQ - 0xC1D0 - - - APSS_CHANNEL - 0xC2D7 - - - PCI_ACTIVE - 0xC423 - - - REBOOT_COUNT - 0xC322 - - - FAULT - 0xC700 - - - BACKPLANE_FAULT - 0xC707 - - - REF_CLOCK_FAULT - 0xC7D4 - - - PCI_CLOCK_FAULT - 0xC7D5 - - - TOD_CLOCK_FAULT - 0xC7D6 - - - APSS_FAULT - 0xC7D7 - - - DERATING_FACTOR - 0xC815 - - - REDUNDANT_PS_POLICY - 0xCA22 - - - TPM_REQUIRED - 0xCC03 - - - - - SENSOR_TYPE - Enumeration indicating the IPMI sensor type, these values - are defined in the IPMI specification. These values will be used when - sending sensor reading events to the BMC. - - NA - 0 - - - TEMPERATURE - 0x01 - - - PROCESSOR - 0x07 - - - MEMORY - 0x0c - - - SYS_FW_PROGRESS - 0x0F - - - SYS_EVENT - 0x12 - - - OS_BOOT - 0x1F - - - APCI_POWER_STATE - 0x22 - - - FREQ - 0xC1 - - - POWER - 0xC2 - - - BOOT_COUNT - 0xC3 - - - PCI_LINK_PRES - 0xC4 - - - PWR_LIMIT_ACTIVE - 0xC4 - - - FAULT - 0xC7 - - - TPM_REQUIRED - 0xCC - - + + - + + N_PLUS_ONE_N_PER_CHIP + + Static per chip numerator setting when not in oversubscription. + + + + 0 + + + volatile-zeroed + + + - - IPMI_SENSORS - Attribute to hold 16 pairs of sensor name, sensor number - pairs. A sensor name consists of one byte of general sensor type - and one byte of sub-type + OVERSUB_N_PER_MBA + + Static per MBA numerator setting when in oversubscription. + Calculated based on MRW oversubscription memory power. + - - 16,2 + + 0 + - non-volatile + volatile-zeroed + - - IPMI_SENSOR_ARRAY - Enumeration defining the offsets into the - IPMI_SENSORS array. - - NAME_OFFSET - 0x00 - - - NUMBER_OFFSET - 0x01 - - - IPMI_MAX_BUFFER_SIZE - max buffer size to use for ipmi messages + OVERSUB_N_PER_CHIP + + Static per chip numerator setting when in oversubscription. + - - + + 0 + volatile-zeroed - + + + - SERIAL_NUMBER - The serial number for a particular FRU target + VPD_SWITCHES + Attribute storing VPD state information + + VPD flags + + pnorCacheValid + Set when this target's VPD data has been loaded + from EEPROM into the PNOR. + + uint8_t + 1 + 0 + + + pnorCacheValidRT + See pnorCacheValid. Allows runtime version to be + set separately from common version. + + uint8_t + 1 + 0 + + + disableWriteToPnorRT + Set to disable write-thru to PNOR at runtime + + uint8_t + 1 + 0 + + + reserved + Reserved for future expansion + uint8_t + 5 + 0 + + + volatile-zeroed + + + + + + HTMGT_SAFEMODE + 1 = in safemode. 0 = in normal mode. - 18 volatile-zeroed - - ATTR_SERIAL_NUMBER - DIRECT - - PART_NUMBER - The part number for a particular FRU target + SPCWKUP_COUNT + + Keep track of the calls to Special Wakeup. Increment for each + call to enable, decrement for each call to disable. Not + thread-safe, used at runtime which is single-threaded. + - - - 20 + + volatile-zeroed - - ATTR_PART_NUMBER - DIRECT - @@ -1575,148 +962,6 @@ ID for the sensor number returned with the elog. --> - - WOF_PROC_SORT - - creator: platform (MRW) - Look up table by active cores and nominal frequency to find WOF table - index. First column is number of active cores, Second is nominal - frequency, and third is the WOF table index (1,2,3,4). - - - - - 0,0,0, - 0,0,0, - 0,0,0, - 0,0,0, - - - 4,3 - - non-volatile - - - ATTR_WOF_PROC_SORT - DIRECT - - - - - WOF_FREQUENCY_UPLIFT - - creator: platform (MRW) - WOF frequency uplift table. The columns will be the # of active cores. - The rows will be the AC reduction %, or the amount of current difference - from the TDP current. The percentage value is encoded into a integer with - a fixed floating point of 2. (35.8% --> 3580). - - - - - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0 - - - 4,22,13 - - non-volatile - - - ATTR_WOF_FREQUENCY_UPLIFT - DIRECT - - - WOF_FREQUENCY_UPLIFT_SELECTED @@ -1753,32 +998,6 @@ ID for the sensor number returned with the elog. --> - - WOF_REGULATOR_EFFICIENCIES - - creator: platform (MRW) - WOF regulator efficiencies. The rows are the output voltage setting and - the columns are the output current. The data in the table is percentages - converted into two byte integers. - - - - - 0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0 - - - 3,14 - - non-volatile - - - ATTR_WOF_REGULATOR_EFFICIENCIES - DIRECT - - - IS_DRTM_MPIPL_HB diff --git a/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml b/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml index c3ad96b54..841d3d21d 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types_openpower.xml @@ -32,6 +32,133 @@ ===================================================================== --> + + ADC_CHANNEL_FUNC_IDS + ADC Channel function id. 16 channels. + + + 16 + + non-volatile + + + + + ADC_CHANNEL_SENSOR_NUMBERS + ADC Channel IPMI sensor numbers. 16 channels. + + + 16 + + non-volatile + + + + + ADC_CHANNEL_GNDS + ADC Channel ground. 16 channels. + + + 16 + + non-volatile + + + + + ADC_CHANNEL_GAINS + ADC channel gain * 1000. 16 channels. + + + 16 + + non-volatile + + + + + ADC_CHANNEL_OFFSETS + ADC channel offset * 1000. 16 channels + + + 16 + + non-volatile + + + + + APSS_GPIO_PORT_MODES + APSS GPIO PORT MODES + + + 2 + + non-volatile + + + + + APSS_GPIO_PORT_PINS + APSS GPIO PORT PINS + Port0 pin 0-7 + Port1 pin 8-15 + + + + 16 + + non-volatile + + + + + GPIO_INFO + Information needed to address GPIO device + + Structure to define the addessing for an I2C + slave device. + + i2cMasterPath + Entity path to the chip that contains the I2C + master + EntityPath + physical:sys-0 + + + port + Port from the I2C Master device. This is a 6-bit + value. + uint8_t + 0 + + + devAddr + Device address on the I2C bus. This is a 7-bit value, + but then shifted 1 bit left. + uint8_t + 0 + + + engine + I2C master engine. This is a 2-bit + value. + uint8_t + 0 + + + vddrPin + + Logical GPIO pin number used to enabled/disable VDDR + + uint8_t + 0 + + + non-volatile + + + HDAT_I2C_ENGINE @@ -157,4 +284,502 @@ + + ISDIMM_MBVPD_INDEX + + Multiple centaurs can sometimes have their VPD located in one + physical SEEPROM. This is the index into the memory buffer VPD + for this centaur. + + + + 0 + + + non-volatile + + + ATTR_ISDIMM_MBVPD_INDEX + DIRECT + + + + + IPMI_INSTANCE + Holds the IPMI instance number for this entity. + + + + + non-volatile + + + + + IPMI_SENSORS + Attribute to hold 16 pairs of sensor name, sensor number + pairs. A sensor name consists of one byte of general sensor type + and one byte of sub-type + + + 16,2 + + non-volatile + + + + + OP_TRACE_LITE + + Enable Trace lite on openpower. + + + + + + + volatile-zeroed + + + + + + + OPEN_POWER_DIMM_THROTTLE_TEMP_DEG_C + + DIMM temperature threshold where throttling will + occur in degrees C + + + + + non-volatile + + + + + OPEN_POWER_DIMM_ERROR_TEMP_DEG_C + + DIMM temperature where an error will be generated + in degrees C + + + + + non-volatile + + + + + OPEN_POWER_MEMCTRL_THROTTLE_TEMP_DEG_C + + Memory controller temperature threshold + where throttling will occur in degrees C + + + + + non-volatile + + + + + OPEN_POWER_PROC_WEIGHT + + Weight factor (in 1/10ths) for each core DTS to calculate a core + temperature. + + + + + non-volatile + + + + + OPEN_POWER_QUAD_WEIGHT + + Weight factor (in 1/10ths) for each quad (cache) DTS to calculate a core + temperature. + + + + + non-volatile + + + + + OPEN_POWER_PROC_DVFS_TEMP_DEG_C + + Processor temperature where DVFS will occur in degrees C + + + + + non-volatile + + + + + OPEN_POWER_MEMCTRL_ERROR_TEMP_DEG_C + + Memory controller temperature where an error will occur + in degrees C + + + + + non-volatile + + + + + OPEN_POWER_N_BULK_POWER_LIMIT_WATTS + + N mode bulk power supply limit in Watts + + + + + non-volatile + + + + + OPEN_POWER_N_MAX_MEM_POWER_WATTS + + Maximum power allocated to DIMMs in Watts + + + + + non-volatile + + + + + OPEN_POWER_MEMCTRL_READ_TIMEOUT_SEC + + Memory controller read timeout in seconds + + + + + non-volatile + + + + + OPEN_POWER_DIMM_READ_TIMEOUT_SEC + + DIMM read timeout in seconds + + + + + non-volatile + + + + + OPEN_POWER_PROC_ERROR_TEMP_DEG_C + + Processor temperature error threshold in degrees C + + + + + non-volatile + + + + + OPEN_POWER_MIN_MEM_UTILIZATION_THROTTLING + + Minimum memory utilization for memory throttling + + + + + non-volatile + + + + + OPEN_POWER_PROC_READ_TIMEOUT_SEC + + Processor read timeout in seconds + + + + + non-volatile + + + + + OPEN_POWER_REGULATOR_EFFICIENCY_FACTOR + + Regulator efficiency factor + + + + + non-volatile + + + + + OPEN_POWER_MIN_POWER_CAP_WATTS + + Minimum hard power cap in Watts + + + + + non-volatile + + + + + OPEN_POWER_SOFT_MIN_PCAP_WATTS + + Minimum soft power cap in Watts + + + + + non-volatile + + + + + OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS + + N+1 bulk power limit in Watts for systems running + with redundant power supplies (default) + + + + + non-volatile + + + + + OPEN_POWER_N_PLUS_ONE_HPC_BULK_POWER_LIMIT_WATTS + + N+1 bulk power limit in Watts for High Performance Computing + systems running with a non-redundant power supply policy + + + + 0 + + + non-volatile + + + + + OPEN_POWER_N_PLUS_ONE_MAX_MEM_POWER_WATTS + + N+1 max memory power in Watts + + + + + non-volatile + + + + + OPEN_POWER_TURBO_MODE_SUPPORTED + + If this system supports Turbo frequency mode. + 0x00 = no + 0x01 = yes + + + + + non-volatile + + + + + OPAL_MODEL + + Specifies the compatible model name for Opal to key off of. + This is sourced from the MRW and should be of the format + 'vendor,model', e.g. 'tyan,palmetto'. + + + + ibm,miscopenpower + 32 + + + non-volatile + + + + + ENTITY_ID + Enumeration indicating the IPMI entity ID, these values are + defined in the IPMI specification. These values will be used in place + of target type when events are sent to the BMC. + + NA + 0 + + + OTHER + 0x01 + + + PROCESSOR + 0x03 + + + SYSTEM_BOARD + 0x07 + + + POWER_MGMT + 0x15 + + + CHASSIS + 0x17 + + + MEMORY_DEVICE + 0x20 + + + BIOS + 0x22 + + + OS + 0x23 + + + CORE + 0xD0 + + + MEMBUF + 0xD1 + + + OCC + 0xD2 + + + REF_CLOCK + 0xD4 + + + PCI_CLOCK + 0xD5 + + + TOD_CLOCK + 0xD6 + + + APSS + 0xD7 + + + + + + SENSOR_TYPE + Enumeration indicating the IPMI sensor type, these values + are defined in the IPMI specification. These values will be used when + sending sensor reading events to the BMC. + + NA + 0 + + + TEMPERATURE + 0x01 + + + PROCESSOR + 0x07 + + + MEMORY + 0x0c + + + SYS_FW_PROGRESS + 0x0F + + + SYS_EVENT + 0x12 + + + OS_BOOT + 0x1F + + + APCI_POWER_STATE + 0x22 + + + FREQ + 0xC1 + + + POWER + 0xC2 + + + BOOT_COUNT + 0xC3 + + + PCI_LINK_PRES + 0xC4 + + + PWR_LIMIT_ACTIVE + 0xC4 + + + FAULT + 0xC7 + + + + + + + + + IPMI_MAX_BUFFER_SIZE + max buffer size to use for ipmi messages + + + + + volatile-zeroed + + + + + diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml index b45a0bc79..43414ed06 100755 --- a/src/usr/targeting/common/xmltohb/target_types_hb.xml +++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml @@ -31,55 +31,15 @@ Contains the definition of the different types of Hostboot targets and target type extensions to add attributes to common target types ================================================================= --> - - - base - - IPMI_INSTANCE - 0xFF - - - sys-sys-power9 - OP_TRACE_LITE IS_MPIPL_HB IBSCOM_ENABLE_OVERRIDE HB_MUTEX_TEST_LOCK HB_EXISTING_IMAGE - ADC_CHANNEL_FUNC_IDS - ADC_CHANNEL_SENSOR_NUMBERS - ADC_CHANNEL_GNDS - ADC_CHANNEL_GAINS - ADC_CHANNEL_OFFSETS - APSS_GPIO_PORT_MODES - APSS_GPIO_PORT_PINS - OPEN_POWER_DIMM_THROTTLE_TEMP_DEG_C - OPEN_POWER_DIMM_ERROR_TEMP_DEG_C - OPEN_POWER_MEMCTRL_THROTTLE_TEMP_DEG_C - OPEN_POWER_PROC_WEIGHT - OPEN_POWER_QUAD_WEIGHT - OPEN_POWER_PROC_DVFS_TEMP_DEG_C - OPEN_POWER_MEMCTRL_ERROR_TEMP_DEG_C - OPEN_POWER_N_BULK_POWER_LIMIT_WATTS - OPEN_POWER_N_MAX_MEM_POWER_WATTS - OPEN_POWER_MEMCTRL_READ_TIMEOUT_SEC - OPEN_POWER_DIMM_READ_TIMEOUT_SEC - OPEN_POWER_PROC_ERROR_TEMP_DEG_C - OPEN_POWER_MIN_MEM_UTILIZATION_THROTTLING - OPEN_POWER_PROC_READ_TIMEOUT_SEC - OPEN_POWER_REGULATOR_EFFICIENCY_FACTOR - OPEN_POWER_MIN_POWER_CAP_WATTS - OPEN_POWER_SOFT_MIN_PCAP_WATTS - OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS - OPEN_POWER_N_PLUS_ONE_MAX_MEM_POWER_WATTS - OPEN_POWER_TURBO_MODE_SUPPORTED OCC_CONTROL_DATA HTMGT_INTERNAL_FLAGS - OPAL_MODEL HTMGT_SAFEMODE - IPMI_SENSORS - IPMI_MAX_BUFFER_SIZE CLEAR_DIMM_SPD_ENABLE OCC_COMMON_AREA_PHYS_ADDR ATTN_CHK_ALL_PROCS @@ -93,7 +53,6 @@ enc-node-power9 - IPMI_SENSORS PART_NUMBER SERIAL_NUMBER VPD_SWITCHES @@ -178,7 +137,6 @@ XSCOM_VIRTUAL_ADDR - IPMI_SENSORS HB_TARGET_SCOMABLE @@ -226,7 +184,6 @@ ISDIMM_MBVPD_INDEX - IPMI_SENSORS PART_NUMBER SERIAL_NUMBER @@ -236,7 +193,6 @@ unit-core-power9 - IPMI_SENSORS HB_TARGET_SCOMABLE HBRT_HYP_ID @@ -261,7 +217,6 @@ lcard-dimm VPD_SWITCHES - IPMI_SENSORS PART_NUMBER SERIAL_NUMBER @@ -285,7 +240,6 @@ PSTATE_TABLE_MFG - IPMI_SENSORS diff --git a/src/usr/targeting/common/xmltohb/target_types_openpower.xml b/src/usr/targeting/common/xmltohb/target_types_openpower.xml index 4601d2dbd..548c5594a 100644 --- a/src/usr/targeting/common/xmltohb/target_types_openpower.xml +++ b/src/usr/targeting/common/xmltohb/target_types_openpower.xml @@ -41,6 +41,74 @@ HDAT_I2C_BUS_FREQ HDAT_I2C_DEV_PURPOSE HDAT_I2C_ELEMENTS + + IPMI_INSTANCE + 0xFF + + + sys-sys-power9 + ADC_CHANNEL_FUNC_IDS + ADC_CHANNEL_SENSOR_NUMBERS + ADC_CHANNEL_GNDS + ADC_CHANNEL_GAINS + ADC_CHANNEL_OFFSETS + APSS_GPIO_PORT_MODES + APSS_GPIO_PORT_PINS + IPMI_SENSORS + IPMI_MAX_BUFFER_SIZE + OP_TRACE_LITE + OPEN_POWER_DIMM_THROTTLE_TEMP_DEG_C + OPEN_POWER_DIMM_ERROR_TEMP_DEG_C + OPEN_POWER_MEMCTRL_THROTTLE_TEMP_DEG_C + OPEN_POWER_PROC_WEIGHT + OPEN_POWER_QUAD_WEIGHT + OPEN_POWER_PROC_DVFS_TEMP_DEG_C + OPEN_POWER_MEMCTRL_ERROR_TEMP_DEG_C + OPEN_POWER_N_BULK_POWER_LIMIT_WATTS + OPEN_POWER_N_MAX_MEM_POWER_WATTS + OPEN_POWER_MEMCTRL_READ_TIMEOUT_SEC + OPEN_POWER_DIMM_READ_TIMEOUT_SEC + OPEN_POWER_PROC_ERROR_TEMP_DEG_C + OPEN_POWER_MIN_MEM_UTILIZATION_THROTTLING + OPEN_POWER_PROC_READ_TIMEOUT_SEC + OPEN_POWER_REGULATOR_EFFICIENCY_FACTOR + OPEN_POWER_MIN_POWER_CAP_WATTS + OPEN_POWER_SOFT_MIN_PCAP_WATTS + OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS + OPEN_POWER_N_PLUS_ONE_MAX_MEM_POWER_WATTS + OPEN_POWER_TURBO_MODE_SUPPORTED + OPAL_MODEL + + + + enc-node-power9 + IPMI_SENSORS + + + + chip-processor-power9 + IPMI_SENSORS + + + + chip-membuf-centaur + IPMI_SENSORS + + + + lcard-dimm + IPMI_SENSORS + + + + occ + IPMI_SENSORS + + + + unit-core-power9 + IPMI_SENSORS + -- cgit v1.2.3