1. 06 4月, 2016 2 次提交
  2. 22 2月, 2016 2 次提交
  3. 08 2月, 2016 1 次提交
    • J
      dmaengine: edma: fix residue race for cyclic · 4ac31d18
      John Ogness 提交于
      When retrieving the residue value, the SRC/DST fields of the
      active PaRAM are read to determine the current position of
      the DMA engine. However, the AM335x Technical Reference Manual
      states:
      
        11.3.3.6 Parameter Set Updates
      
        After the TR is read from the PaRAM (and is in the process
        of being submitted to the EDMA3TC), the following fields are
        updated as needed: ... SRC DST
      
      This means SRC/DST is incremented even though the DMA transfer
      may not have started yet or is in progress. Thus if the reader
      of the residue accesses the DMA buffer too quickly, the CPU is
      misinformed about the data that has been successfully processed.
      
      The CCSTAT.ACTV register is a boolean that is set if any TR is
      being processed by either the EMDA3CC or EDMA3TC. By polling
      this register it is possible to ensure that the residue value
      returned is valid for immediate processing. However, since the
      DMA engine may be active, polling may never hit a moment where
      no TR is being processed. To handle this, the SRC/DST is also
      polled to see if it changes. And as a last resort, a max loop
      count for the busy waiting exists to avoid an infinite loop.
      Signed-off-by: NJohn Ogness <john.ogness@linutronix.de>
      Acked-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      4ac31d18
  4. 13 1月, 2016 1 次提交
  5. 18 12月, 2015 2 次提交
  6. 10 12月, 2015 2 次提交
  7. 16 11月, 2015 2 次提交
  8. 05 11月, 2015 1 次提交
  9. 27 10月, 2015 10 次提交
  10. 14 10月, 2015 17 次提交