[Bug 94736] [BAT IGT ALL] drv_module_reload_basic fail on all platforms

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 29 14:30:30 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=94736

--- Comment #10 from Marius Vlad <marius.c.vlad at intel.com> ---
>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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160329/9f32bf22/attachment.html>


More information about the intel-gfx-bugs mailing list