Message ID | 20200918202616.55977-4-kieran.bingham@ideasonboard.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Kieran Bingham |
Headers | show |
Series | VSP-Tests: unbind: | expand |
Hello! On 18.09.2020 23:26, Kieran Bingham wrote: > 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. Excludes. :-) [...] MBR, Sergei
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
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(-)