commit | 6619ae468393d362638b525cfd927b1a2c125727 | [log] [tgz] |
---|---|---|
author | Johnathan Mantey <johnathanx.mantey@intel.com> | Fri Aug 06 11:21:10 2021 -0700 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Fri Dec 10 23:19:46 2021 +0000 |
tree | cdddb76e98ee4ebde937aa5712d9424bc2704404 | |
parent | ce9827770d89a8f87a7a1970411e7cb7b6275f5b [diff] |
Improve SDR sensor number mapping for sensor nums above 510 The recent submission to support SDR records defining Type 01 records for sensors did not work when the system had more than 510 sensors. A recent change supplied a system that enumerated more sensors then IPMI can support. The change highlighted an error in how the Type 01 records were built. This commit handles systems with a larger set of sensors. The code for handling SDR # 511 correctly creates sensor number 768. It then fills sensors to the limit of LUN 3. Tested: A SUT that supplied 1946 sensors was used to implement and test the code. Test cases: "ipmitool sdr elist" returns 765 sensors "ipmitool sensor list" returns 765 sensors "ipmitool -l <lun> raw 4 0x2d <sn>" performed the correct behavior for luns 0-3, sensor numbers 0, 254, 255. Ported From: https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/45744 Change-Id: I8e5160c93e79a366b897554efdd60e2edcd3594a Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com> Signed-off-by: Willy Tu <wltu@google.com>
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.