#
ea220361 |
| 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: I23581dad78b692e49f1c316aecf8a2bb7de95035 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
b99426b6 |
| 28-Apr-2023 |
Pavithra Barithaya <pavithra.b@ibm.com> |
Enable few more misc tidy checks.
Change-Id: Idcf8a74071441f0575c5e8b5179157e0d16a0a0a Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
|
#
cb421097 |
| 16-Aug-2022 |
George Liu <liuxiwei@inspur.com> |
Move timeMode property to manager
The current logic is to maintain the same attribute in manager and epoch_base, the purpose of this commit is to merge this attribute into manager for maintenance.
Move timeMode property to manager
The current logic is to maintain the same attribute in manager and epoch_base, the purpose of this commit is to merge this attribute into manager for maintenance.
Also, Update the test/TestBmcEpoch.cpp file.
Tested: Built phosphor-time-manager successfully and UT passed.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I05fea271d672bf12ecb722005023dfa6a2a980d1
show more ...
|
#
7e5f9f79 |
| 16-Aug-2022 |
George Liu <liuxiwei@inspur.com> |
Trigger the propertyChanged method of TestManager
propertyChanged is Disabled by default, and UT is not executed, optimize the code and enable it.
Tested: Verify that the propertyChanged method of
Trigger the propertyChanged method of TestManager
propertyChanged is Disabled by default, and UT is not executed, optimize the code and enable it.
Tested: Verify that the propertyChanged method of Testmanager executes UT successfully.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I1bb9241c7f8f37de0ee151d26156c9876627f0fb
show more ...
|
#
38679266 |
| 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: I9cedddf4dc9b224ecbc2f68e6b00c0ab1885a826
show more ...
|
#
c6d33972 |
| 21-Jun-2020 |
George Liu <liuxiwei@inspur.com> |
clang-format: update to latest from docs repo
Since `Cpp11` is an alias for `Latest` and we should tend towards using the latest C++ standard, update the C++ standard to Latest.
https://github.com/
clang-format: update to latest from docs repo
Since `Cpp11` is an alias for `Latest` and we should tend towards using the latest C++ standard, update the C++ standard to Latest.
https://github.com/llvm/llvm-project/commit/e5032567903de19962333c4bf7d2edceaf4f9824#diff-b49a097415dff2837d9626d422c58ba8R82 https://github.com/openbmc/docs/blob/master/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I6bd62f057c6881b4e931c1968d71ce5478832d73
show more ...
|
#
0a70452a |
| 13-Apr-2020 |
George Liu <liuxiwei@inspur.com> |
Remove Deferred Updates
Remove deferred consumption of settings Manual/NTP and allow instant consumption.
Tested: Manually set the timeMode to NTP on the WEB and successfully. busctl get-property x
Remove Deferred Updates
Remove deferred consumption of settings Manual/NTP and allow instant consumption.
Tested: Manually set the timeMode to NTP on the WEB and successfully. busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/time/sync_method xyz.openbmc_project.Time.Synchronization TimeSyncMethod s "xyz.openbmc_project.Time.Synchronization.Method.NTP"
Manually set the date time successfully by D-Bus when timeMode is MANUAL busctl set-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1514765953791262
Manually set the date time failed by D-Bus when timeMode is NTP. busctl set-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1514765953791262 Failed to set property Elapsed on interface xyz.openbmc_project.TIme.EpochTime: The operation failed
~# journalctl -b | grep timemanager Jan 01 00:15:26 fp5280g2 phosphor-timemanager[309]: Error in setting system time Jan 01 00:15:26 fp5280g2 phosphor-timemanager[309]: The operation failed
Refer: https://lists.ozlabs.org/pipermail/openbmc/2020-April/021409.html
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I7be25a9d0f56615bad6800a0b07df7f84fc0acc3
show more ...
|
#
3c2f4496 |
| 11-Apr-2020 |
George Liu <liuxiwei@inspur.com> |
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed
Remove TimeOwner Feature
The TimeOwner feature is confusing from feedback from the community and hence removing the feature. Remove the TimeOwner feature in the phosphor-time-manager repo and needed settings objects.
Tested: Manually set the date time on the web and successfully update the date time of BMC (eg: 2020/01/01 08:07:50). busctrl get-property xyz.openbmc_project.Time.Manager /xyz/openbmc_project/time/bmc xyz.openbmc_project.Time.EpochTime Elapsed t 1577837156385836
Refer: https://lists.ozlabs.org/pipermail/openbmc/2020-April/021409.html
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Id47eb0a03e0e94eeff29d2b77dccefb89cded7b8
show more ...
|
#
ab4cc6a5 |
| 14-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-an
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Ic2c462525eb27b8295c2b298871e04268d93faf2 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
7f25c53f |
| 25-Oct-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Spelling fixes
Change-Id: Ia840360c00cc8d7baaafd797ae2411bc5cc03ed3 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
#
debe1d8f |
| 13-Oct-2017 |
Lei YU <mine260309@gmail.com> |
Use host state object to check if host is on
The code was using pgood to determine if host is on or off. Now we have host state object, which is a more appropriate way to check host on/off. So chang
Use host state object to check if host is on
The code was using pgood to determine if host is on or off. Now we have host state object, which is a more appropriate way to check host on/off. So change pgood related code to use host state object.
Change-Id: I553c1a40922ca2e8bc6904688c55e85971bd4720 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
710d49be |
| 01-Aug-2017 |
Lei YU <mine260309@gmail.com> |
Use new settings API
The new time manager code was using the old settings daemon. Now it uses the new settings API.
Change-Id: Id551d97c28a6cfbb81c87118b26292b1b5574e93 Signed-off-by: Lei YU <mine2
Use new settings API
The new time manager code was using the old settings daemon. Now it uses the new settings API.
Change-Id: Id551d97c28a6cfbb81c87118b26292b1b5574e93 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
ad14354f |
| 25-Jul-2017 |
Lei YU <mine260309@gmail.com> |
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generate
Use time mode owner enums in dbus interface
Dbus interface defines time mode owners in xyz::openbmc_project::Time. Use the enums from the interface instead of repo defined enums and use the generated code to do convertions between strings and enums.
Update unit tests accordingly.
Change-Id: Ic304aa3b4137375d208bb1702e0f64df512fc5a0 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
57eab124 |
| 15-Jun-2017 |
Lei YU <mine260309@gmail.com> |
Change default time mode/owner to MANUAL/BOTH
OPAL gets error on setting host time because the default time mode/owner is NTP/BMC, which disallows host to set its time. As discussed and requested by
Change default time mode/owner to MANUAL/BOTH
OPAL gets error on setting host time because the default time mode/owner is NTP/BMC, which disallows host to set its time. As discussed and requested by OPAL, change the default time mode/owner to MANUAL/BOTH.
Change-Id: Ide55f970b66f3025f67ad2ef093a74a3c8f8b8ea Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
ddd54428 |
| 18-Apr-2017 |
Lei YU <mine260309@gmail.com> |
Implement mode/owner and string conversions
Move Manager::convertToMode() to utils::strToMode(); Move Manager::convertToOwner() to utils::strToOwner(); Add utils::modeToStr() and utils::ownerToStr()
Implement mode/owner and string conversions
Move Manager::convertToMode() to utils::strToMode(); Move Manager::convertToOwner() to utils::strToOwner(); Add utils::modeToStr() and utils::ownerToStr(); Adjust and add unit tests.
Change-Id: Ied35d0e732c477017e1b2db1a3464b0425b12387 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
a5003ceb |
| 24-Feb-2017 |
Lei YU <mine260309@gmail.com> |
Use gmock on property_change_listener
1. Mock property_change_listener; 2. Make unit test link against gmock 3. Update TestManager to use mocked property change listener. 4. Fix an issue found by th
Use gmock on property_change_listener
1. Mock property_change_listener; 2. Make unit test link against gmock 3. Update TestManager to use mocked property change listener. 4. Fix an issue found by the updated test case, that when the properties are changed during host is on, and changed back to the same as before, when host becomes off, the properties shall remain the same and listeners shall not be notified.
Change-Id: I815b59cb23edfcac910c2a8c26ea5a71e872d92f Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
a741713c |
| 23-Feb-2017 |
Lei YU <mine260309@gmail.com> |
Invoke SetNTP and UpdateUseNtpField in time manager
1. When time mode is changed, invoke systemd timedate1's SetNTP method to update NTP settings; 2. When settings use_dhcp_ntp property is changed,
Invoke SetNTP and UpdateUseNtpField in time manager
1. When time mode is changed, invoke systemd timedate1's SetNTP method to update NTP settings; 2. When settings use_dhcp_ntp property is changed, invoke NetworkManager's UpdateUseNtpField method to update its setting; 3. Move the common code of getProperty() into utils.hpp
Change-Id: I981e0e9de9c0430282b3364c38c282312bb2be89 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
7f4fca55 |
| 23-Feb-2017 |
Lei YU <mine260309@gmail.com> |
Save properties to persistent storage when host is on
1. When host is on, set properties as requested properties instead of notify listeners; 2. When host becomes off, and requested properties are n
Save properties to persistent storage when host is on
1. When host is on, set properties as requested properties instead of notify listeners; 2. When host becomes off, and requested properties are not empty, notify the listners and reset the requested properties.
Add unit tests.
Change-Id: I9359c801c698df0c6e5eab43e12427bb5a6da611 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
415b964f |
| 08-Feb-2017 |
Lei YU <mine260309@gmail.com> |
Add time Manager to handle property changes callback
1. Implement time::Manager who registers property change signal for time mode and owner; 2. Add PropertyChangeListner interface to handle the cal
Add time Manager to handle property changes callback
1. Implement time::Manager who registers property change signal for time mode and owner; 2. Add PropertyChangeListner interface to handle the callback; 3. Make EpochBase to implement the interface.
Change-Id: I185580ae37353e1ed82a47e4905fb22e269ac09d Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|