lkml.org 
[lkml]   [2002]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectPossible discrepancy regarding streaming DMA mappings in DMA-mapping.txt?
    In the explanation of streaming DMA mappings and holding onto a mapping
    for multiple DMA operations, the file Documentation/DMA-mapping.txt
    (line 507) says the following:

    If you need to use the same streaming DMA region multiple times
    and touch the data in between the DMA transfers, just map it
    with pci_map_{single,sg}, and after each DMA transfer call
    either:

    pci_dma_sync_single(dev, dma_handle, size, direction);

    or:

    pci_dma_sync_sg(dev, sglist, nents, direction);

    as appropriate.

    However, shouldn't pci_dma_sync_*() be called *before* each
    PCI_DMA_TODEVICE DMA transfer (after the CPU write, of course) and
    *after* each PCI_DMA_FROMDEVICE DMA transfer (before CPU access)? And,
    of course, before and after a "bidirectional" DMA, if appropriate.

    Thanks,
    William
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:26    [W:2.971 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site