Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3108501ima; Mon, 22 Oct 2018 23:58:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV63jMhI/FA7K63YrJX2y//Q1bVAwPGb1RaXY7rXbjBUkwI3EGSxMxBRezpScXbwxgopKMeq9 X-Received: by 2002:a63:f844:: with SMTP id v4mr2077623pgj.82.1540277935625; Mon, 22 Oct 2018 23:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540277935; cv=none; d=google.com; s=arc-20160816; b=MrG6ZJm4i2WzryXckKehzb0329VMr7x6FVBszU7YRrLzgkCEvWsrTk1S27rcJqaKWB WXuQ34pe2a0wgYNREusTBc/l4nUehg04wxCTDw2QrpgFfHw7VMRqnuClFAfDGq/CvUSN Avl1NXisWOB1svqwzSje+twryyUl2fkH+RWPXsaa5+SoZAFKzcrp75DvN5tsBSz1Ty4D Fk8VGbZgFb7CnwpR8WT71LSmXhScuQKLg591734AxM03Xht9E1V2R9AP202RXdpyzdBh hsAhOkx1haZfclHdEwjXIfhgT6e7Dlhf9UZLsaECNzwbaefG1JcgCZPxSOVVLJB/voii OjTQ== 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=mQ7V0m+CG9uOwpZlpk5lU651onl7LaxlKzya8zRJKJM=; b=S8uLob7xR0aTlawSpUo5mzzQbRE2Ls2DZOzHLd8XtvW4JlHQpFtqcy2OkOqQ4Te/nt IMQ6cbHOyHRtGWQMTK+8/ZKAICDIKRd2wydH9I9ppshp9ntsdJumLnr/SqH1OfBIGGlP skpbOqig77cdUwdzHkUGWhd0de8dte/ZllamiM5fHG662hmgvL0vZTuh5v4y5/nBkbzh S1r6xCcUHfZHCjeodZ0E5J4Jl8SHezjU41/jz44nSgi3gASYE2rvmi8WJhY+0r4xy8dR jSPZIfnxnQNKuNXFgcZeRmU6IHfPmjSQKGkY2W3bj/9I8WgUmamxXE5iX4gPrfA/VVpf mkJw== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35-v6si435487pgl.235.2018.10.22.23.58.38; Mon, 22 Oct 2018 23:58:55 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727535AbeJWPUT (ORCPT + 99 others); Tue, 23 Oct 2018 11:20:19 -0400 Received: from mout01.posteo.de ([185.67.36.141]:53854 "EHLO mout01.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbeJWPUT (ORCPT ); Tue, 23 Oct 2018 11:20:19 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 59EC0211AD for ; Tue, 23 Oct 2018 08:58:13 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 42fPNg20KKz6tmM; Tue, 23 Oct 2018 08:58:11 +0200 (CEST) Subject: Re: CRC errors between mvneta and macb To: Andrew Lunn Cc: Willy Tarreau , linux-kernel@vger.kernel.org, Thomas Petazzoni , Antoine Tenart , Gregory CLEMENT , Yelena Krivosheev , Maxime Chevallier , Nicolas Ferre , netdev@vger.kernel.org References: <20181019154439.GC24045@1wt.eu> <31385a3b-2196-94d0-7f4f-52e37ee07a28@sorico.fr> <20181022181918.GF24112@lunn.ch> From: Richard Genoud Message-ID: <3d967432-b526-0cee-ed45-beb27bebd031@sorico.fr> Date: Tue, 23 Oct 2018 08:58:10 +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: <20181022181918.GF24112@lunn.ch> 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 à 20:19, Andrew Lunn a écrit : >> I dug more on the subject, and I think I found what Marvell's PHY/MAC >> doesn't like. > > Hi Richard > > What PHY is being used? > 88E1512-NNP2 >> 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) > > Some Marvell PHYs have a register bit which might be of interest: Page > 2, register 16, bit 6. > > 0 = Pad odd nibble preambles in copper receive packets. > 1 = Pass as is and do not pad odd nibble preambles in > > Andrew > Thanks, I'll look into that. Richard