Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934257AbcLAMd4 (ORCPT ); Thu, 1 Dec 2016 07:33:56 -0500 Received: from mail-io0-f175.google.com ([209.85.223.175]:35096 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933146AbcLAMdx (ORCPT ); Thu, 1 Dec 2016 07:33:53 -0500 MIME-Version: 1.0 In-Reply-To: <20161201201648.6a50b442@xhacker> References: <6b4d20a85b05e93d254e265eb07569dd1285d303.1480542157.git-series.gregory.clement@free-electrons.com> <20161201192604.07ed9516@xhacker> <20161201200205.46dec339@xhacker> <20161201201648.6a50b442@xhacker> From: Marcin Wojtas Date: Thu, 1 Dec 2016 13:33:52 +0100 Message-ID: Subject: Re: [PATCH v5 net-next 4/7] net: mvneta: Convert to be 64 bits compatible To: Jisheng Zhang Cc: Thomas Petazzoni , Andrew Lunn , Jason Cooper , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitri Epshtein , Nadav Haklai , Yelena Krivosheev , Gregory CLEMENT , "David S. Miller" , "linux-arm-kernel@lists.infradead.org" , Sebastian Hesselbarth Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1656 Lines: 49 Hi Jisheng, 2016-12-01 13:16 GMT+01:00 Jisheng Zhang : > On Thu, 1 Dec 2016 20:02:05 +0800 Jisheng Zhang wrote: > >> Hi Marcin, >> >> On Thu, 1 Dec 2016 12:48:39 +0100 Marcin Wojtas wrote: >> >> > Hi Jisheng, >> > >> > Which baseline do you use? >> > >> > It took me really lot of time to catch why RX broke after rebase from >> > LKv4.1 to LKv4.4. Between those two, in commit: >> > 97303480753e ("arm64: Increase the max granular size") >> > L1_CACHE_BYTES for all ARMv8 platforms was increased to 128B and so >> > did NET_SKB_PAD. >> > >> > And 128 is more than the maximum that can fit into packet offset >> > [11:8]@0x1400. In such case this correction is needed. Did it answer >> > your doubts? >> >> That's key! Thanks a lot. In my repo, we don't have commit 97303480753e >> ("arm64: Increase the max granular size") >> >> I think it would be great if this information can be added into the commit >> msg. >> >> IIRC, arm64 maintainers considered to let L1_CACHE_BYTES the _minimum_ of >> cache line sizes of arm64. If that's implemented and merged, then we can > > I just searched and found the email. > > "We may have to revisit this logic and consider L1_CACHE_BYTES the > _minimum_ of cache line sizes in arm64 systems supported by the kernel. > Do you have any benchmarks on Cavium boards that would show significant > degradation with 64-byte L1_CACHE_BYTES vs 128?" > > https://patchwork.kernel.org/patch/8634481/ > > Thank you for the information. I debugged it before the discussion. In future we would be able to revert it, however afair packet offset may be needed by A3700 Buffer Management. Best regards, Marcin