#
126591b3 |
| 16-Nov-2022 |
Potin Lai <potin.lai@quantatw.com> |
meta-bletchley: reduce burst times of motor-init-calibration
We notice the motor-init-calibration service spend more than 20 seconds for one run, which doesn't match the stop conditions with current
meta-bletchley: reduce burst times of motor-init-calibration
We notice the motor-init-calibration service spend more than 20 seconds for one run, which doesn't match the stop conditions with current service setting(more than 5 runs in 90 sec).
Becaused motor-init-calibration services keep restart, it caused BMC CPU remain high utilization and trigger reboot action by phosphor-health-monitor.
Reduce StartLimitBurst to 2 to ensure the service stops after attempt 2 failed.
Tested results: root@bletchley:~# journalctl -u motor-init-calibration@6.service | grep systemd Nov 16 22:18:00 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:25 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:26 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:26 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 1. Nov 16 22:18:27 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:46 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 2. Nov 16 22:18:47 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Start request repeated too quickly. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:47 bletchley systemd[1]: Failed to start Motor Initialize for sled6.
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I45c423deceb3cedd9157a479e0f33f9dbf270b8f
show more ...
|
Revision tags: 2.14.0-dev, 2.12.0, 2.12.0-rc1 |
|
#
a8d258f6 |
| 14-Jun-2022 |
Potin Lai <potin.lai@quantatw.com> |
meta-bletchley: motor-ctrl: fix host-ac-on failed during bmc boot
1. add service dependency to avoid host-ac-on service failed due to inventory (presence_sledX) property not avaliable.
host-ac-on@X
meta-bletchley: motor-ctrl: fix host-ac-on failed during bmc boot
1. add service dependency to avoid host-ac-on service failed due to inventory (presence_sledX) property not avaliable.
host-ac-on@X.service |- motor-init-calibration@X.service (Requires, After) |- phosphor-gpio-presence@presence-sledX.service (Requires, After)
2. simplify check method for ac-on & ac-off actions, just check host ac status before set ac on/off.
3. fix host-ac-on service shows failed when ac is aready turned on (ex: BMC reset), return 0 for both ac-on & ac-off actions no matter GPIO (power-hostX) set required or not.
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I2c878dea05ea2511e6564c0980ba34dc28a46e2c
show more ...
|
#
501f4c78 |
| 13-Jun-2022 |
Potin Lai <potin.lai@quantatw.com> |
meta-bletchley: introduce Bletchley common functions
Add a common functions script for reusing the functions which are called frequently.
This patch depends on the patchs below: * https://lore.kern
meta-bletchley: introduce Bletchley common functions
Add a common functions script for reusing the functions which are called frequently.
This patch depends on the patchs below: * https://lore.kernel.org/all/20220613095150.21917-4-potin.lai.pt@gmail.com/
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I6e1602b00f1b0a19e77506be6eabe18c796e52fe
show more ...
|
Revision tags: 2.13.0-dev, 2.11.0 |
|
#
78d1c326 |
| 13-Jan-2022 |
Allen.Wang <Allen_Wang@quantatw.com> |
meta-bletchley: motor-ctrl: Add retry and error handle to motor-init service
1. While motor-init-calibration@.service fail,retry to start service with maximum count 5 times. 2. In case of service un
meta-bletchley: motor-ctrl: Add retry and error handle to motor-init service
1. While motor-init-calibration@.service fail,retry to start service with maximum count 5 times. 2. In case of service unexpected stopped while motor is running, add stop motor command after service stopped to avoid motor runs forever. 3. Add sled present check in motor-ctrl tool
Change-Id: Ie636f3a7dbf656f8ea577bfffed150171f7f07be Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
show more ...
|
#
4a0948d0 |
| 14-Dec-2021 |
Allen.Wang <Allen_Wang@quantatw.com> |
meta-bletchley: Add services to control step motor
For Bletchley platform, we can only power on system by step motor to press power key. Add tools and service to initialize step motor and control sy
meta-bletchley: Add services to control step motor
For Bletchley platform, we can only power on system by step motor to press power key. Add tools and service to initialize step motor and control system power by motor.
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com> Change-Id: Ic75352a037566d701b2e362743c527c370b0c2e5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|