]> 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)
commit6f4c731b5a189b480c95b233e8474f1249ebc065
treeefa4540ddbc94577007863016fc5dafd67ebb4db
parent37ad4bb151cccb047cfe4c20b90fb3b074bd0bd5
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