From: Florian Fainelli Subject: Re: [PATCH net-next v2 2/2] net: stmmac: Fixup the tail addr setting in xmit path Date: Mon, 10 Sep 2018 11:46:43 -0700 Message-ID: References: <2b430bedf98176f052e1530004ab623d26d2c71a.1536570319.git.joabreu@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue To: Jose Abreu , netdev@vger.kernel.org Return-path: Received: from mail-qk1-f195.google.com ([209.85.222.195]:44144 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbeIJXmU (ORCPT ); Mon, 10 Sep 2018 19:42:20 -0400 Received: by mail-qk1-f195.google.com with SMTP id d131-v6so15062978qke.11 for ; Mon, 10 Sep 2018 11:46:54 -0700 (PDT) In-Reply-To: <2b430bedf98176f052e1530004ab623d26d2c71a.1536570319.git.joabreu@synopsys.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 09/10/2018 02:14 AM, Jose Abreu wrote: > Currently we are always setting the tail address of descriptor list to > the end of the pre-allocated list. > > According to databook this is not correct. Tail address should point to > the last available descriptor + 1, which means we have to update the > tail address everytime we call the xmit function. > > This should make no impact in older versions of MAC but in newer > versions there are some DMA features which allows the IP to fetch > descriptors in advance and in a non sequential order so its critical > that we set the tail address correctly. Can you include the appropriate Fixes tag here so this can easily be backported to relevant stable branches? -- Florian