From f4ad2df2209acac66f3df47d847f1f714283feab Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 14 Jul 2011 06:01:27 +0200 Subject: First iteration of work to preserve DMA state between executions --- cli.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 00b2174..bd5a33a 100644 --- a/cli.c +++ b/cli.c @@ -146,6 +146,7 @@ void Usage(int argc, char *argv[], const char *format, ...) { " --start-dma [r|w] - Start specified DMA engine\n" " --stop-dma [num][r|w] - Stop specified engine or DMA subsystem\n" " --wait-irq - Wait for IRQ\n" +" --clean-kernel-memory - Cleans lost kernel space buffers (DANGEROUS)\n" "\n" " Addressing:\n" " -d - 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) { -- cgit v1.2.3