summaryrefslogtreecommitdiffstats
path: root/dma
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-09-24 04:35:00 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-09-24 04:35:00 +0200
commite28e74adf3d58deb95ce84c66423f347cbe2f859 (patch)
tree44c2c36bd1ef100496fc5a6f1664cce2c857be0f /dma
parent08a01723af9cd52c078d5ca6c38c34d375b39fa0 (diff)
downloadpcitool-e28e74adf3d58deb95ce84c66423f347cbe2f859.tar.gz
pcitool-e28e74adf3d58deb95ce84c66423f347cbe2f859.tar.bz2
pcitool-e28e74adf3d58deb95ce84c66423f347cbe2f859.tar.xz
pcitool-e28e74adf3d58deb95ce84c66423f347cbe2f859.zip
Fix IPEDMA benchmark in non-streaming mode
Diffstat (limited to 'dma')
-rw-r--r--dma/ipe_benchmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dma/ipe_benchmark.c b/dma/ipe_benchmark.c
index 2f86444..fa89f4b 100644
--- a/dma/ipe_benchmark.c
+++ b/dma/ipe_benchmark.c
@@ -147,13 +147,13 @@ double dma_ipe_benchmark(pcilib_dma_context_t *vctx, pcilib_dma_engine_addr_t dm
pcilib_info_once("Benchmarking the DMA hardware (without memcpy)");
WR(IPEDMA_REG_CONTROL, 0x0);
-/*
+
err = pcilib_skip_dma(ctx->dmactx.pcilib, 0);
if (err) {
pcilib_error("Can't start benchmark, devices continuously writes unexpected data using DMA engine");
return -1;
}
-*/
+
// Allocate memory and prepare data
buf = malloc(size);
if (!buf) return -1;
@@ -178,13 +178,13 @@ double dma_ipe_benchmark(pcilib_dma_context_t *vctx, pcilib_dma_engine_addr_t dm
gettimeofday(&cur, NULL);
us += ((cur.tv_sec - start.tv_sec)*1000000 + (cur.tv_usec - start.tv_usec));
-/*
+
err = pcilib_skip_dma(ctx->dmactx.pcilib, 0);
if (err) {
pcilib_error("Can't start iteration, devices continuously writes unexpected data using DMA engine");
break;
}
-*/
+
}
}