Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fby4: sd: support ssd temperature sensors #1485

Closed
wants to merge 1 commit into from

Conversation

EliHuang-wiwynn
Copy link
Contributor

Summary:
Description:

  • Add following sensors:
  • MB_SSD_BOOT_TEMP_C
  • MB_SSD_DATA_TEMP_C Motivation:
  • support ssd temperature sensors Test Plan:
  • Get corresponding sensor reading

Test Log:
root@bmc:/tmp# busctl introspect xyz.openbmc_project.PLDM /xyz/openbmc_project/sensors/temperature/MB_SSD_BOOT_TEMP_C_17_134
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Association.Definitions interface - - -
.Associations property a(sss) 1 "chassis" "all_sensors" "/xyz/openb... emits-change writable
xyz.openbmc_project.Sensor.Threshold.Critical interface - - -
.CriticalAlarmHigh property b false emits-change writable
.CriticalAlarmLow property b false emits-change writable
.CriticalHigh property d 77 emits-change writable
.CriticalLow property d 0 emits-change writable
.CriticalHighAlarmAsserted signal d - -
.CriticalHighAlarmDeasserted signal d - -
.CriticalLowAlarmAsserted signal d - -
.CriticalLowAlarmDeasserted signal d - -
xyz.openbmc_project.Sensor.Threshold.Warning interface - - -
.WarningAlarmHigh property b true emits-change writable
.WarningAlarmLow property b false emits-change writable
.WarningHigh property d 0 emits-change writable
.WarningLow property d 0 emits-change writable
.WarningHighAlarmAsserted signal d - -
.WarningHighAlarmDeasserted signal d - -
.WarningLowAlarmAsserted signal d - -
.WarningLowAlarmDeasserted signal d - -
xyz.openbmc_project.Sensor.Value interface - - -
.MaxValue property d 255 emits-change writable
.MinValue property d 0 emits-change writable
.Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable
.Value property d 41 emits-change writable
xyz.openbmc_project.State.Decorator.Availability interface - - -
.Available property b true emits-change writable
xyz.openbmc_project.State.Decorator.OperationalStatus interface - - -
.Functional property b true emits-change writable
root@bmc:/tmp# busctl introspect xyz.openbmc_project.PLDM /xyz/openbmc_project/sensors/temperature/MB_SSD_DATA_TEMP_C_18_134
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Association.Definitions interface - - -
.Associations property a(sss) 1 "chassis" "all_sensors" "/xyz/openb... emits-change writable
xyz.openbmc_project.Sensor.Threshold.Critical interface - - -
.CriticalAlarmHigh property b false emits-change writable
.CriticalAlarmLow property b false emits-change writable
.CriticalHigh property d 77 emits-change writable
.CriticalLow property d 0 emits-change writable
.CriticalHighAlarmAsserted signal d - -
.CriticalHighAlarmDeasserted signal d - -
.CriticalLowAlarmAsserted signal d - -
.CriticalLowAlarmDeasserted signal d - -
xyz.openbmc_project.Sensor.Threshold.Warning interface - - -
.WarningAlarmHigh property b true emits-change writable
.WarningAlarmLow property b false emits-change writable
.WarningHigh property d 0 emits-change writable
.WarningLow property d 0 emits-change writable
.WarningHighAlarmAsserted signal d - -
.WarningHighAlarmDeasserted signal d - -
.WarningLowAlarmAsserted signal d - -
.WarningLowAlarmDeasserted signal d - -
xyz.openbmc_project.Sensor.Value interface - - -
.MaxValue property d 255 emits-change writable
.MinValue property d 0 emits-change writable
.Unit property s "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable
.Value property d 41 emits-change writable
xyz.openbmc_project.State.Decorator.Availability interface - - -
.Available property b true emits-change writable
xyz.openbmc_project.State.Decorator.OperationalStatus interface - - -
.Functional property b true emits-change writable

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 28, 2023
@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@wangx6f
Copy link

wangx6f commented Nov 30, 2023

There is a merge conflict in "plat_pldm_sensor.h" when push, could you update the PR to resolve the conflict?

@facebook-github-bot
Copy link
Contributor

@EliHuang-wiwynn has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
Description:
- Add following sensors:
 - MB_SSD_BOOT_TEMP_C
 - MB_SSD_DATA_TEMP_C
Motivation:
- support ssd temperature sensors
Test Plan:
- Get corresponding sensor reading

