This chapter defines and specifies testing of the
Windows example driver. Only a reduced subset of the EP’s functionality is being
tested, to make sure that functions previously tested on Linux work similarly on
Windows. The following test specification assumes environment AM24_WIN.
Test
Description:
Test to verify functionality of the Windows KMDF driver.
Execution:
- Verify that the Windows driver for the
pcie_enumerate_ep example EP has been loaded by searching for the ti-sample-kmdf
Device in the Windows device manager:
- Open a command prompt with administrator
privileges and run the ti-sample-console.exe application:
- Verify that all tests have passed without errors
as shown above.
- Verify that the output on the EP’s UART matches
the expected output, indicating completion of the DMA test, the MSI test
(sending 16 distinct interrupts) and the BAR test:
Rationale
The ti-sample-console application calls the ti-sample-kmdf driver and executes the following test
steps:
- A COPY test where data previously written by the
KMDF driver to the EP’s Bar0 memory is correctly sent back to the Windows host’s
DMA buffer
- A MSI test where the EP triggers every enabled
MSI vector (multiple message enable) once. The KMDF driver triggers this test in
the EP and waits for the reception of all MSI vectors. If the test returns, all
configured vectors have been received. Additionally, a bitmask of received MSI
vectors is displayed (for example,. result: 0000ffff indicates vectors 0-15 have
been received).
- A Bar1/2 test where the KMDF driver fills Bar1
and Bar2 of the EP with a known pattern, then triggers test execution in the EP.
The EP verifies the known pattern in Bar1 and Bar2 and on success sends an MSI
back to the RC. If the test returns, the verification was successful.