diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-08 20:07:02 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-08 20:07:02 +0200 |
commit | 5d49b3a8a1e5e8655f171c3e4f3455dcd2481d81 (patch) | |
tree | a5f79e4ab38ed40b41784479ad264331bc615917 /dma/ipe_benchmark.c | |
parent | 79d9b2924d7b67ba08e022792adb92770f64e0c8 (diff) | |
download | pcitool-5d49b3a8a1e5e8655f171c3e4f3455dcd2481d81.tar.gz pcitool-5d49b3a8a1e5e8655f171c3e4f3455dcd2481d81.tar.bz2 pcitool-5d49b3a8a1e5e8655f171c3e4f3455dcd2481d81.tar.xz pcitool-5d49b3a8a1e5e8655f171c3e4f3455dcd2481d81.zip |
Small clean up in IPEDMA driver
Diffstat (limited to 'dma/ipe_benchmark.c')
-rw-r--r-- | dma/ipe_benchmark.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dma/ipe_benchmark.c b/dma/ipe_benchmark.c index 3c10715..f8e0a7e 100644 --- a/dma/ipe_benchmark.c +++ b/dma/ipe_benchmark.c @@ -146,13 +146,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; @@ -177,12 +177,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; } +*/ } } |