Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp275769ybl; Tue, 7 Jan 2020 06:03:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxHYI4FqzqSG0BE5hNq4SQ4Xn84kwuB+IY84xCGzxYS1WgL/4v47xz989YjMMcyyPeJJw4u X-Received: by 2002:aca:db41:: with SMTP id s62mr6820769oig.87.1578405786948; Tue, 07 Jan 2020 06:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578405786; cv=none; d=google.com; s=arc-20160816; b=LjxMS7f5HLwlZuCMHorSDG5h8NYt/bQTv/H6QMhs7vjdPyO4LFWmk781UvGMV6LkTL 1semtWUAdqVMZ3gSlHjNN35hz5oPrXFtkLFEvfZrcYudA48goMBIj6s0vrnEQO3GXhSF PY50BNO87jd8gIBuyz+OqOHBggd/+F99cYdJCzpDx5F578/xQnl5KxNgaPKhjB30dCjh ZlTm75XmGrPpZ4DyFT7VUyNQtIWa+ZE8oFSqT1YVcGbl873mydEIswQrkaSK95UCGv54 IhLPCHr5gKTXWKd2r77DcIAt4WNPr5wzhH7IZ7gLyM9H+NOYNR6xpfZyZ3Udzwek/uRq TxUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1DdkH/5E1tsHkzF5jhXew/z+AFPdpz7/Gvbqbl9G+dg=; b=kNirOWf2RltHcAB3a5pnkskWqNaOcqm4rvlXvXioiI/g8oUGoXdvk2SAaa5FQ38pdI +8GZchV5IZrWno2BJipjuuMZd1I64WQreZ3GuN/MyMIG5PAXF1QqxAvSLTNz+RqaRWSd KsNNNITdCwz+W8QBa12BMxCwQ6b3iLvh1ls2UG82YC3IkZM/6fgrg70bYq6NLPCPdtxC ZpOTA+DdSBCNQXhYB5zao0BBkkH3MotDqg3f9/I3MBccvlLCgmjKQKdeyyLm0lWm64Ie L5m6EHYWkVWJ91bfRmQAL7py4yhfj4YGnaEDfyn1Fqm8s+yIDz/x3L49h9PJzekCc/1l VYMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="d098/Ap5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si32052530otj.38.2020.01.07.06.02.43; Tue, 07 Jan 2020 06:03:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="d098/Ap5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728261AbgAGOB0 (ORCPT + 99 others); Tue, 7 Jan 2020 09:01:26 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:42148 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728243AbgAGOBZ (ORCPT ); Tue, 7 Jan 2020 09:01:25 -0500 Received: by mail-ed1-f66.google.com with SMTP id e10so50430260edv.9; Tue, 07 Jan 2020 06:01:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1DdkH/5E1tsHkzF5jhXew/z+AFPdpz7/Gvbqbl9G+dg=; b=d098/Ap5WZLDYOVx0LUlRnuUilSy+QZyFpM2S+2zMcaSMbQYhJs7Zsv6FI/Ks5jxXv dQO2dtGfqCwe9noHFs3y6uhVVyyaaGYPvZwl65t38wPj+hyImcuTHeqj5VyIA4f2lLWb UFEa9gC++l0TOhMPwTDLWof0xt/wpRXKZdRfavRYAv8KnTTjshhiZxdDSWfOtyFbT1Bv ymkgIQhCEUdCHX9AxIdCz7QsLJrymPx3I4pwcbwTXRCmuq1rwukCSqsog4onHzB8ED3B As0e8Ppu27OLG9hHYWl1FLz5+jvWgt0sYgd2BvjO6PTzcD9XD4qEGylhNQzi6oZNCc0p +UOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1DdkH/5E1tsHkzF5jhXew/z+AFPdpz7/Gvbqbl9G+dg=; b=lq8YThUGlMsKIZE4i7vF5A4PutyGuvXe/5S7kgV9OZc8TYBk+KTfidY0yQtEUEmYPO MgpXrKAp6VowgAy3e/sg2DQmsIbNLHWbV7iLGWfZ9lbz/bftTyIQyFOJMqmRC+wOJkfy VnwB/JTjglqEPLGSgf76Wg47yJgEnDabWwiAj7U94XuBc/5jCWe3boDjHE7PxpJFxdbT IH9sX3QBgVDlFldBHcIruhf+NHh6XlCoZZ4ycDHC/c7k/dIJO8+NVJwdF9tAQLxYBSEU 4htvJU7i5PhP232KFhK+bGpkn02LRTq12rrfvcwH9/H3svyReTc4Hm41aT9t8aX/NimN FWVg== X-Gm-Message-State: APjAAAWcXviDAnnAqK+FAGCeNRjwFr1GP4Z3FweORL89ja7TPCMgWF/S yZfDdjK2xZXbUqDicadoGo8z9NXqSCT6N0j3A4I= X-Received: by 2002:aa7:c80b:: with SMTP id a11mr115581083edt.240.1578405684201; Tue, 07 Jan 2020 06:01:24 -0800 (PST) MIME-Version: 1.0 References: <20191226203655.4046170-1-martin.blumenstingl@googlemail.com> In-Reply-To: <20191226203655.4046170-1-martin.blumenstingl@googlemail.com> From: Martin Blumenstingl Date: Tue, 7 Jan 2020 15:01:13 +0100 Message-ID: Subject: Re: [RFC v1 0/2] dwmac-meson8b Ethernet RX delay configuration To: jianxin.pan@amlogic.com Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, andrew@lunn.ch, f.fainelli@gmail.com, linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Jianxin, On Thu, Dec 26, 2019 at 9:37 PM Martin Blumenstingl wrote: > > The Ethernet TX performance has been historically bad on Meson8b and > Meson8m2 SoCs because high packet loss was seen. I found out that this > was related (yet again) to the RGMII TX delay configuration. > In the process of discussing the big picture (and not just a single > patch) [0] with Andrew I discovered that the IP block behind the > dwmac-meson8b driver actually seems to support the configuration of the > RGMII RX delay (at least on the Meson8b SoC generation). > > The goal of this series is to start the discussion around how to > implement the RGMII RX delay on this IP block. Additionally it seems > that the RX delay can also be applied for RMII PHYs? > > @Jianxin: can you please add the Amlogic internal Ethernet team to this > discussion? My questions are documented in the patch description of > patch #2. do you already have an update for me on this topic? while we're discussing unknown bits of the Ethernet controller I also remembered that we're currently not describing the relation between the "fclk_div2" clock and the Ethernet controller. however, as described in commit 72e1f230204039 ("clk: meson: meson8b: mark fclk_div2 gate clocks as CLK_IS_CRITICAL") this is needed for RGMII mode. it would be great to know the relation between fclk_div2 and RGMII mode on the Ethernet controller! Thank you! Martin