summaryrefslogtreecommitdiffstats
path: root/meta-openpower
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-22 02:31:50 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-04-25 08:01:52 +0000
commitf414711ac15ca9f951cd410fe555e7225eecab01 (patch)
tree1b624cbf740c2a6f728cc0f6975c0e0bbd195faa /meta-openpower
parente19d4ae7b79e8f0c89a6a6746cc87090dfcaedae (diff)
downloadtalos-openbmc-f414711ac15ca9f951cd410fe555e7225eecab01.tar.gz
talos-openbmc-f414711ac15ca9f951cd410fe555e7225eecab01.zip
Reset OCC on error detection
This fixes a corner case where a hung OCC did not report rising core temperatures and the fans failed to react as a result
Diffstat (limited to 'meta-openpower')
-rwxr-xr-xmeta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
index 6a511c132..08d1813bd 100755
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
@@ -57,11 +57,20 @@ if [ "$1" == "watchdog" ]; then
sleep 5
OCC_FAULT=0
- if [ ! -e /sys/bus/platform/drivers/occ/sbefifo1-dev0/occ1-dev0/occ_status ]; then
+ if [ ! -e /sys/bus/platform/drivers/occ/sbefifo1-dev0/occ1-dev0/occ_error ]; then
OCC_FAULT=1
+ else
+ STATUS=$(cat /sys/bus/platform/drivers/occ/sbefifo1-dev0/occ1-dev0/occ_error)
+ if [ $STATUS != 0 ]; then
+ OCC_FAULT=1
+ fi
fi
if [ $CPU_COUNT -gt 1 ]; then
- if [ ! -e /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ2-dev0/occ_status ]; then
+ if [ ! -e /sys/bus/platform/drivers/occ/sbefifo2-dev0/occ2-dev0/occ_error ]; then
+ OCC_FAULT=1
+ fi
+ else
+ if [ $STATUS != 0 ]; then
OCC_FAULT=1
fi
fi
OpenPOWER on IntegriCloud