]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw: Set DMA device max segment size parameter
authorBaikal Electronics <support@baikalelectronics.ru>
Thu, 23 Jul 2020 00:58:45 +0000 (03:58 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Jul 2020 09:00:55 +0000 (14:30 +0530)
commit39c92c29b27e7aa33c5d2e57856dc07f7f375ecf
treea2ce7eeebac2760f463ba3dbd7cbced18dfe4ff3
parentabf05c47478febc9404375c2738599eaf166a2c8
dmaengine: dw: Set DMA device max segment size parameter

Maximum block size DW DMAC configuration corresponds to the max segment
size DMA parameter in the DMA core subsystem notation. Lets set it with a
value specific to the probed DW DMA controller. It shall help the DMA
clients to create size-optimized SG-list items for the controller. This in
turn will cause less dw_desc allocations, less LLP reinitializations,
better DMA device performance.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200723005848.31907-8-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw/core.c