[PATCH 010/172] USB: usbtest - add alignment tests to test script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Fuzzey <mfuzzey@xxxxxxxxx>

Enhance the test script to call the new tests added to usbtest
in order to detect host controllers that don't accept byte
aligned DMA.

The unaligned tests are called after their aligned
equivalents but for fewer iterations (since alignment
failure is generally immediate).

Signed-off-by: Martin Fuzzey <mfuzzey@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 tools/usb/hcd-tests.sh |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/tools/usb/hcd-tests.sh b/tools/usb/hcd-tests.sh
index d212192..b30b3dc 100644
--- a/tools/usb/hcd-tests.sh
+++ b/tools/usb/hcd-tests.sh
@@ -112,6 +112,10 @@ do
 	    # this relies on some vendor-specific commands
 	    echo "test 14: control writes"
 	    do_test -t 14 -c 15000 -s 256 -v 1
+
+	    echo "test 21: control writes, unaligned"
+	    do_test -t 21 -c 100 -s 256 -v 1
+
 	    ;;
 
 	out)
@@ -123,6 +127,13 @@ do
 	    echo "test 3: $COUNT transfers, variable/short size"
 	    do_test -t 3 -v 421
 
+	    COUNT=100
+	    echo "test 17: $COUNT transfers, unaligned DMA map by core"
+	    do_test -t 17
+
+	    echo "test 19: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
+	    do_test -t 19
+
 	    COUNT=2000
 	    echo "test 5: $COUNT scatterlists, same size entries"
 	    do_test -t 5
@@ -159,6 +170,10 @@ do
 	    # FIXME it'd make sense to have an iso OUT test issuing
 	    # short writes on more packets than the last one
 
+	    COUNT=100
+	    echo "test 22: $COUNT transfers, non aligned"
+	    do_test -t 22 -g 8 -v 0
+
 	    ;;
 
 	in)
@@ -173,6 +188,13 @@ do
 	    echo "test 4: $COUNT transfers, variable size"
 	    do_test -t 4
 
+	    COUNT=100
+	    echo "test 18: $COUNT transfers, unaligned DMA map by core"
+	    do_test -t 18
+
+	    echo "test 20: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
+	    do_test -t 20
+
 	    COUNT=2000
 	    echo "test 6: $COUNT scatterlists, same size entries"
 	    do_test -t 6
@@ -201,6 +223,10 @@ do
 	    # FIXME since iso expects faults, it'd make sense
 	    # to have an iso IN test issuing short reads ...
 
+	    COUNT=100
+	    echo "test 23: $COUNT transfers, unaligned"
+	    do_test -t 23 -g 8 -v 0
+
 	    ;;
 
 	halt)
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux