#
05e8ea8e |
| 03-Jul-2024 |
Renze Nicolai <renze@rnplus.nl> |
x86-power-control: add passthrough option
Add a power and reset button passthrough option for emulating button behavior by directly controlling the control output pin.
Change-Id: I50df3e604401b4afd
x86-power-control: add passthrough option
Add a power and reset button passthrough option for emulating button behavior by directly controlling the control output pin.
Change-Id: I50df3e604401b4afd43fa89a0709466bbf01638b Signed-off-by: Renze Nicolai <renze@rnplus.nl>
show more ...
|
#
61ccc499 |
| 29-Mar-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
build: Add boost to the dependencies
Since the project uses boost library add it to meson dependencies.
Change-Id: I0c075ff0deaa1feb0be1a8a56d9c21eab305345c Signed-off-by: Konstantin Aladyshev <ala
build: Add boost to the dependencies
Since the project uses boost library add it to meson dependencies.
Change-Id: I0c075ff0deaa1feb0be1a8a56d9c21eab305345c Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
#
b1e34a11 |
| 07-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: use include_type for nlohmann-json dependency
Using the include_type field aligns with usages in other repositories and prevents the library from getting flagged by clang-tidy and similar too
meson: use include_type for nlohmann-json dependency
Using the include_type field aligns with usages in other repositories and prevents the library from getting flagged by clang-tidy and similar tools.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie52cd2420138d44f55a0e8e997e26b61bd960812
show more ...
|
#
68ea8319 |
| 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer retur
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I70a7a959e056eca2c58c4656dd9aa323ef0e3984 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
cc037b89 |
| 12-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I9c02f330a8f0cc2924d45
build: upgrade to C++23
Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of the standard has been implemented. Upgrade the build to leverage it.
Change-Id: I9c02f330a8f0cc2924d45557bf7d2f51388e303c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
f56ef594 |
| 12-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig` keyword argument. Ensure meson 0.58 is required and update the usage of all `get_pkgconfig_variable` and `get_variable` to be the modern variant.
Change-Id: I8599189ddf9cdcbb564252d29244101ee9bd292d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
58e379d1 |
| 23-Sep-2022 |
Matt Simmering <matthew.simmering@intel.com> |
Add option to ignore soft resets before POST
In some cases it is expected that the host will send a soft reset. This can overwrite previous power state changes which we may want to keep.
Tested: S
Add option to ignore soft resets before POST
In some cases it is expected that the host will send a soft reset. This can overwrite previous power state changes which we may want to keep.
Tested: Set restore policy to always on. AC cycle system. Check restart cause is always on, and not overwritten as soft reset
Once host has posted, do warm reset through host and check that restart cause is soft reset.
Change-Id: I0bd861f25680a11fc2e7eb77088f3009bcf8b03b Signed-off-by: Matt Simmering <matthew.simmering@intel.com>
show more ...
|
#
7ef52a8d |
| 05-Sep-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
meson: rely on nlohmann json
This project relies on nlohmann json, but didn't specifies the correct dependency.
This commit adds the missing dep. The wrap file is from other repos.
Tested: it buil
meson: rely on nlohmann json
This project relies on nlohmann json, but didn't specifies the correct dependency.
This commit adds the missing dep. The wrap file is from other repos.
Tested: it builds
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I18ba19085eec5e24e75859548de07e621e1fb163
show more ...
|
#
fd672c91 |
| 05-Sep-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
subprojects: fix wraps
Fixed the missing two wrap files; also simplified meson deps via `[provide]`.
1. libgpiod; installed from WrapDB; reference: [1] https://mesonbuild.com/Wrapdb-projects.html T
subprojects: fix wraps
Fixed the missing two wrap files; also simplified meson deps via `[provide]`.
1. libgpiod; installed from WrapDB; reference: [1] https://mesonbuild.com/Wrapdb-projects.html This is also alligned with Yocto; reference: [1] https://github.com/openbmc/openbmc/blob/78b727985e7571e0b196561e44427690f04d57d9/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb 2. sdbusplus
Tested: builds on systems without the two dependencies where meson automatically downloads them
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I81305c3f399fbe437cc8e32015e074eff93078bc
show more ...
|
#
99e8f9df |
| 09-Jan-2022 |
Andrei Kartashev <a.kartashev@yadro.com> |
refactor power restore controller
Currently PowerRestorePolicy handling code uses two undocumented interfaces: * `xyz.openbmc_project.Control.Power.RestoreDelay` * `xyz.openbmc_project.Common.ACBoot
refactor power restore controller
Currently PowerRestorePolicy handling code uses two undocumented interfaces: * `xyz.openbmc_project.Control.Power.RestoreDelay` * `xyz.openbmc_project.Common.ACBoot`
Power Restore Delay seems to be logical part of `xyz.openbmc_project.Control.Power.RestorePolicy` interface and has been moved there.
ACBoot depends on some custom logic that can be found only in Intel-BMC fork.
This commit reorganize PowerRestorePolicy-related code to be more clear and flexible, fixes interface for RestoreDelay. Use of ACBoot feature is now optional and can be compile-time enabled.
Tested: Model power loss event with Off, On and Restore policy, verify, that power restored as expected. Test On policy with Delay set to 300000000 - ensure, power on delayed by 5 minutes. Test with ACBoot interface emulated. Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: Id8b42d2085f44418e02a7f52836cc1a6f55f50db
show more ...
|
#
50fe8ee3 |
| 04-Jan-2022 |
Andrei Kartashev <a.kartashev@yadro.com> |
introduce PersistentState manager
This commit brings new mechanism to store application state over system reboot. State is saved to json file and restored on application startup by easy to use class
introduce PersistentState manager
This commit brings new mechanism to store application state over system reboot. State is saved to json file and restored on application startup by easy to use class.
Currently only PowerState is managed by this class but more states can be added in future.
Tested: verify that power state saved to file and restored on startup Change-Id: I91fb46f262827dda89f438eefea38d59e02ba25c Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
show more ...
|
#
c46ebb49 |
| 10-Nov-2021 |
Jason M. Bills <jason.m.bills@linux.intel.com> |
Change to lg2 To take advantage of the improved structured logging, change x86-power-control logging to lg2. Also fixed up some minor formatting issues and added more detail
Change to lg2 To take advantage of the improved structured logging, change x86-power-control logging to lg2. Also fixed up some minor formatting issues and added more detail to clarify some of the debug messages. Tested: Ran a power off, on, cycle, and reset and confirmed that the logs look the same. Change-Id: Iad601e39a54e7e1dc0f26352711cb1b3d5f83522 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
show more ...
|
#
48c94c59 |
| 19-Oct-2021 |
Jason M. Bills <jason.m.bills@linux.intel.com> |
Upgrade to C++20 Change-Id: I6bc6716316d464bd1150b0e4b8706d50739c5900 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
|
#
6199ccf4 |
| 21-Oct-2021 |
Jason M. Bills <jason.m.bills@linux.intel.com> |
Add meson build support This adds meson build support for x86-power-control Tested: Enabled meson build and confirmed that ipmi power control commands all still work correct
Add meson build support This adds meson build support for x86-power-control Tested: Enabled meson build and confirmed that ipmi power control commands all still work correctly. Change-Id: Icfa8d59757f474df3271f06e90e6cfd5cb85a2ac Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
show more ...
|