Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1748063ybg; Sat, 19 Oct 2019 01:38:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqylwPDCQXEtFMhBcLNlX8EKGqAT4huj2EwCtOzMyu6lH9nZktnKGFIEpYNlTdl2ufCaD+vq X-Received: by 2002:aa7:c6d5:: with SMTP id b21mr14138760eds.37.1571474333598; Sat, 19 Oct 2019 01:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571474333; cv=none; d=google.com; s=arc-20160816; b=Vp3UkGwIeCTSLq9M3xwR8T8JldHjmgS7IHRc7sgybkhT9l+fbeq54pI9eaWv787TwV f9fJCQ8TdZgx9ExwiBKiedRNH4o1MTLOKSRRTp1DdVNBLKtZX6ElhMhNAvnFhtWHIalp FDws9iOqsmNbHAJxheLmFraGLqDqGJHtR1fcPZHyiRaFRMsSzP9E7QZfVDKxza2ubytr o5VdHsDlMWmXp9e5J6s6xRnbbVTPEASRCw+R4p9aT7VQmfn1rIm2YNbIeWy2dEfXk+zz DjmG1+t50JkcSpQiRHYwihazTBBfTQ/ofZJp8RzV52xXyBwSheXg55ASLjcxGRkXcxDL YN1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SMevRHn5yAEfndygCJGs4e6HW+7R6WGQ8pVjp6LF3ck=; b=YtIptiiK4nnynd+zKpjIyiAbdqXYuuD1WeBSvxeqA76Iph+ac40lBLau2ywWdM97X7 VrgoMTaPdGpJFffyz9IYT7+SV9C3YfzkdCdWqESSVhLu7cwVLQ6wvjTwNH6eV1oNQ5yv T6GgENT4jM5UUfcHkg1pGsc+e1RKev38nt5+GHRKwODGs5sUlzymqytlal3izHcJz4Dj qqF1QI9jUGGYuGXfj7/TLKqp82tBBm2idvMQnZg29Mrcm1DasDXyaqejjGsMXB5tXQJV 78DVRTS5tJATNHmG7X0siUnvPnQ7KvNzmEpl+yaCRHsserm9iImAhH8SMAaC9s7IVU7X 2gdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=BEErwb0u; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si5993475edb.164.2019.10.19.01.38.30; Sat, 19 Oct 2019 01:38:53 -0700 (PDT) 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=fail header.i=@lunn.ch header.s=20171124 header.b=BEErwb0u; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406337AbfJRQBX (ORCPT + 99 others); Fri, 18 Oct 2019 12:01:23 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52686 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbfJRQBW (ORCPT ); Fri, 18 Oct 2019 12:01:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SMevRHn5yAEfndygCJGs4e6HW+7R6WGQ8pVjp6LF3ck=; b=BEErwb0u6hMrDSuQYoY0HlkHWz 0gIyUCWa/abTfBKoco0WYf/7oWnJTsQPdB5bRDVguZACXvtAPCqpBkBv5AM1Nt8GCXigGHD9QWJ8V mnp39WvOEaavIcJj5BbQEhNfzkU96y4Vr7cmmnKMZzaBeWy0EipOK5A00odRjeI9n6rA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.92.2) (envelope-from ) id 1iLUgm-0001qG-Py; Fri, 18 Oct 2019 18:01:16 +0200 Date: Fri, 18 Oct 2019 18:01:16 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Russell King - ARM Linux admin , Florian Fainelli , netdev , "David S. Miller" , open list , Heiner Kallweit , bcm-kernel-feedback-list@broadcom.com, cphealy@gmail.com, Jose Abreu Subject: Re: [PATCH net-next 2/2] net: phy: Add ability to debug RGMII connections Message-ID: <20191018160116.GD24810@lunn.ch> References: <20191015224953.24199-3-f.fainelli@gmail.com> <4feb3979-1d59-4ad3-b2f1-90d82cfbdf54@gmail.com> <20191018130121.GK4780@lunn.ch> <20191018132316.GI25745@shell.armlinux.org.uk> <20191018135411.GJ25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I don't think you are following the big picture of what I am saying. I > was trying to follow Florian's intention (first make sure I understand > it) and suggest that the FCS checking code in the patch he submitted > is not doing what it was intended to. I am getting apparent FCS > mismatches reported by the program, when I know full well that the MAC > I am testing on would have dropped those frames were they really > invalid. I think this FCS check is not needed. If we feed the MAC random data, something like 1 in 65535 will have a valid FCS and get passed up. I've not seen this happen with Ethernet, but i have seen other network technologies wrong decoding noise on the line and passing up frames with around 1 in 65536 probability. But then having the correct Ethertype is another 1 in 65536. So it seem pretty improbably we do receiver a packet in this method which is bad. So i would say, any packet received here is a good packet, and indicate the RGMII mode works. If we don't receive a packet, the mode is very probably bad. Andrew