]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/dma/dmaengine.h
dmaengine: Add support for reporting DMA cached data amount
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 23 Dec 2019 11:04:45 +0000 (13:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jan 2020 05:36:12 +0000 (11:06 +0530)
commit6755ec06d1333765d2b935e4e4a5bd011332bac6
tree4d59646887e55cb971cb33001eb6e5e1fb4128d7
parent4db8fd32ed2be7cc510e51e43ec3349aa64074a9
dmaengine: Add support for reporting DMA cached data amount

A DMA hardware can have big cache or FIFO and the amount of data sitting in
the DMA fabric can be an interest for the clients.

For example in audio we want to know the delay in the data flow and in case
the DMA have significantly large FIFO/cache, it can affect the latenc/delay

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Tero Kristo <t-kristo@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20191223110458.30766-6-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.h
include/linux/dmaengine.h