diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-11-20 14:24:17 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-11-20 14:24:17 +0100 |
commit | cc5107c6d3db46ba213db974c630fc0fa1b89d68 (patch) | |
tree | 6c16375da1d5c7c5d4d853c5e0ba7775bbc99c8a /pcitool/cli.c | |
parent | 517ecf828e60e1e364c3ab6e67c2acd8a3c1b0c1 (diff) | |
download | pcitool-cc5107c6d3db46ba213db974c630fc0fa1b89d68.tar.gz pcitool-cc5107c6d3db46ba213db974c630fc0fa1b89d68.tar.bz2 pcitool-cc5107c6d3db46ba213db974c630fc0fa1b89d68.tar.xz pcitool-cc5107c6d3db46ba213db974c630fc0fa1b89d68.zip |
Configure number of DMA buffers in IPEDMA and improve checking and reporting inconsistent kmem buffers while re-using
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r-- | pcitool/cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c index b54ba9d..0a070d7 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -2333,7 +2333,7 @@ int StartStopDMA(pcilib_t *handle, const pcilib_model_description_t *model_info if (start) Error("DMA engine should be specified"); for (dmaid = 0; dma_info->engines[dmaid].addr_bits; dmaid++) { - err = pcilib_start_dma(handle, dmaid, 0); + err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_STOP); if (err) Error("Error starting DMA Engine (%s %i)", ((dma_info->engines[dmaid].direction == PCILIB_DMA_FROM_DEVICE)?"C2S":"S2C"), dma_info->engines[dmaid].addr); err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT); if (err) Error("Error stopping DMA Engine (%s %i)", ((dma_info->engines[dmaid].direction == PCILIB_DMA_FROM_DEVICE)?"C2S":"S2C"), dma_info->engines[dmaid].addr); @@ -2350,7 +2350,7 @@ int StartStopDMA(pcilib_t *handle, const pcilib_model_description_t *model_info err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT); if (err) Error("Error starting DMA engine (C2S %lu)", dma); } else { - err = pcilib_start_dma(handle, dmaid, 0); + err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_STOP); if (err) Error("Error starting DMA engine (C2S %lu)", dma); err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT); if (err) Error("Error stopping DMA engine (C2S %lu)", dma); @@ -2365,7 +2365,7 @@ int StartStopDMA(pcilib_t *handle, const pcilib_model_description_t *model_info err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT); if (err) Error("Error starting DMA engine (S2C %lu)", dma); } else { - err = pcilib_start_dma(handle, dmaid, 0); + err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_STOP); if (err) Error("Error starting DMA engine (S2C %lu)", dma); err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT); if (err) Error("Error stopping DMA engine (S2C %lu)", dma); |