linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kieran Bingham <kieran.bingham@ideasonboard.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	linux-renesas-soc@vger.kernel.org
Cc: Kieran Bingham <kieran.bingham@ideasonboard.com>
Subject: [PATCH 3/3] tests: unbind/bind: Only test non display VSPs
Date: Fri, 18 Sep 2020 21:26:16 +0100	[thread overview]
Message-ID: <20200918202616.55977-4-kieran.bingham@ideasonboard.com> (raw)
In-Reply-To: <20200918202616.55977-1-kieran.bingham@ideasonboard.com>

Only perform bind/unbind testing on VSPs which expose a media-device.
Unbinding a VSP which is connected to a DU causes the display pipeline
to fail, and is not currently supported.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 tests/vsp-unit-test-0026.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/vsp-unit-test-0026.sh b/tests/vsp-unit-test-0026.sh
index 88038f3fdebf..4185bb23d05b 100755
--- a/tests/vsp-unit-test-0026.sh
+++ b/tests/vsp-unit-test-0026.sh
@@ -10,7 +10,14 @@
 features="rpf.0 wpf.0"
 
 vsp1_driver=/sys/bus/platform/drivers/vsp1
-vsps=$(cd /sys/bus/platform/devices/; ls | grep vsp)
+
+# List all VSPs with a media device.
+# This exludes VSP devices used by the DU.
+list_vsps() {
+	for mdev in /dev/media* ; do
+		echo -n $(vsp1_device $mdev) | grep vsp
+	done
+}
 
 unbind_vsp() {
 	echo $1 > $vsp1_driver/unbind
@@ -48,7 +55,7 @@ test_main() {
 	fi
 
 	# Unbind and rebind VSPs individually
-	for v in $vsps; do
+	for v in $(list_vsps); do
 		unbind_vsp $v
 		bind_vsp $v
 	done
-- 
2.25.1


  parent reply	other threads:[~2020-09-18 20:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 20:26 [PATCH 0/3] VSP-Tests: unbind: Kieran Bingham
2020-09-18 20:26 ` [PATCH 1/3] scripts: vsp-lib.sh: Remove unused variable Kieran Bingham
2020-09-18 20:26 ` [PATCH 2/3] tests: Skip unbind/bind tests when not root Kieran Bingham
2020-09-18 20:45   ` Kieran Bingham
2020-09-18 20:52   ` [PATCH v2] " Kieran Bingham
2020-09-18 20:26 ` Kieran Bingham [this message]
2020-09-19  8:38   ` [PATCH 3/3] tests: unbind/bind: Only test non display VSPs Sergei Shtylyov

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=20200918202616.55977-4-kieran.bingham@ideasonboard.com \
    --to=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-renesas-soc@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).