<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [BAT IGT ALL] drv_module_reload_basic fail on all platforms"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94736#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [BAT IGT ALL] drv_module_reload_basic fail on all platforms"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94736">bug 94736</a>
from <span class="vcard"><a class="email" href="mailto:marius.c.vlad@intel.com" title="Marius Vlad <marius.c.vlad@intel.com>"> <span class="fn">Marius Vlad</span></a>
</span></b>
<pre>From i-g-t:
tests/drv_module_reload, or the following script:
# we must kick away fbcon (but only fbcon)
for vtcon in /sys/class/vtconsole/vtcon*/ ; do
if grep "frame buffer device" $vtcon/name > /dev/null ; then
echo unbinding $vtcon: `cat $vtcon/name`
echo 0 > $vtcon/bind
fi
done
# The sound driver uses our power well
pkill alsactl
rmmod snd_hda_intel &> /dev/null
#ignore errors in ips - gen5 only
rmmod intel_ips &> /dev/null
rmmod i915 || return $IGT_EXIT_SKIP
#ignore errors in intel-gtt, often built-in
rmmod intel-gtt &> /dev/null
# drm may be used by other devices (nouveau, radeon, udl, etc)
rmmod drm_kms_helper &> /dev/null
rmmod drm &> /dev/null
if lsmod | grep i915 &> /dev/null ; then
echo WARNING: i915.ko still loaded!
return $IGT_EXIT_FAILURE
else
echo module successfully unloaded
fi
modprobe i915 $*
if [ -f /sys/class/vtconsole/vtcon1/bind ]; then
echo 1 > /sys/class/vtconsole/vtcon1/bind
fi
modprobe snd_hda_intel</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>