diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-01-25 04:53:58 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-01-25 04:53:58 +0100 |
commit | 3b3f049e8dfd7314239a4f489884648b2808d735 (patch) | |
tree | 53dfbd57e7a616865f46671dab52eb9117275537 /tests/dma | |
parent | a640c40c6bcf4bad0b78e0ea6ea04f2a5f3f877f (diff) | |
download | pcitool-3b3f049e8dfd7314239a4f489884648b2808d735.tar.gz pcitool-3b3f049e8dfd7314239a4f489884648b2808d735.tar.bz2 pcitool-3b3f049e8dfd7314239a4f489884648b2808d735.tar.xz pcitool-3b3f049e8dfd7314239a4f489884648b2808d735.zip |
Add delays to workaround problems in IPEDMA. Also provide other modifications to reflect minor changes in hardware
Diffstat (limited to 'tests/dma')
-rwxr-xr-x | tests/dma/ipe/bench.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/dma/ipe/bench.sh b/tests/dma/ipe/bench.sh index cc32971..aa7ec25 100755 --- a/tests/dma/ipe/bench.sh +++ b/tests/dma/ipe/bench.sh @@ -10,22 +10,31 @@ function pci { rm -f bench.out +echo "Stopping DMA and skipping exiting data..." pci --stop-dma dma0r +echo "Starting DMA..." pci --start-dma dma0r +echo "Enabling data generation..." +pci -w 0x4 0x1 # Clean DMA buffers #while [ $? -eq 0 ]; do # pci -r dma0 -s 65536 &> /dev/null #done +echo "Reading the data from DMA..." for i in `seq 1 100`; do pci -r dma0 --multipacket -s $size -o bench.out if [ $? -ne 0 ]; then + echo "Stopping DMA due to the error..." pci --stop-dma dma0r exit fi done +echo "Stopping DMA..." pci --stop-dma dma0r ../../../apps/check_counter bench.out + +#pci -r 0 -s 32 |