From: Paulo Zanoni <przanoni@gmail.com>
To: intel-gfx@lists.freedesktop.org
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Subject: [PATCH igt] module_reload: remove snd_hda_intel
Date: Mon, 21 Oct 2013 11:56:09 -0200 [thread overview]
Message-ID: <1382363769-1785-1-git-send-email-przanoni@gmail.com> (raw)
From: Paulo Zanoni <paulo.r.zanoni@intel.com>
The audio driver uses the power well provided by our driver, so on
Haswell we can't "rmmod i915" if we don't "rmmod snd_hda_intel" first.
The problem with removing snd_hda_intel is that we also need to kill
its users. On the specific machine I tested, the only user seem to be
alsactl, but on other machines this may change. IMHO we should leave
the "kill user space" step to whoever is running the script, but
Daniel asked me to put it here so we have a better chance of Just
Working on QA's machines.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
tests/module_reload | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/module_reload b/tests/module_reload
index 3d8cb85..c1fd395 100755
--- a/tests/module_reload
+++ b/tests/module_reload
@@ -18,6 +18,10 @@ if ! echo 0 > /sys/class/vtconsole/vtcon1/bind ; then
exit 77
fi
+# 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
@@ -38,6 +42,8 @@ fi
modprobe i915
echo 1 > /sys/class/vtconsole/vtcon1/bind
+modprobe snd_hda_intel
+
# try to run something
$SOURCE_DIR/gem_exec_nop > /dev/null && echo "module successfully loaded again"
--
1.8.3.1
next reply other threads:[~2013-10-21 13:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 13:56 Paulo Zanoni [this message]
2013-10-23 5:19 ` [PATCH igt] module_reload: remove snd_hda_intel Ben Widawsky
2013-10-23 16:57 ` Paulo Zanoni
2013-10-23 18:42 ` Jani Nikula
2013-10-24 22:41 ` Ben Widawsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1382363769-1785-1-git-send-email-przanoni@gmail.com \
--to=przanoni@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox