All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yao Cheng <yao.cheng@intel.com>
To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	daniel.vetter@ffwll.ch, sean.v.kelley@intel.com,
	john.chehab@intel.com
Cc: emil.l.velikov@gmail.com, fei.jiang@intel.com
Subject: [RFC PATCH v3 4/4] tests/drv_module_reload: add ipvr support
Date: Sat, 22 Nov 2014 03:10:01 +0800	[thread overview]
Message-ID: <1416597001-6097-1-git-send-email-yao.cheng@intel.com> (raw)

on vlv, if ipvr is installed, it need be manually unloaded before
i915, otherwise user might run into use-after-free issue.

v2:
added this patch per Daniel's comment

v3:
no change

Signed-off-by: Yao Cheng <yao.cheng@intel.com>
---
 tests/drv_module_reload | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/tests/drv_module_reload b/tests/drv_module_reload
index 5cbff89..82c67bd 100755
--- a/tests/drv_module_reload
+++ b/tests/drv_module_reload
@@ -24,6 +24,14 @@ rmmod snd_hda_intel &> /dev/null
 
 #ignore errors in ips - gen5 only
 rmmod intel_ips &> /dev/null
+
+# vlv only for now:
+# due to platform device model limitation, need unload ipvr manually
+if lsmod | grep ipvr &> /dev/null ; then
+	echo Need manually unload ipvr.ko.
+	rmmod ipvr
+fi
+
 rmmod i915
 #ignore errors in intel-gtt, often built-in
 rmmod intel-gtt &> /dev/null
@@ -31,6 +39,11 @@ rmmod intel-gtt &> /dev/null
 rmmod drm_kms_helper &> /dev/null
 rmmod drm &> /dev/null
 
+if lsmod | grep ipvr &> /dev/null ; then
+	echo WARNING: ipvr.ko still loaded!
+	exit 1
+fi
+
 if lsmod | grep i915 &> /dev/null ; then
 	echo WARNING: i915.ko still loaded!
 	exit 1
@@ -41,6 +54,9 @@ fi
 modprobe i915
 echo 1 > /sys/class/vtconsole/vtcon1/bind
 
+# for vlv, load VED driver
+modprobe ipvr
+
 modprobe snd_hda_intel
 
 # try to run something
-- 
2.1.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2014-11-21 19:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-21 19:10 Yao Cheng [this message]
2014-11-21 20:27 ` [RFC PATCH v3 4/4] tests/drv_module_reload: add ipvr support Thierry Reding
2014-11-21 20:36   ` Daniel Vetter
2014-11-24  9:55     ` Thierry Reding
2014-11-24 13:14       ` Daniel Vetter
2014-12-01  3:06         ` Cheng, Yao
2014-12-17  8:13           ` Thierry Reding
2014-12-18  5:44             ` Cheng, Yao
2014-12-18 10:04               ` Thierry Reding
2014-12-18 11:21                 ` Daniel Vetter
2014-12-21 14:40                   ` Cheng, Yao
2015-01-05  8:39                     ` Daniel Vetter
2015-01-06 14:14                       ` Cheng, Yao
2015-01-07  7:33                         ` Daniel Vetter
2014-12-17  8:02         ` Thierry Reding

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=1416597001-6097-1-git-send-email-yao.cheng@intel.com \
    --to=yao.cheng@intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=fei.jiang@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=john.chehab@intel.com \
    --cc=sean.v.kelley@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.