From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751143AbcFXGDj (ORCPT ); Fri, 24 Jun 2016 02:03:39 -0400 Received: from bear.ext.ti.com ([198.47.19.11]:36730 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbcFXGDi (ORCPT ); Fri, 24 Jun 2016 02:03:38 -0400 Subject: Re: [PATCH] net: ethernet: ti: cpdma: switch to use genalloc To: Grygorii Strashko , "David S. Miller" , References: <20160623123620.11681-1-grygorii.strashko@ti.com> CC: Sekhar Nori , , , Ivan Khoronzhuk From: Mugunthan V N Message-ID: <576CCD33.80806@ti.com> Date: Fri, 24 Jun 2016 11:33:31 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160623123620.11681-1-grygorii.strashko@ti.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 23 June 2016 06:06 PM, Grygorii Strashko wrote: > 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. > > Cc: Ivan Khoronzhuk > Signed-off-by: Grygorii Strashko Acked-by: Mugunthan V N Regards Mugunthan V N From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mugunthan V N Subject: Re: [PATCH] net: ethernet: ti: cpdma: switch to use genalloc Date: Fri, 24 Jun 2016 11:33:31 +0530 Message-ID: <576CCD33.80806@ti.com> References: <20160623123620.11681-1-grygorii.strashko@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160623123620.11681-1-grygorii.strashko@ti.com> Sender: linux-kernel-owner@vger.kernel.org To: Grygorii Strashko , "David S. Miller" , netdev@vger.kernel.org Cc: Sekhar Nori , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Ivan Khoronzhuk List-Id: linux-omap@vger.kernel.org On Thursday 23 June 2016 06:06 PM, Grygorii Strashko wrote: > 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. > > Cc: Ivan Khoronzhuk > Signed-off-by: Grygorii Strashko Acked-by: Mugunthan V N Regards Mugunthan V N