usb_dv.html 2.3 KB
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) [Netscape]">
</head>
<body>

<center><font size=+1>USB Test Plan</font></center>
(1) What <a href="arc_usb_test.html">ARC Test</a> includes?
<br>&nbsp;&nbsp;&nbsp; * After reset, check if 31 registers are set to
default value.
<br>&nbsp;&nbsp;&nbsp; * Try read/write 9 r/w register.
<br>&nbsp;&nbsp;&nbsp; * Device test
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test three transactions: SETUP/IN/OUT
with 1/2/3/8 packet length.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Check NULL data IN transactions
All tests are only using endpoint and "control transfer"
<br>&nbsp;&nbsp;&nbsp; * Line state test: SE0 J and unstable state
<br>&nbsp;&nbsp;&nbsp; * OTG test:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "ID_PIN", "OTG_disconnect", "otg_session_valid"
and "otg_session_end" interrupts
<br>&nbsp;&nbsp;&nbsp; * Host echo Test SOF OUT token (send out 64 bytes)
IN token (read back and compare -- echo)
<br>&nbsp;&nbsp;&nbsp; There are <a href="arc_usb_in_host_ctrl">more tests
</a>in vusb_host_ctrl.v, but we do not have "C(pp)" side code responding
those tests.
<p>(2) What we need to add?
<br>&nbsp;&nbsp;&nbsp; * Test all registers for default value, r/w and
walk through
<br>&nbsp;&nbsp;&nbsp;&nbsp; * Device and Host test
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Different tx/rx buf addr(cross
2k page, bank, not n bytes align, etc)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Different packet length(from
0-byte to 1024) Different endpoints 0-max(4/16?)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Different transfer mode,
at least we need to add bulk transfer. (At least we need to port some of
ch9 functions to setup each endpoint)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * USB mode(device/host)
switch.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Error cases.
<p>(3) What we might delete?
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * OTG Test
<p>(4) More
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Rand test
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * Stress and performance test
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * System level test(we might end
up with all ch9 tests.)
</body>
</html>