All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] dmaengine: core/edma/omap-dma: maximum SG len reporting
@ 2017-09-12 10:44 ` Peter Ujfalusi
  0 siblings, 0 replies; 42+ messages in thread
From: Peter Ujfalusi @ 2017-09-12 10:44 UTC (permalink / raw)
  To: vinod.koul, dan.j.williams
  Cc: dmaengine, linux-kernel, linux-omap, linux-arm-kernel, t-kristo

Hi,

Both TI eDMA and sDMA have limitation on the number of bursts it can handle
within one trasnfer (CCNT in eDMA and CFN in sDMA are 16bit unsigned counters).

If the the length of the SG in the sglist is bigger than what can be supported
we either have corrupted data or failure in the setup phase.

Add device_get_max_len() callback to devices where they can report such length
restriction to client drivers so they can set up their SGlist that each
element's length is going to be within the supported range.

The first two patch is not strictly related to this issue, but it is needed that
both eDMA and sDMA will have valid max_burst length.

Regards,
Peter
---
Peter Ujfalusi (5):
  dmaengine: edma: Implement protection for invalid max_burst
  dmaengine: omap-dma: Implement protection for invalid max_burst
  dmaengine: Support for querying maximum trasnfer length (of an SG
    element)
  dmaengine: edma: Implement device_get_max_len callback
  dmaengine: omap-dma: Implement device_get_max_len callback

 drivers/dma/edma.c        | 28 ++++++++++++++++++++++++++++
 drivers/dma/omap-dma.c    | 28 ++++++++++++++++++++++++++++
 include/linux/dmaengine.h | 14 ++++++++++++++
 3 files changed, 70 insertions(+)

-- 
2.14.1


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2017-10-12 13:57 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-12 10:44 [PATCH 0/5] dmaengine: core/edma/omap-dma: maximum SG len reporting Peter Ujfalusi
2017-09-12 10:44 ` Peter Ujfalusi
2017-09-12 10:44 ` Peter Ujfalusi
2017-09-12 10:44 ` [PATCH 1/5] dmaengine: edma: Implement protection for invalid max_burst Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-21 17:10   ` Vinod Koul
2017-09-21 17:10     ` Vinod Koul
2017-09-21 17:10     ` Vinod Koul
2017-09-12 10:44 ` [PATCH 2/5] dmaengine: omap-dma: " Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-21 17:12   ` Vinod Koul
2017-09-21 17:12     ` Vinod Koul
2017-09-21 17:12     ` Vinod Koul
2017-09-12 10:44 ` [PATCH 3/5] dmaengine: Support for querying maximum trasnfer length (of an SG element) Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-21 17:14   ` Vinod Koul
2017-09-21 17:14     ` Vinod Koul
2017-09-21 17:14     ` Vinod Koul
2017-09-22  9:39     ` Peter Ujfalusi
2017-09-22  9:39       ` Peter Ujfalusi
2017-09-22  9:39       ` Peter Ujfalusi
2017-09-26 16:54       ` Vinod Koul
2017-09-26 16:54         ` Vinod Koul
2017-10-02 11:24         ` Peter Ujfalusi
2017-10-02 11:24           ` Peter Ujfalusi
2017-10-02 11:24           ` Peter Ujfalusi
2017-10-08  5:25           ` Vinod Koul
2017-10-08  5:25             ` Vinod Koul
2017-10-11 15:47             ` Peter Ujfalusi
2017-10-11 15:47               ` Peter Ujfalusi
2017-10-11 15:47               ` Peter Ujfalusi
2017-10-12 13:57               ` Vinod Koul
2017-10-12 13:57                 ` Vinod Koul
2017-09-12 10:44 ` [PATCH 4/5] dmaengine: edma: Implement device_get_max_len callback Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44 ` [PATCH 5/5] dmaengine: omap-dma: " Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi
2017-09-12 10:44   ` Peter Ujfalusi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.