Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3414051ima; Tue, 23 Oct 2018 05:40:27 -0700 (PDT) X-Google-Smtp-Source: ACcGV616znS0UshKTo0mnmxOmJv2S0gj1PCnkZPqdP36lWhLkFiWt6vjMozLyO1JoEhGYYUVP1y/ X-Received: by 2002:a62:1a16:: with SMTP id a22-v6mr49596548pfa.237.1540298427552; Tue, 23 Oct 2018 05:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540298427; cv=none; d=google.com; s=arc-20160816; b=Yyb87cfjiL2KZUn8IW3PFU07U7WLX/XHqLd+u5xeJOWL3YLy337PkktBda//9M9ncS FPZft7anOqmSxSqeFRBpwUP5Qs1QEBKACWEJYcPZplKYQZj4zXMDJ3KwRemm8YaRG7wR 8hrjDzWiNmb0PMkHb36ARLyLy3+55B+aXCS5YFYO92q8eZncjUy85coA4zmqdjrSjazg hw3Jgm2H2ZEnkBW4mQZeKPFJqhjPkjGqnh2kZGnkaagmFFZmZq69jlgCA13PVVfJuSWC qzYUkhh/JGwxY5l1UTAw4J2K2HYFzuVopCUyyx4FDzKRKBScgFmPsHU3ZjCyy8Vin7B5 3Fdw== 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=gwuImIMWnYZU9tvWUDmNw1+0d/+BVjBQL4RtUGYVtyY=; b=DDzyLtxtyzF7w/lSWH2P/SdW1T7fi+8drmM0Cv7H7aZNGkD1Zd9VilkQup7c648Uyr fF7E+q33f0bFTqXJ2iuOTLOBKZigABst3T/TWSyg5WDdmFf6uqH5iiy8SFfZqfh7uxfd fAx4KdIWjqY4HUCBQDuKNAP9CxP16w/D5So/7pCrrVsdtjt0nXnH0XvguoxwQS24uln6 R8SRfoqm+khY8x39AYRAKq/bjIT6Mi6+01rYXx7tEnfp1jve4HqzMIbEcYzVqeR2X/I8 6/p66AUJNg4jdQXpSRHMjM8DqkdNG+rb7mUgWN+fG6mWvSYkfF1b/BgmPO9rZElVjWT5 aBgA== 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 i64-v6si1149594pli.285.2018.10.23.05.40.11; Tue, 23 Oct 2018 05:40:27 -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 S1728092AbeJWVAv (ORCPT + 99 others); Tue, 23 Oct 2018 17:00:51 -0400 Received: from mout02.posteo.de ([185.67.36.142]:47357 "EHLO mout02.posteo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJWVAv (ORCPT ); Tue, 23 Oct 2018 17:00:51 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2B7E92400FB for ; Tue, 23 Oct 2018 14:37:31 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 42fXw81Pxbz9rxV; Tue, 23 Oct 2018 14:37:28 +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: <302ebc5c-0c07-dc4e-73ed-6a4adb9cbee4@sorico.fr> Date: Tue, 23 Oct 2018 14:37:27 +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: en-US 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? > >> 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 It doesn't seem to change anything. But the problem really seems to be between the 88E1512 and mvneta. In mvneta_rx_swbm() I dumped the data received, in both cases, I've got the same thing: 0000 0000 0000 0000 0004 a3d2 a7ef 0800 dead beef 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 8a86 ce78 The 2 first bytes are the marvell header, and 4 last the CRC In one case the MVNETA_RXD_ERR_SUMMARY status bit is set, and not in the other case. But I don't have access to the Marvell documentation to know exactly what is the status "MVNETA_RXD_ERR_CRC". Richard