summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-11-13 16:06:20 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-11-15 18:03:21 -0500
commitdacd80a9811f5865e53b29e1e0c2d0dddd1e9719 (patch)
treef63db592a03298e80bc1aaff02fdad1f83246433 /src/include
parenteaf4ca605f7b0e23fe72188b3e2f30aa9879d41c (diff)
downloadtalos-hostboot-dacd80a9811f5865e53b29e1e0c2d0dddd1e9719.tar.gz
talos-hostboot-dacd80a9811f5865e53b29e1e0c2d0dddd1e9719.zip
Fix grabbing config from NV keyword data
getGPUSensors was returning INVALID_IPMI_SENSOR for all GPUs as it was incorrectly reading the NV config ID. Change-Id: Iab71302f2066304dbf17e4fafcde0af8ca3c1240 CQ: SW407191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49615 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Brian E. Bakke <bbakke@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/usr/hdat/hdat.H8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/usr/hdat/hdat.H b/src/include/usr/hdat/hdat.H
index bf005866b..0f750936c 100755
--- a/src/include/usr/hdat/hdat.H
+++ b/src/include/usr/hdat/hdat.H
@@ -239,6 +239,14 @@ enum hdatRhbPermType : uint8_t
RHB_READ_WRITE = RHB_READ_ONLY | RHB_WRITE_ONLY,
};
+/** NV Keyword header struct */
+typedef struct{
+ uint32_t magic; // = "NV00"
+ uint8_t version; // Version of the structure = 0x01 start
+ uint8_t config; // Configuration specifier : redbud=0x01,sequoia=0x02
+ uint8_t reserved[249]; // keyword is 255 bytes long
+}__attribute__ ((packed)) hdatNVKwdStruct_t;
+
/* vpd constants
* Defining vpd constants
*/
OpenPOWER on IntegriCloud