Lines Matching +full:idle +full:- +full:wait +full:- +full:delay
2 # SPDX-License-Identifier: GPL-2.0-only
9 if [ -x ./getscom ] && [ -x ./putscom ]; then
18 See https://github.com/open-power/skiboot.
19 The tool is in external/xscom-utils
28 dmesg | grep -c 'Harmless Hypervisor Maintenance interrupt'
31 # massively expand snooze delay, allowing injection on all cores
32 ppc64_cpu --smt-snooze-delay=1000000000
35 trap "ppc64_cpu --smt-snooze-delay=100" 0 1
38 # todo - less fragile parsing
39 grep -E -o 'OCC: Chip [0-9a-f]+ Core [0-9a-f]' < /sys/firmware/opal/msglog |
46 if [ "$($GETSCOM -c 0x${chip} $fir)" != 0 ]; then
48 echo "Result of $GETSCOM -c 0x${chip} $fir:"
49 $GETSCOM -c 0x${chip} $fir
50 echo "If you get a -5 error, the core may be in idle state. Try stress-ng."
51 echo "Otherwise, try $PUTSCOM -c 0x${chip} $fir 0"
61 if ! $PUTSCOM -c 0x${chip} $fir 2000000000000000 > /dev/null; then
66 # now we want to wait for all the HMIs to be processed
70 while [ $new_hmis -lt $((old_hmis + expected_hmis)) ] && [ $i -lt 12 ]; do
71 echo "Seen $((new_hmis - old_hmis)) HMI(s) out of $expected_hmis expected, sleeping"