-
Notifications
You must be signed in to change notification settings - Fork 52
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
Conversation
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There is a merge conflict in "plat_pldm_sensor.h" when push, could you update the PR to resolve the conflict? |
bf7f39e
to
8e8adc1
Compare
@EliHuang-wiwynn has updated the pull request. You must reimport the pull request before landing. |
@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
8e8adc1
to
c454480
Compare
@EliHuang-wiwynn has updated the pull request. You must reimport the pull request before landing. |
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Rebased and conflicts has been solved, thank you for reviewing |
This pull request has been merged in af98c16. |
Summary:
Description:
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