diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:19:34 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-10-23 03:19:34 +0200 |
commit | 95b5fb80dbe71ef58d235c26c9e73849fb07f84c (patch) | |
tree | 4d9442e3927e5066926509eedea878a4bb345f53 /dma | |
parent | 122da21966aa8beb2f1cfb739ae6e76bcdba2d4c (diff) | |
download | ipecamera-95b5fb80dbe71ef58d235c26c9e73849fb07f84c.tar.gz ipecamera-95b5fb80dbe71ef58d235c26c9e73849fb07f84c.tar.bz2 ipecamera-95b5fb80dbe71ef58d235c26c9e73849fb07f84c.tar.xz ipecamera-95b5fb80dbe71ef58d235c26c9e73849fb07f84c.zip |
Do not sync to device, looks like it is not required
Diffstat (limited to 'dma')
-rw-r--r-- | dma/nwl_engine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dma/nwl_engine.c b/dma/nwl_engine.c index d90dbef..1fc147f 100644 --- a/dma/nwl_engine.c +++ b/dma/nwl_engine.c @@ -292,7 +292,8 @@ int dma_nwl_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin pcilib_kmem_sync_block(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_FROMDEVICE, bufnum); void *buf = pcilib_kmem_get_block_ua(ctx->pcilib, info->pages, bufnum); ret = cb(cbattr, eop?PCILIB_DMA_FLAG_EOP:0, bufsize, buf); - pcilib_kmem_sync_block(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_TODEVICE, bufnum); +// DS: Fixme, it looks like we can avoid calling this for the sake of performance +// pcilib_kmem_sync_block(ctx->pcilib, info->pages, PCILIB_KMEM_SYNC_TODEVICE, bufnum); dma_nwl_return_buffer(ctx, info); |