Lines Matching +full:io +full:- +full:backends
2 # SPDX-License-Identifier: GPL-2.0-only
15 # device is recovered by removing and re-probing it. This causes the
19 if [ -z "$eeh_state" ]; then
23 local fw_state="$(echo $eeh_state | cut -d' ' -f1)"
24 local sw_state="$(echo $eeh_state | cut -d' ' -f2)"
28 if [ "$((sw_state & 0x3))" -ne 0 ] ; then
34 # the platform backends set these when the PE is in reset. The
36 if [ "$((fw_state & 0x18))" -ne "$((0x18))" ] ; then
44 test -e /proc/powerpc/eeh && \
45 grep -q 'EEH Subsystem is enabled' /proc/powerpc/eeh
54 if [ ! -e "/sys/kernel/debug/powerpc/eeh_dev_check" ] && \
55 [ ! -e "/sys/kernel/debug/powerpc/eeh_dev_break" ] ; then
67 if [ -e "/sys/bus/pci/devices/$dev/pci_bus" ] ; then
81 # Don't inject errosr into an already-frozen PE. This happens with
82 # PEs that contain multiple PCI devices (e.g. multi-function cards)
98 # testing so check that the argument is a well-formed sysfs device
100 if ! test -e /sys/bus/pci/devices/$dev/ ; then
110 # is a no-op.
139 test -e /sys/bus/pci/devices/$1/driver;
144 # we'll get an IO error if the device's current driver doesn't support
154 # SR-IOV on pseries requires hypervisor support, so check for that
156 if grep -q pSeries /proc/cpuinfo ; then
157 if [ ! -f /proc/device-tree/rtas/ibm,open-sriov-allow-unfreeze ] ||
158 [ ! -f /proc/device-tree/rtas/ibm,open-sriov-map-pe-number ] ; then
165 for dev in `ls -1 /sys/bus/pci/devices/` ; do
167 if [ ! -e "$sysfs/sriov_numvfs" ] ; then
172 if [ -z "$is_pseries" ] &&
173 [ ! -f "$sysfs/of_node/ibm,is-open-sriov-pf" ] &&
174 [ ! -f "$sysfs/of_node/ibm,open-sriov-vf-bar-info" ] ; then
186 if [ -z "$devices" ] ; then
236 if [ -z "$pf_list" ] ; then