mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-25 02:45:57 +00:00
drv_module_reload_basic: skip alive check after load failure injection
After loading the module with load failure injection enabled don't try check the alive state. Also limit the number of failure points to existing ones, to reduce the run time of the test. v2: - make VT binding/snd module loading part of reload and VT bind fail silently (Chris) Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
772393e806
commit
f0d5874bd8
@ -42,10 +42,15 @@ function reload() {
|
||||
fi
|
||||
|
||||
modprobe i915 $*
|
||||
echo 1 > /sys/class/vtconsole/vtcon1/bind
|
||||
|
||||
if [ -f /sys/class/vtconsole/vtcon1/bind ]; then
|
||||
echo 1 > /sys/class/vtconsole/vtcon1/bind
|
||||
fi
|
||||
|
||||
modprobe snd_hda_intel
|
||||
}
|
||||
|
||||
function finish_load() {
|
||||
# does the device exist?
|
||||
if $SOURCE_DIR/gem_alive > /dev/null ; then
|
||||
echo "module successfully loaded again"
|
||||
@ -64,13 +69,16 @@ function reload() {
|
||||
}
|
||||
|
||||
reload || exit $?
|
||||
finish_load || exit $?
|
||||
|
||||
# Repeat the module reload trying to to generate faults
|
||||
fault=1
|
||||
for i in $(seq 0 31); do
|
||||
reload i915.fault_injection=$fault
|
||||
for i in $(seq 0 4); do
|
||||
reload inject_load_failure=$fault
|
||||
fault=$(($fault * 2))
|
||||
done
|
||||
|
||||
reload
|
||||
reload || exit $?
|
||||
finish_load
|
||||
|
||||
exit $?
|
||||
|
Loading…
x
Reference in New Issue
Block a user