Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3113327ima; Tue, 23 Oct 2018 00:04:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5fTLnbKCyEiG12IMes39Vc7mcvdjgfQBtTA7NEhxATPw6fW0l7DRRACNBf5YfTH0D84CiGs X-Received: by 2002:a17:902:9698:: with SMTP id n24-v6mr1718725plp.9.1540278256539; Tue, 23 Oct 2018 00:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540278256; cv=none; d=google.com; s=arc-20160816; b=x7JAn48tnZdx4UmILm44/7OLELwK4nZYOSnMSgE9WnCWBCVvJW7R0CGfc0fG4dTuki mTjJwBt54oKhK5PlIUrROQRldC3eLHSvBzRRv7xvrDBZ3fXbDa1Yc8i1aCJVFF4bCClm j7V94v4l3/E4Q0i8nam3vYALI1V8OC7OaPmERBe+Ke3Qln7Al4QyxHSPs9+HgA+5nQFN Z3cMvbuqdcz7Mhyukod8aPHvel7iqnr2SWukArmldIpBAGnIdP5RvdpYt1nKKdnkDjjK 9NQ0NIXzu/BOtWZw3rwKpHlDektbaxN3Rv/TnEOecUtTrkmDXgDAUYE3PQRsiHfdl7V7 SFKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hU3m0jhkEfkhyK5V9DEoGRSRIrRp+B7kE5iayL92cZY=; b=0e21QPKfTIIgf5DNmtrOsqKZIzp2MmZuJDN0i1TXi2lDqvvoQ1COxYN/8LAz27J/UX 7GpkP1ygehMKHx+6y/SvusCVSX76zjFOSFoOb00bz0oIF/3e3tWYn3ijh2LGffTKz45P q3Ue2Gs0kHp4tQQbPLPdp8916s//ZreHKEXGOLzxCGsBrvso6Qzz/Tg+6Io+j8KXVeH1 i7C5P4bK8r8rwrHPhJ2jbqIz1qTRcL/FwNAam+xAjtMYALb2o9i9V36Ji/BQVkQfnhXH M+P2H5RHptgA5CaSJY3bB6GmfhKYXnFl7um/cFdFLxAf8eVDjwZ3iYhIfbV170tnvLJC VLZw== ARC-Authentication-Results: i=1; mx.google.com; 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 l9-v6si426140pgj.210.2018.10.23.00.04.00; Tue, 23 Oct 2018 00:04:16 -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; 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 S1727704AbeJWPZX (ORCPT + 99 others); Tue, 23 Oct 2018 11:25:23 -0400 Received: from mout02.posteo.de ([185.67.36.142]:35437 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbeJWPZW (ORCPT ); Tue, 23 Oct 2018 11:25:22 -0400 X-Greylist: delayed 426 seconds by postgrey-1.27 at vger.kernel.org; Tue, 23 Oct 2018 11:25:21 EDT Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 3F6182400FD for ; Tue, 23 Oct 2018 08:56:10 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 42fPLJ1jnsz9rxK; Tue, 23 Oct 2018 08:56:07 +0200 (CEST) Subject: Re: CRC errors between mvneta and macb To: Willy Tarreau , Richard Genoud Cc: linux-kernel@vger.kernel.org, Thomas Petazzoni , Antoine Tenart , Gregory CLEMENT , Yelena Krivosheev , Maxime Chevallier , Nicolas Ferre , netdev@vger.kernel.org, Andrew Lunn References: <20181019154439.GC24045@1wt.eu> <31385a3b-2196-94d0-7f4f-52e37ee07a28@sorico.fr> <20181022163429.GA22826@1wt.eu> From: Richard Genoud Message-ID: Date: Tue, 23 Oct 2018 08:56:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181022163429.GA22826@1wt.eu> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 22/10/2018 à 18:34, Willy Tarreau a écrit : > On Mon, Oct 22, 2018 at 05:15:21PM +0200, Richard Genoud wrote: >> After analyzing the ethernet frame on the Davicom PHY's output (pin >> TX+), I find out that the FCS errors occurs when the ethernet preamble >> is longer than 56bits. (something like 58 or 60 bits) >> >> To say this in another way, instead of having 28 times 1-0 followed by >> the SFD (10101011), I see 29 or 30 times 1-0 followed by the SFD. >> (sometimes 29, sometimes 30) >> >> >> Should a longer preamble be considered as an FCS error ? It seems a >> little harsh since the point of the preamble is to synchronize the frame. > > That indeed seems a bit strange considering that you're not supposed to > know what is before the preamble so it would very well contain random > noise looking a lot like alteranted bits. > >> I don't know what the 802.3 standard says about that. > > Just found it :-) > > https://www.trincoll.edu/Academics/MajorsAndMinors/Engineering/Documents/IEEE%20Standard%20for%20Ethernet.pdf > > Page 132, #7.2.3.2 : > > The DTE is required to supply at least 56 bits of preamble in > order to satisfy system requirements. System components consume > preamble bits in order to perform their functions. The number > of preamble bits sourced ensures an adequate number of bits are > provided to each system component to correctly implement its > function. > > So that totally makes sense since the purpose is to enable signal > detection at the hardware leve, hence the problem definitely is on > the receiver in your case. > > Willy > Great ! Thanks ! I'll check on the Marvell side Richard