diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2017-11-13 16:06:20 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-11-15 18:03:21 -0500 |
commit | dacd80a9811f5865e53b29e1e0c2d0dddd1e9719 (patch) | |
tree | f63db592a03298e80bc1aaff02fdad1f83246433 /src/include | |
parent | eaf4ca605f7b0e23fe72188b3e2f30aa9879d41c (diff) | |
download | talos-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-x | src/include/usr/hdat/hdat.H | 8 |
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 */ |