Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4628005pxu; Mon, 21 Dec 2020 18:28:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxo5v8UQyZLpARhy/0R34yU1C0jkpgdUh/M9QoK3DON18jmfNnjv7evCDqerQgm16DUy+jE X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr17614953ejb.346.1608604137966; Mon, 21 Dec 2020 18:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608604137; cv=none; d=google.com; s=arc-20160816; b=pAS7X40gOX4k7LRpdimfDzOzrz8gxsmC2yHike0hXhUy2wosOOm2hlUTkuEBZiXtvP P8VanMtbmjHIUDa4BTKR/INJBxIAv8PjwuD59TmYhQhh5W+ioS1AI+4ief1WaFdrVna4 twMVfGFGu1ugDvOQypxEmwgxY26mMyQFjZoO4kLtPI+JbLTkJH8gSOza7wv2cKzlZLxa fmXXMMGqyhcIa+eugQ1z8OB1dNOPuo7rAZ22AB9saBlRmYj9CDxEgzdyraQZZMMMPdYF Vc1vu7v8cgkgHbeOXiy5jcts8KAV9Wr5CRDxmz+4PdWkh+r6bNaeGk7jTItKFgOJSF0H 8pTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Aa+IvQkdl3mH7p3cqCA6yyl0vf5PDrQXGE5A+/Y+ABg=; b=qk2WwOViEtVygyxuiR0yEk3McinY8MfR+xTBTqmT7BLpiunIB8ziANw/fJO4Nk878U QK2e4Dhln/f9Rx/ba7j26J80bvJE6T40fEq7Mlrh7to+tmPWBhX+2ewt8WuVx7lOxkP0 TRUOtE9AkKVPsPpgoiZDrcaaLXkL2bNg/UA3+vHLZudB2KzzJ2JPyjIOr1FbEMRMZZ8r 8h8hwLgP+BYrk9/vVZjQ2z+tjyDI4jUVpIPj5PYnWNq7hmIbK6JY2pAfNwh5xIyrO6I2 laTg7JM5uSD50czGn3mWtfLVpFYDxkjqPCaxQFm4MPiqcxUKywjqV7cl2iIMYo+K4iZ/ 0wwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=P6MASFHF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si12182802edm.386.2020.12.21.18.28.32; Mon, 21 Dec 2020 18:28:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=P6MASFHF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725869AbgLVC1S (ORCPT + 99 others); Mon, 21 Dec 2020 21:27:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgLVC1S (ORCPT ); Mon, 21 Dec 2020 21:27:18 -0500 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3776EC0613D3; Mon, 21 Dec 2020 18:26:38 -0800 (PST) Received: by mail-qt1-x829.google.com with SMTP id g24so8084403qtq.12; Mon, 21 Dec 2020 18:26:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Aa+IvQkdl3mH7p3cqCA6yyl0vf5PDrQXGE5A+/Y+ABg=; b=P6MASFHFpHgisvCiEOOTFT8p7oFaacE7DqQoeEjzP0Xzw9S9mPkWPqrRM1tw+zpODd HTIwbN3O6U75aAoeXuCcKPDYwaBTZSJwm7gFqFQf+thhxhbq0MVAjbFdAmw3BR66iG7h eXQdiUjdyDN8tV2uj3QgCUT1s+QaijuJo6iFE= 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=Aa+IvQkdl3mH7p3cqCA6yyl0vf5PDrQXGE5A+/Y+ABg=; b=dVgeLqr+C1gYybS7HBGX7FemBCdAG0Df6ppHtSqfJslgu8AT30XzBqZ68KhpmK9mVd E38nm06IC9J2nNy8cbuFZywu9J10GYUxLpiIH9xBMILh6gp1us+Y/hL9iVl3JNJuy4X8 Lb7NEiylq0X7eLKOFc288kVNn48OiX21zy4wtc9VLwaMbKYgkIrso8JQEftixNRrDMpx 4/GlS27nLbHM0fKHorU2XMqQsPiK1EzneKtiirwWmb1URCO1Gqa/Tl1+Zudk+OWTUclT gyzosV41IziKhZzLqqCCCdqudLVHghyyAJGe6VSlRz8uMnVmeJXnhMHBn0px/GqB7cOd RBlA== X-Gm-Message-State: AOAM5328NOeo3KW5kJU5L2FGG2IJPyDIHVAYj34u+2zSoY0273WjejOn uvnaxMNxcM/0J1bVIyTNa8s9PGO+Bxpd9KzSMXY= X-Received: by 2002:ac8:4d4d:: with SMTP id x13mr19211754qtv.385.1608603997385; Mon, 21 Dec 2020 18:26:37 -0800 (PST) MIME-Version: 1.0 References: <20201215192323.24359-1-hongweiz@ami.com> <20201221170048.29821-1-hongweiz@ami.com> In-Reply-To: <20201221170048.29821-1-hongweiz@ami.com> From: Joel Stanley Date: Tue, 22 Dec 2020 02:26:25 +0000 Message-ID: Subject: Re: [Aspeed,ncsi-rx, v1 0/1] net: ftgmac100: Fix AST2600EVB NCSI RX issue To: Hongwei Zhang , Ryan Chen Cc: linux-aspeed , Linux Kernel Mailing List , OpenBMC Maillist , Jakub Kicinski , David S Miller , netdev , Andrew Jeffery Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Dec 2020 at 17:01, Hongwei Zhang wrote: > > Dear Reviewer, > > When FTGMAC100 driver is used on other NCSI Ethernet controllers, few > controllers have compatible issue. One example is Intel I210 Ethernet > controller on AST2600 BMC, with FTGMAC100 driver, it always trigger > RXDES0_RX_ERR error, cause NCSI initialization failure, removing > FTGMAC100_RXDES0_RX_ERR bit from RXDES0_ANY_ERROR fix the issue. I work with a few systems that use the i210 on the 2600. We haven't seen this issue in our testing. Is there something specific about the setup that you use to trigger this? Ryan, is this an issue that Aspeed is aware of? Cheers, Joel > > Here are part of the debug logs: > ...... > [ 35.075552] ftgmac100_hard_start_xmit TXDESO=b000003c > [ 35.080843] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 55 > [ 35.087141] ftgmac100 1e660000.ethernet eth0: rx_packet_error RXDES0=0xb0070040 > [ 35.094448] ftgmac100_rx_packet RXDES0=b0070040 RXDES1=f0800000 RXDES2=88f8 > [ 35.101498] ftgmac100 1e660000.ethernet eth0: rx_packet_error 0xb0070040 > [ 35.108205] ftgmac100 1e660000.ethernet eth0: [ISR] = 0xb0070040: RX_ERR > [ 35.287808] i2c i2c-1: new_device: Instantiated device slave-mqueue at 0x12 > [ 35.428379] ftgmac100_hard_start_xmit TXDESO=b000003c > [ 35.433624] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 56 > [ 35.439915] ftgmac100 1e660000.ethernet eth0: rx_packet_error RXDES0=0xb0070040 > [ 35.447225] ftgmac100_rx_packet RXDES0=b0070040 RXDES1=f0800000 RXDES2=88f8 > [ 35.454273] ftgmac100 1e660000.ethernet eth0: rx_packet_error 0xb0070040 > [ 35.460972] ftgmac100 1e660000.ethernet eth0: [ISR] = 0xb0070040: RX_ERR > [ 35.797825] ftgmac100_hard_start_xmit TXDESO=b000003c > [ 35.803241] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 57 > [ 35.809541] ftgmac100 1e660000.ethernet eth0: rx_packet_error RXDES0=0xb0070040 > [ 35.816848] ftgmac100_rx_packet RXDES0=b0070040 RXDES1=f0800000 RXDES2=88f8 > [ 35.823899] ftgmac100 1e660000.ethernet eth0: rx_packet_error 0xb0070040 > [ 35.830597] ftgmac100 1e660000.ethernet eth0: [ISR] = 0xb0070040: RX_ERR > [ 36.179914] ftgmac100_hard_start_xmit TXDESO=b000003c > [ 36.185160] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 58 > [ 36.191454] ftgmac100 1e660000.ethernet eth0: rx_packet_error RXDES0=0xb0070040 > [ 36.198761] ftgmac100_rx_packet RXDES0=b0070040 RXDES1=f0800000 RXDES2=88f8 > [ 36.205813] ftgmac100 1e660000.ethernet eth0: rx_packet_error 0xb0070040 > [ 36.212513] ftgmac100 1e660000.ethernet eth0: [ISR] = 0xb0070040: RX_ERR > [ 36.593688] ftgmac100_hard_start_xmit TXDESO=b000003c > [ 36.602937] ftgmac100 1e660000.ethernet eth0: tx_complete_packet 59 > [ 36.609244] ftgmac100 1e660000.ethernet eth0: rx_packet_error RXDES0=0xb0070040 > [ 36.616558] ftgmac100_rx_packet RXDES0=b0070040 RXDES1=f0800000 RXDES2=88f8 > [ 36.623608] ftgmac100 1e660000.ethernet eth0: rx_packet_error 0xb0070040 > [ 36.630315] ftgmac100 1e660000.ethernet eth0: [ISR] = 0xb0070040: RX_ERR > [ 37.031524] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready > [ 37.067831] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready > ............ > > This patch add a configurable flag, FTGMAC100_RXDES0_RX_ERR_CHK, in FTGMAC100 > driver, it is YES by default, so keep the orignal define of > RXDES0_ANY_ERROR. If it is needed, user can set the flag to NO to remove > the RXDES0_RX_ERR bit, to fix the issue. > > Hongwei Zhang (1): > net: ftgmac100: Fix AST2600 EVB NCSI RX issue > > drivers/net/ethernet/faraday/Kconfig | 9 +++++++++ > drivers/net/ethernet/faraday/ftgmac100.h | 8 ++++++++ > 2 files changed, 17 insertions(+) > > -- > 2.17.1 >