Skip to content

Commit

Permalink
Stop platform monitor service before fast/warm reboot
Browse files Browse the repository at this point in the history
Root Cause:
Access i2c bus when fast/warm reboot would cause SMBus is busy and needs recover by power cycle.

Solution:
Stop platform monitor service before fast/warm reboot
  • Loading branch information
chiourung authored and CharlieChenEC committed Oct 8, 2024
1 parent 238b2a2 commit c4e51f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,13 @@ then
systemctl stop "$service_name"
fi
# Stop platform monitor sevice to prevent i2c access during warm/fast reboot
services=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep platform-monitor | cut -f 1 -d' ')
for service_name in $services
do
systemctl stop "$service_name"
done
# Update the reboot cause file to reflect that user issued this script
# Upon next boot, the contents of this file will be used to determine the
# cause of the previous reboot
Expand Down

0 comments on commit c4e51f8

Please sign in to comment.