]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpdma: switch to use genalloc
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 27 Jun 2016 09:05:11 +0000 (12:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 08:16:11 +0000 (04:16 -0400)
commiteac34071350609c4f75a62b660a1f952b09811e2
treeefa4540ddbc94577007863016fc5dafd67ebb4db
parentbf8a472b080c4d6bce57176bb0b64961281dd605
net: ethernet: ti: cpdma: switch to use genalloc

TI CPDMA currently uses a bitmap for tracking descriptors alloactions
allocations, but The genalloc already handles the same and can be used
as with special memory (SRAM) as with DMA cherent memory chank
(dma_alloc_coherent()). Hence, switch to using genalloc and add
desc_num property for each channel for limitation of max number of
allowed descriptors for each CPDMA channel. This patch do not affect
on net throuput.

Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c