diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-14 06:01:27 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-14 06:01:27 +0200 |
commit | f4ad2df2209acac66f3df47d847f1f714283feab (patch) | |
tree | 23da0368acbb6c15cdebd2a35808cd6bbe99b8ae /cli.c | |
parent | b492b1aac3d12683ccbc973b08b023ba0466cbec (diff) | |
download | ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.gz ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.bz2 ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.tar.xz ipecamera-f4ad2df2209acac66f3df47d847f1f714283feab.zip |
First iteration of work to preserve DMA state between executions
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -146,6 +146,7 @@ void Usage(int argc, char *argv[], const char *format, ...) { " --start-dma <num>[r|w] - Start specified DMA engine\n" " --stop-dma [num][r|w] - Stop specified engine or DMA subsystem\n" " --wait-irq <source> - Wait for IRQ\n" +" --clean-kernel-memory - Cleans lost kernel space buffers (DANGEROUS)\n" "\n" " Addressing:\n" " -d <device> - FPGA device (/dev/fpga0)\n" @@ -334,7 +335,7 @@ void Info(pcilib_t *handle, pcilib_model_description_t *model_info) { } -#define BENCH_MAX_DMA_SIZE 16 * 1024 * 1024 +#define BENCH_MAX_DMA_SIZE 4 * 1024 * 1024 #define BENCH_MAX_FIFO_SIZE 1024 * 1024 int Benchmark(pcilib_t *handle, ACCESS_MODE mode, pcilib_dma_engine_addr_t dma, pcilib_bar_t bar, uintptr_t addr, size_t n, access_t access, size_t iterations) { |