summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/attroverride/attrTextToBinaryBlob.H
diff options
context:
space:
mode:
authorBrian Bakke <bbakke@us.ibm.com>2018-02-14 13:49:36 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-02-22 16:35:33 -0500
commit3403445e2f759b653bc08875aa1b27777b935ae0 (patch)
treea3f23869d8f4269ac600572d7b5b905ff071f841 /src/usr/targeting/attroverride/attrTextToBinaryBlob.H
parent3fbe556d9d69b8f4b7978f5b4053ca0bd9de9078 (diff)
downloadtalos-hostboot-3403445e2f759b653bc08875aa1b27777b935ae0.tar.gz
talos-hostboot-3403445e2f759b653bc08875aa1b27777b935ae0.zip
Fix and codify how system and node targets are handled by attribute overrides
This change adds support that allows the "chip type" and "chip unit type" parameters to preceed the "system string" parameter in a target line. The API is documented in attrTextToBinaryBlog.H and README.attr_override Change-Id: I850472102ae5f3907223ba1dc5d5d22d0a0da72f RTC: 187338 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54061 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/attroverride/attrTextToBinaryBlob.H')
-rwxr-xr-xsrc/usr/targeting/attroverride/attrTextToBinaryBlob.H42
1 files changed, 34 insertions, 8 deletions
diff --git a/src/usr/targeting/attroverride/attrTextToBinaryBlob.H b/src/usr/targeting/attroverride/attrTextToBinaryBlob.H
index 9f1174315..ee12f61e6 100755
--- a/src/usr/targeting/attroverride/attrTextToBinaryBlob.H
+++ b/src/usr/targeting/attroverride/attrTextToBinaryBlob.H
@@ -74,12 +74,28 @@ namespace AttrTextToBinaryBlob
* ---------------------------------------
* The format of a Unit Target Line is :
*
- * <system string> || [:nz] || :<chip type> || [.<chip unit type>] ||
- * :<target position> || [:<unit position>]
+ * target = <system string> || [:nz] ||
+ * :<chip type> || [.<chip unit type>] ||
+ * :<chip position> || [:<unit position>]
*
- * note : x = 0
- * note : Y = 0
- * note : z may be :
+ * Examples:
+ * target = k0:s0:centaur:p06 // no optional fields
+ * target = k0:s0:n0:centaur.mba:p00:c0 // all optional fields
+ *
+ * ---- OR ----
+ * target = <chip type> || [.<chip unit type>] ||
+ * : <system string> || [:nz] ||
+ * :<chip position> || [:<unit position>]
+ *
+ * Examples:
+ * target = centaur:k0:s0:p06 // no optional fields
+ * target = centaur.mba:k0:s0:n0:p00:c0 // all optional fields
+ *
+ *
+ * <system string> is defined above; x=0, y=0
+ *
+ * nz : optional node number term
+ * z may be :
* - single digit 0-9
* - comma separated list of digits 0-9
* -- 2 or more items in list
@@ -88,7 +104,6 @@ namespace AttrTextToBinaryBlob
* e.g. 5,3,9
* - all
*
- *
* <chip type>
* definitions :
* src/usr/targeting/attroverride/attrTextToBinaryBlob.C
@@ -101,7 +116,7 @@ namespace AttrTextToBinaryBlob
* AttrOverrideSyncConstants::CHIP_UNIT_TYPE_TARG_STR_TO_TYPE
* e.g. ex, mca, obus
*
- * <target position>
+ * <chip position>
* pw
* note : w may be :
* - single number 0 - 65,534
@@ -168,6 +183,17 @@ namespace AttrTextToBinaryBlob
* target = k0:s0:n0,6,9:centaur.mba:p06:c1
* ATTR_MSS_FREQ 0x00000640 CONST
*
+ * ATTR_MSS_VOLT_VDDR_MILLIVOLTS 0x00000546 u32 CONST
+ *
+ * target = k0:s0:nall:p9:pall
+ * ATTR_VOLTAGE_EXT_VDD_BIAS_ULTRATURBO -5 CONST
+ *
+ * target = k0:s0:n4:centaur:p06
+ * ATTR_MSS_FREQ 0x00000345 CONST
+ *
+ * target = k0:s0:n0,6,9:centaur.mba:p06:c1
+ * ATTR_MSS_FREQ 0x00000640 CONST
+ *
*/
@@ -304,7 +330,7 @@ namespace AttrTextToBinaryBlob
* Structure for target's identification
*
* node Target Node Number
- * targetPos Target Position
+ * targetPos Target Position (chip position)
* unitPos Target Unit Position
*/
struct target_label
OpenPOWER on IntegriCloud