Test Log:
root@bmc:/tmp# busctl introspect xyz.openbmc_project.PLDM /xyz/openbmc_project/sensors/temperature/MB_SSD_BOOT_TEMP_C_17_134
NAME                                                  TYPE      SIGNATURE RESULT/VALUE                             FLAGS
org.freedesktop.DBus.Introspectable                   interface -         -                                        -
.Introspect                                           method    -         s                                        -
org.freedesktop.DBus.Peer                             interface -         -                                        -
.GetMachineId                                         method    -         s                                        -
.Ping                                                 method    -         -                                        -
org.freedesktop.DBus.Properties                       interface -         -                                        -
.Get                                                  method    ss        v                                        -
.GetAll                                               method    s         a{sv}                                    -
.Set                                                  method    ssv       -                                        -
.PropertiesChanged                                    signal    sa{sv}as  -                                        -
xyz.openbmc_project.Association.Definitions           interface -         -                                        -
.Associations                                         property  a(sss)    1 "chassis" "all_sensors" "/xyz/openb... emits-change writable
xyz.openbmc_project.Sensor.Threshold.Critical         interface -         -                                        -
.CriticalAlarmHigh                                    property  b         false                                    emits-change writable
.CriticalAlarmLow                                     property  b         false                                    emits-change writable
.CriticalHigh                                         property  d         77                                       emits-change writable
.CriticalLow                                          property  d         0                                        emits-change writable
.CriticalHighAlarmAsserted                            signal    d         -                                        -
.CriticalHighAlarmDeasserted                          signal    d         -                                        -
.CriticalLowAlarmAsserted                             signal    d         -                                        -
.CriticalLowAlarmDeasserted                           signal    d         -                                        -
xyz.openbmc_project.Sensor.Threshold.Warning          interface -         -                                        -
.WarningAlarmHigh                                     property  b         true                                     emits-change writable
.WarningAlarmLow                                      property  b         false                                    emits-change writable
.WarningHigh                                          property  d         0                                        emits-change writable
.WarningLow                                           property  d         0                                        emits-change writable
.WarningHighAlarmAsserted                             signal    d         -                                        -
.WarningHighAlarmDeasserted                           signal    d         -                                        -
.WarningLowAlarmAsserted                              signal    d         -                                        -
.WarningLowAlarmDeasserted                            signal    d         -                                        -
xyz.openbmc_project.Sensor.Value                      interface -         -                                        -
.MaxValue                                             property  d         255                                      emits-change writable
.MinValue                                             property  d         0                                        emits-change writable
.Unit                                                 property  s         "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable
.Value                                                property  d         41                                       emits-change writable
xyz.openbmc_project.State.Decorator.Availability      interface -         -                                        -
.Available                                            property  b         true                                     emits-change writable
xyz.openbmc_project.State.Decorator.OperationalStatus interface -         -                                        -
.Functional                                           property  b         true                                     emits-change writable
root@bmc:/tmp# busctl introspect xyz.openbmc_project.PLDM /xyz/openbmc_project/sensors/temperature/MB_SSD_DATA_TEMP_C_18_134
NAME                                                  TYPE      SIGNATURE RESULT/VALUE                             FLAGS
org.freedesktop.DBus.Introspectable                   interface -         -                                        -
.Introspect                                           method    -         s                                        -
org.freedesktop.DBus.Peer                             interface -         -                                        -
.GetMachineId                                         method    -         s                                        -
.Ping                                                 method    -         -                                        -
org.freedesktop.DBus.Properties                       interface -         -                                        -
.Get                                                  method    ss        v                                        -
.GetAll                                               method    s         a{sv}                                    -
.Set                                                  method    ssv       -                                        -
.PropertiesChanged                                    signal    sa{sv}as  -                                        -
xyz.openbmc_project.Association.Definitions           interface -         -                                        -
.Associations                                         property  a(sss)    1 "chassis" "all_sensors" "/xyz/openb... emits-change writable
xyz.openbmc_project.Sensor.Threshold.Critical         interface -         -                                        -
.CriticalAlarmHigh                                    property  b         false                                    emits-change writable
.CriticalAlarmLow                                     property  b         false                                    emits-change writable
.CriticalHigh                                         property  d         77                                       emits-change writable
.CriticalLow                                          property  d         0                                        emits-change writable
.CriticalHighAlarmAsserted                            signal    d         -                                        -
.CriticalHighAlarmDeasserted                          signal    d         -                                        -
.CriticalLowAlarmAsserted                             signal    d         -                                        -
.CriticalLowAlarmDeasserted                           signal    d         -                                        -
xyz.openbmc_project.Sensor.Threshold.Warning          interface -         -                                        -
.WarningAlarmHigh                                     property  b         true                                     emits-change writable
.WarningAlarmLow                                      property  b         false                                    emits-change writable
.WarningHigh                                          property  d         0                                        emits-change writable
.WarningLow                                           property  d         0                                        emits-change writable
.WarningHighAlarmAsserted                             signal    d         -                                        -
.WarningHighAlarmDeasserted                           signal    d         -                                        -
.WarningLowAlarmAsserted                              signal    d         -                                        -
.WarningLowAlarmDeasserted                            signal    d         -                                        -
xyz.openbmc_project.Sensor.Value                      interface -         -                                        -
.MaxValue                                             property  d         255                                      emits-change writable
.MinValue                                             property  d         0                                        emits-change writable
.Unit                                                 property  s         "xyz.openbmc_project.Sensor.Value.Uni... emits-change writable
.Value                                                property  d         41                                       emits-change writable
xyz.openbmc_project.State.Decorator.Availability      interface -         -                                        -
.Available                                            property  b         true                                     emits-change writable
xyz.openbmc_project.State.Decorator.OperationalStatus interface -         -                                        -
.Functional                                           property  b         true                                     emits-change writable
@facebook-github-bot
Copy link
Contributor

@EliHuang-wiwynn has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@EricChen-wiwynn
Copy link
Contributor

There is a merge conflict in "plat_pldm_sensor.h" when push, could you update the PR to resolve the conflict?

Rebased and conflicts has been solved, thank you for reviewing

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in af98c16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants