#
69b4c281 |
| 03-Mar-2025 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ic23653be3ed404980fd0e723d9ed8354e2b32579 Signed-off-by: Patrick Williams <p
clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Ic23653be3ed404980fd0e723d9ed8354e2b32579 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
1318a5ed |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I01547e98d27910919e09ebf7907c86292a6c825d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
de6694e2 |
| 17-Jul-2024 |
George Liu <liuxiwei@ieisystem.com> |
dbus-sdr: switch to lg2
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I076cb6429a56cf9b5123420f36daf6328c2d64b9
|
#
34d19736 |
| 17-Jul-2024 |
Johnathan Mantey <johnathanx.mantey@intel.com> |
Permit dynamic insertion of sensor type codes
The existing sensorTypes flat_map is an immutable data structure. This makes adding OEM style sensor types difficult. New entries, that may not be gener
Permit dynamic insertion of sensor type codes
The existing sensorTypes flat_map is an immutable data structure. This makes adding OEM style sensor types difficult. New entries, that may not be general purpose either need to be pushed upstream for all, or they have to be updated by carrying a patch. Keeping a patch up to date is an undesirable method.
Instead of using either of the prior methods, make the flat_map a writable object. Adding new entries can be done at run time using the flat_map emplace() function. Adding new sensor types is recommended to be done by overriding the weak linked getOtherSensorsCount(), placed in the sensorcommands_oem.cpp file. Using a GCC 'constructor' style function does not work due to uncertainty of initialization order.
See commit 777cfaf2b3:bb6667fbbea7612255137970c3dbdb Enable OEM creation of non-Type1 SDRs
Tested: Added an emplace() call into the strong linked getOtherSensorCommands Used 'ipmitool sdr dump sdrs.bin' Inspected the resulting SDR data and confirmed the sensors of interest had an OEM type code as dictated by the sensorTypes map
Change-Id: Ifcf6297a8b161b720651bc6411409014c37ce88c Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
show more ...
|
#
c1c7eac4 |
| 04-Feb-2024 |
George Liu <liuxiwei@ieisystem.com> |
Refactor to call the GetSubTree method
Uniformly use the getSubTree method of utils.hpp to obtain objectTree
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I20204745a01c50f053db74a57
Refactor to call the GetSubTree method
Uniformly use the getSubTree method of utils.hpp to obtain objectTree
Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I20204745a01c50f053db74a5749a070bc8193d39
show more ...
|
#
8fb5b89a |
| 02-Nov-2023 |
Alexander Hansen <alexander.hansen@9elements.com> |
prevent logspam from getObjectInterfaces
prevent logspam from "Failed to GetObject".
The function does not print anymore and its caller can print an error if needed.
The error defaults to phosphor
prevent logspam from getObjectInterfaces
prevent logspam from "Failed to GetObject".
The function does not print anymore and its caller can print an error if needed.
The error defaults to phosphor::logging::level::DEBUG since it's looping over the associations.
Therefore, failure in one codepath does not constitute an error.
Tested: logspam is gone.
Change-Id: Ie800181ff80ed56846815ea377f347a784d49521 Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
show more ...
|
#
04b0b079 |
| 10-Oct-2023 |
Johnathan Mantey <johnathanx.mantey@intel.com> |
Enable reducing the number of sensors managed by IPMI
IPMI is only able to support a finite amount of SDR records. Modern servers are capable of exceeding the number of sensors the IPMI specificatio
Enable reducing the number of sensors managed by IPMI
IPMI is only able to support a finite amount of SDR records. Modern servers are capable of exceeding the number of sensors the IPMI specification can support.
The change made in this commit filters sensors from a service based upon contents in a JSON configuration file.
Tested: Confirmed the default compile resulted in too many sensors being created. Added the 'sensor_filter.json' file and confirmed the number of sensors was reduced, and 'ipmitool sdr list' no longer exhibited error messages.
Change-Id: I3643e06abbb8708d3f4000f35c79be8901e34057 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
show more ...
|
#
62e3ca80 |
| 31-Jan-2024 |
Willy Tu <wltu@google.com> |
sdr-dbus: Reduce log spam on bitmap error
Remove the log for out_of_range error for getSensorNumberFromPath and getPathFromSensorNumber. Log only once at the end of looping through the sensor tree i
sdr-dbus: Reduce log spam on bitmap error
Remove the log for out_of_range error for getSensorNumberFromPath and getPathFromSensorNumber. Log only once at the end of looping through the sensor tree instead of for every sensor.
Tested: The spam of ``` bimap<>: invalid key ``` is now gone.
Change-Id: Ifc22141cc5450b57ce272c46537240084d94d2aa Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
369824e7 |
| 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ic5fd073faa7391d3f0b37787d6a9c7688c9a3253 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7bb84dba |
| 25-Jun-2023 |
Harvey Wu <Harvey.Wu@quantatw.com> |
dbus-sdr: change to continue when path not found
- If the virtual sensor has two association paths as below, and the real inventory path is related to entity-manager according to the HW config.
dbus-sdr: change to continue when path not found
- If the virtual sensor has two association paths as below, and the real inventory path is related to entity-manager according to the HW config. So we need to continue for loop when the first inventory path not found.
``` { "type" : "a(sss)", "data" : [ [ "chassis", "all_sensors", "/xyz/openbmc_project/inventory/system/board/BMC" ], [ "chassis", "all_sensors", "/xyz/openbmc_project/inventory/system/board/BMCV2" ] ] }
```
Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com> Change-Id: I3c4ebe953793c7f28a112bb85a6cb89bd41adc3a
show more ...
|
#
fbc6c9d7 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I44441096113929ce96eb1439e2932e6ff3c87f27 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
4eca2510 |
| 20-Jun-2022 |
Willy Tu <wltu@google.com> |
dbus-sdr: Remove excessive `Failed to GetAll` error message
The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making
dbus-sdr: Remove excessive `Failed to GetAll` error message
The `Failed to GetAll` message will happen if any of the sensor doesn't have `Inventory.Decorator.Ipmi` dbus interface. Instead of making a `GetAll` call to all sensors, we will check if the sensor have the interface first before requesting it. This will remove the need to attempt sigificantly amount of unnecessary dbus calls.
Tested: ipmitool sdr return the same sensor as before, but with no excessive error message.
There is also some performance gain after removing the extra dbus calls.
Before, ``` $ time ipmitool sdr | wc -l 346
real 0m13.786s user 0m0.315s sys 0m0.115s
$ time ipmitool sdr | wc -l 346
real 0m14.692s user 0m0.274s sys 0m0.196s ```
After, ``` $ time ipmitool sdr | wc -l 346
real 0m11.765s user 0m0.205s sys 0m0.155s
$ time ipmitool sdr | wc -l 346
real 0m11.403s user 0m0.269s sys 0m0.141s ```
Change-Id: Ieab19fbae9e1fb40c2cfac9cd584cf40dba3f500 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
5d82f474 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ibd2a0b512bfb7caf65bfab64b271d194da520aac
show more ...
|
#
11d68897 |
| 20-Jan-2022 |
Willy Tu <wltu@google.com> |
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosph
cleanup: Remove all warning errors for the Meson build support
Remove all the build warning to prepare for the meson build. Meson build will be in https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/47748
Tested: Ipmi command works fine the cleanup. ``` $ systemctl status phosphor-ipmi-host ● phosphor-ipmi-host.service - Phosphor Inband IPMI Loaded: loaded (/lib/systemd/system/phosphor-ipmi-host.service; enabled; vendor preset: enabled) Active: active (running) since Thu 1970-01-08 21:20:56 UTC; 21s ago Main PID: 24987 (ipmid) CGroup: /system.slice/phosphor-ipmi-host.service └─24987 /tmp/ipmid
Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X30] for Ethstats Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X32] for Sys Commands Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X002B79], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X02] for I2C Jan 08 21:20:56 $HOST ipmid[24987]: I2C_WHITELIST_CHECK is disabled, do not populate whitelist Jan 08 21:20:56 $HOST ipmid[24987]: Registering OEM:[0X00C2CF], Cmd:[0X04] for Manual Zone Control Jan 08 21:20:56 $HOST systemd[1]: Started Phosphor Inband IPMI. Jan 08 21:20:56 $HOST ipmid[24987]: Loading whitelist filter Jan 08 21:20:56 $HOST ipmid[24987]: Set restrictedMode = true (reverse-i-search)`ipmi': systemctl status phosphor-^Cmi-host
$ ipmitool mc info Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 7244 Manufacturer Name : Quanta Computer Inc. Product ID : 14426 (0x385a) Product Name : Unknown (0x385A) Device Available : yes Provides Device SDRs : yes Additional Device Support : Sensor Device SEL Device FRU Inventory Device Chassis Device Aux Firmware Rev Info : 0x00 0x00 0x00 0x00 ```
Change-Id: I372c9433a274bc633a24d213b7a1bc205531e33d Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
f0a89946 |
| 29-Jul-2021 |
Jie Yang <jjy@google.com> |
dbus-sdr: Add sensor mutability
Sensor ValueMutability interface has already been merged into openbmc/phosphor-dbus-interfaces here: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interf
dbus-sdr: Add sensor mutability
Sensor ValueMutability interface has already been merged into openbmc/phosphor-dbus-interfaces here: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/36333
This change adds the IPMI server-side changes, namely, the test for the "Mutable" member of this interface existing and being "true". If so, it grants external write permission to this sensor, otherwise, it will remain read-only (which is the default).
It replaces a previous compile-time constant that could only be changed at compilation time, and would affect all sensors globally, neither of which was desirable.
This "Mutable" interface boolean can be used to grant write permission to sensors, such as external sensors and fan PWM sensors in manual mode. IPMI setting sensor reading will check the mutability first.
It achieves feature parity with the old "mutability: Mutability::Write|Mutability::Read" settings, in the old hardcoded YAML configuration files.
Also see the dbus-sensors changes, namely, the reading of this parameter from entity-manager configuration, and setting this D-Bus property accordingly, if "Mutable" is true: https://gerrit.openbmc-project.xyz/c/openbmc/dbus-sensors/+/45405
Tested: With both 45405 and 45407 changes in, this feature has been working nicely in our local environment for some time now.
Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I4ecff1a0424c0bc23d3a90466e1bb4b655f07859 Signed-off-by: Josh Lehan <krellan@google.com>
show more ...
|
#
a2ad2da8 |
| 06-Oct-2021 |
Patrick Williams <patrick@stwcx.xyz> |
catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic2b49715c7b81ac5bcfc12ff2d3b4c593cd95ce7
|
#
2703b029 |
| 06-Jul-2021 |
Scron Chang <Scron.Chang@quantatw.com> |
dbus-sdr: Add hybrid sensors stack option
Because the dynamic sensor stack doesn't support non-threshold sensors, this patch gives way for retrieving non-threshold sensors by walking through the sen
dbus-sdr: Add hybrid sensors stack option
Because the dynamic sensor stack doesn't support non-threshold sensors, this patch gives way for retrieving non-threshold sensors by walking through the sensor.yaml. However, this patch filters out any threshold sensors written in the sensor yaml file because the current dbus-sdr already supports them.
The sensor stack has both dynamic and static in this patch, so this new feature is named hybrid sensor stack.
Tested: Try the SDR get command 0xF9: entityID: 0x21 entityInstance: 0 interfaces: xyz.openbmc_project.State.Watchdog: ExpireAction: Offsets: 0x00: assert: xyz.openbmc_project.State.Watchdog.Action.None type: string 0x01: assert: xyz.openbmc_project.State.Watchdog.Action.HardReset type: string 0x02: assert: xyz.openbmc_project.State.Watchdog.Action.PowerOff type: string 0x03: assert: xyz.openbmc_project.State.Watchdog.Action.PowerCycle type: string mutability: Mutability::Read path: /xyz/openbmc_project/watchdog/host0 readingType: assertion sensorNamePattern: nameLeaf sensorReadingType: 0x6F sensorType: 0x23 serviceInterface: org.freedesktop.DBus.Properties
$ ipmitool sdr get host0 Sensor ID : host0 (0xcd) Entity ID : 33.0 (System Management Software) Sensor Type (Discrete): Watchdog2 (0x23) Sensor Reading : 0h Event Message Control : Per-threshold States Asserted : Watchdog2 [Hard reset] Event Status : Event Messages Disabled Assertion Events : Watchdog2 [Hard reset] Event Enable : Event Messages Disabled Assertions Enabled : Watchdog2 [Timer expired] [Hard reset] [Power down] [Power cycle] OEM : 0
Signed-off-by: Scron Chang <Scron.Chang@quantatw.com> Change-Id: I1ac16f483f2f725077de9c15595195b848a224ab
show more ...
|
#
2b42d7ee |
| 06-Jul-2021 |
Scron Chang <Scron.Chang@quantatw.com> |
dbus-sdr: Add sensor event type to sensor
The sensor event type only returned threshold sensor(0x01). Implement the functionality of getSensorEventTypeFromPath to support sensor event type codes: un
dbus-sdr: Add sensor event type to sensor
The sensor event type only returned threshold sensor(0x01). Implement the functionality of getSensorEventTypeFromPath to support sensor event type codes: unspecified(0x00), threshold(0x01), and sensor-specified(0x6f).
Signed-off-by: Scron Chang <Scron.Chang@quantatw.com> Change-Id: Ic08bce55422b8d436fb032627a0a8f96fead1d61
show more ...
|
#
9a5b51e3 |
| 06-Jan-2021 |
Hao Jiang <jianghao@google.com> |
dbus-sdr: Make VoltageRegulatorMode exposed to sensorTree.
getSensorSubtree() now search for xyz.openbmc_project.Control.VoltageRegulatorMode under the path /xyz/openbmc_project/vr.
Only the failur
dbus-sdr: Make VoltageRegulatorMode exposed to sensorTree.
getSensorSubtree() now search for xyz.openbmc_project.Control.VoltageRegulatorMode under the path /xyz/openbmc_project/vr.
Only the failure of searching sensor path is considered as an error.
Tested: ipmiStorageGetSDR()
This requires all the changes in https://gerrit.openbmc-project.xyz/q/hashtag:%22dbus-sdr-vr-sensors%22+(status:open%20OR%20status:merged)
``` ipmitool sdr list event -v Running Get PICMG Properties my_addr 0x20, transit 0, target 0 Error response 0xc1 from Get PICMG Properities Running Get VSO Capabilities my_addr 0x20, transit 0, target 0 Invalid completion code received: Invalid command Discovered IPMB address 0x0 Sensor ID : vr_sensor_0_fprof (0xb4) Entity ID : 11.5 (Add-in Card) Sensor Type : Module / Board (0x15)
Sensor ID : vr_sensor_1_fprof (0xb5) Entity ID : 11.6 (Add-in Card) Sensor Type : Module / Board (0x15)
...
```
Signed-off-by: Hao Jiang <jianghao@google.com> Change-Id: I76d3fedb1cc0a2bc865c2a9c83c0418eb0ee99be Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
a55c953d |
| 28-Oct-2020 |
Josh Lehan <krellan@google.com> |
sensorcommands: Add IPMI reading logging instrumentation
Noteworthy sensor readings, such as the first reading, a new minimum or maximum value, or ending a good or bad streak of readings, will now h
sensorcommands: Add IPMI reading logging instrumentation
Noteworthy sensor readings, such as the first reading, a new minimum or maximum value, or ending a good or bad streak of readings, will now have some useful logging output.
Tested: Example logs ``` root@bmc:~# journalctl --no-pager | grep 'IPMI sensor' Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor0: First reading, value=6 byte=51 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor0: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor1: First reading, value=7 byte=59 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor1: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor2: First reading, value=1.437 byte=12 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor2: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor3: First reading, value=1.437 byte=12 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor3: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor4: First reading, value=1.96 byte=17 Jan 01 00:03:16 bmc ipmid[2865]: IPMI sensor sensor4: Range min=0 max=30, Coefficients mValue=118 rExp=-3 bValue=0 bExp=0 bSigned=0 ... ``` Machine and sensors names are replaced.
Ported from: https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/40327
Signed-off-by: Josh Lehan <krellan@google.com> Change-Id: Idf7c8d4285b286fdc0afb3f0e7260c2d4915b326 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
a8b5b26d |
| 06-Feb-2021 |
Kuiying Wang <kuiying.wang@intel.com> |
dbus-sdr: Fix sensor missing issue.
There is issue for "BMC randomly unable to get sensor readings". When invoking "ipmitool sdr" from Linux OS (host), it only returns three sensors like following p
dbus-sdr: Fix sensor missing issue.
There is issue for "BMC randomly unable to get sensor readings". When invoking "ipmitool sdr" from Linux OS (host), it only returns three sensors like following partial records: [root@localhost ~]# ipmitool sdr CPU Power | 0 Watts | ok Memory Power | 0 Watts | ok Total Power | 0 Watts | ok [root@localhost ~]#
There 2 caches sensorTree and sensorDataRecords. When sensorDataRecords cache and sensorTree cache is not sync, which causes this issue, like sensorTree cache has 10 sensors but there are just 5 sensors in sensorDataRecords cache. Most important sensorDataRecords cache is not necessary, ipmiStorageGetSDR could get data from dbus directly and no any performance impact.
Using sensorMapUpdatePeriod(10s) but not sensorMapSdrUpdatePeriod(60s), 60 seconds are too long to answer user with some SDR content at the first time of BMC bootup.
Tested: All sensors could be listed even at booting phase. Could print correct sensor set along with the boot progress.
root@intel-obmc:~# ipmitool sdr CPU Power | 202 Watts | ok Memory Power | 0 Watts | ok Total Power | 312 Watts | ok root@intel-obmc:~# ipmitool sdr System Airflow | 14 unspecified | ok PSU1 In Current | 1.18 Amps | ok PSU1 Out Current | 20.80 Amps | ok PSU2 In Current | 0 Amps | ok PSU2 Out Current | no reading | ns Pwm 1 | 29.79 unspecifi | ok Pwm 2 | 29.79 unspecifi | ok Pwm 3 | 29.79 unspecifi | ok Pwm 4 | 29.79 unspecifi | ok Pwm 5 | 29.79 unspecifi | ok Pwm 6 | 29.79 unspecifi | ok Pwm 13 | 29.79 unspecifi | ok Pwm 14 | 29.79 unspecifi | ok Pwm 15 | 29.79 unspecifi | ok Pwm 16 | 29.79 unspecifi | ok Pwm PSU1 Fan 1 | 39.98 unspecifi | ok Pwm PSU1 Fan 2 | 39.98 unspecifi | ok ............. PVCCD HV CPU1 | 1.18 Volts | ok PVCCFA EHV FIVRA | 1.16 Volts | ok PVCCINFAON CPU1 | 1.11 Volts | ok PVCCIN CPU1 | 1.68 Volts | ok PVNN PCH AUX | 1.03 Volts | ok root@intel-obmc:~#
Ported from: https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/40362
Changes made: - Removed intel specific changes like nmDiscoveryIndex or ipmi::storage::nmDiscoverySDRCount
Change-Id: I729d9bcbf91f0e96c62fb5f5ebe0240a0eaa47df Signed-off-by: Kuiying Wang <kuiying.wang@intel.com> Signed-off-by: Helen Huang <he.huang@linux.intel.com> Signed-off-by: Kuiying Wang <kuiying.wang@intel.com> Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
de54f486 |
| 26-Jan-2021 |
Willy Tu <wltu@google.com> |
dbus-sdr: Initial Dynamic Sensor Stack
Migrate intel-ipmi-oem dynamic sensor stack into phosphor-host-ipmid for more general use.
The files are copied from https://gerrit.openbmc-project.xyz/c/open
dbus-sdr: Initial Dynamic Sensor Stack
Migrate intel-ipmi-oem dynamic sensor stack into phosphor-host-ipmid for more general use.
The files are copied from https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/39743
https://gerrit.openbmc-project.xyz/plugins/gitiles/openbmc/intel-ipmi-oem/+/b910987a7d832e38e9342f0946aeb555a48f9cb0
Created `libdynamiccmds` to enable dynamic sensor stack.
Minor changes in the migration include:
1, Removing the use of `commandutils.hpp` in all files since it is only used for ``` static constexpr bool debug = false; ``` It is added to `sdrutils.hpp` instead.
2, Update lastWriteAddr to size_t to match the vector.size() type during comparison.
3, Renamed the sensorcommand unit test to sensorcommands_unitest.cpp
4, Removed unused variables. - sensorcommands ``` constexpr uint8_t thresholdMask = 0xFF; ``` - sensorcommands_unitest ``` double yError = std::abs(y - yRoundtrip); ``` 5, Removed Intel Specific Changes - Redfish logs - node manager/ME - BIOS to SEL event 6, Removed externing a global variable for sensorTree. - Replaced it with a method that returns a singleton - auto& sensorTree = getSensorTree(); for access 7, Replaced intel_oem namespace with dynamic_sensors
8, Removed types.hpp and use `ipmid/types.hpp` directly - Updated the types to match ipmid/types - Added Association and std::vector<Association>> under Value.
9, Add cpp files for sdrutils and sensorutils.
10, link libipmid as it is required for getManagedObjects needed by sensorcommands.cpp
Signed-off-by: Willy Tu <wltu@google.com> Change-Id: If944620c895ecf4c9f4c3efe72479f4de276f4fb Signed-off-by: Vijay Khemka <vijaykhemkalinux@gmail.com>
show more ...
|