aboutsummaryrefslogtreecommitdiffstats
path: root/tools/usb
diff options
context:
space:
mode:
authorMartin Fuzzey <mfuzzey@gmail.com>2011-01-16 13:17:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-22 22:42:14 -0500
commitbc0f23dccad16c7834cb09d943981475be81ddb1 (patch)
tree110b9be27e199be88e620a0e28c8cb46163acfed /tools/usb
parentc17d936e05a186ce5bce2acf2d58a4172df7f435 (diff)
USB: usbtest - add alignment tests to test script
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@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/usb')
-rw-r--r--tools/usb/hcd-tests.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/usb/hcd-tests.sh b/tools/usb/hcd-tests.sh
index d212192d58bc..b30b3dc4c788 100644
--- a/tools/usb/hcd-tests.sh
+++ b/tools/usb/hcd-tests.sh
@@ -112,6 +112,10 @@ do
112 # this relies on some vendor-specific commands 112 # this relies on some vendor-specific commands
113 echo "test 14: control writes" 113 echo "test 14: control writes"
114 do_test -t 14 -c 15000 -s 256 -v 1 114 do_test -t 14 -c 15000 -s 256 -v 1
115
116 echo "test 21: control writes, unaligned"
117 do_test -t 21 -c 100 -s 256 -v 1
118
115 ;; 119 ;;
116 120
117 out) 121 out)
@@ -123,6 +127,13 @@ do
123 echo "test 3: $COUNT transfers, variable/short size" 127 echo "test 3: $COUNT transfers, variable/short size"
124 do_test -t 3 -v 421 128 do_test -t 3 -v 421
125 129
130 COUNT=100
131 echo "test 17: $COUNT transfers, unaligned DMA map by core"
132 do_test -t 17
133
134 echo "test 19: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
135 do_test -t 19
136
126 COUNT=2000 137 COUNT=2000
127 echo "test 5: $COUNT scatterlists, same size entries" 138 echo "test 5: $COUNT scatterlists, same size entries"
128 do_test -t 5 139 do_test -t 5
@@ -159,6 +170,10 @@ do
159 # FIXME it'd make sense to have an iso OUT test issuing 170 # FIXME it'd make sense to have an iso OUT test issuing
160 # short writes on more packets than the last one 171 # short writes on more packets than the last one
161 172
173 COUNT=100
174 echo "test 22: $COUNT transfers, non aligned"
175 do_test -t 22 -g 8 -v 0
176
162 ;; 177 ;;
163 178
164 in) 179 in)
@@ -173,6 +188,13 @@ do
173 echo "test 4: $COUNT transfers, variable size" 188 echo "test 4: $COUNT transfers, variable size"
174 do_test -t 4 189 do_test -t 4
175 190
191 COUNT=100
192 echo "test 18: $COUNT transfers, unaligned DMA map by core"
193 do_test -t 18
194
195 echo "test 20: $COUNT transfers, unaligned DMA map by usb_alloc_coherent"
196 do_test -t 20
197
176 COUNT=2000 198 COUNT=2000
177 echo "test 6: $COUNT scatterlists, same size entries" 199 echo "test 6: $COUNT scatterlists, same size entries"
178 do_test -t 6 200 do_test -t 6
@@ -201,6 +223,10 @@ do
201 # FIXME since iso expects faults, it'd make sense 223 # FIXME since iso expects faults, it'd make sense
202 # to have an iso IN test issuing short reads ... 224 # to have an iso IN test issuing short reads ...
203 225
226 COUNT=100
227 echo "test 23: $COUNT transfers, unaligned"
228 do_test -t 23 -g 8 -v 0
229
204 ;; 230 ;;
205 231
206 halt) 232 halt)