From 9ccacea308f336d10c8a94d393b261539a6970bf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 5 May 2015 23:13:45 +0200 Subject: Support gen3 DMA engine and provide work-arround for hardware mishandling last_descriptor_read register --- tests/ipedma/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/ipedma') diff --git a/tests/ipedma/test.sh b/tests/ipedma/test.sh index 62c391a..11a6227 100755 --- a/tests/ipedma/test.sh +++ b/tests/ipedma/test.sh @@ -23,11 +23,12 @@ pci -w 0x4 0x1 #done echo "Reading the data from DMA..." -for i in `seq 1 100`; do - pci -r dma0 --multipacket -s $size -o bench.out +for i in `seq 1 1000`; do + pci -r dma0 --multipacket -s $size -o bench.out --timeout 1000000 +# pci -r dma0 --multipacket -s $size -o /dev/null --timeout 10000000 if [ $? -ne 0 ]; then echo "Stopping DMA due to the error..." - pci --stop-dma dma0r +# pci --stop-dma dma0r exit fi done -- cgit v1.2.3