Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4409260pxu; Mon, 21 Dec 2020 11:42:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJJZtAADOhteslmgPhv10nxtJ4UizqCD+CnjX1AE/MMQNEdYAbUGX02i30JhCZEVviqzdN X-Received: by 2002:a17:906:4e52:: with SMTP id g18mr17272864ejw.385.1608579731236; Mon, 21 Dec 2020 11:42:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608579731; cv=none; d=google.com; s=arc-20160816; b=tg/1xvWJx1BIE5VUpXor6wIYlMD1OpAchUOO98YnY5iOtdVyvf2gmhNEMRZ3SHFH8H 2Q+zuehO+FvtssOPNKHbSktVrPFJd5K7LYdYwmrIVRODSLvRDBIrU3GOg8tmT0vB823g 44y2z1ZbA9sKBdQh9SjFAxIL9jkFrTAxvrnLHL6BOLGVlZkMeF6eay6oC0WLdCe4aZZS bhBnlLueTCdlERoiX4Zt7X1eM/oN88bcNj82hXPMH2uNIL6oI+5bkAY47KS9lUa9MSp3 BX50rNdoK6Pvu/2O9SyBss/3FywSzca/J1x7R9LwsiGIAys6n95u1yN1dcWCXp6/Vrc+ rlEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=flvWlFJMIKvZKTm4cvsa2w0SDHh2xR3maH9XLeP1b7U=; b=TSM3SPGN58y5+GiWzLSoibo4iKsnC/j+V8/TZleV2p/ecQpEZh9/ZuR9IU2mKkfwie kwqjNAQHJT4q5dO3OUIqUh7GHT/RswSyPEe6qHZpVXrKcZvD732pvlkg+HU0Z2w7YLWG Lm9BxdlA3mVEy2HrlmwoYKLlRTAfKRsIqtdsF5nSIf4KWCu9o8GrftYdGwvWDySOrgwD MzGcfPBR0D4/XLeJnFWcGOMhBi7F1Ub0ew68D8ImMsx9ozEuWrKewvmqpIHFT0leRYjP hT0BgkNXbg3WrhlbqwVCqUjWK0M1jsseJhReRK2n7i7AQeFgtj0uBOJAviY0pj7rmSNX cKpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 eb6si11168152edb.497.2020.12.21.11.41.48; Mon, 21 Dec 2020 11:42:11 -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; 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 S1726837AbgLUTlV (ORCPT + 99 others); Mon, 21 Dec 2020 14:41:21 -0500 Received: from atlmailgw1.ami.com ([63.147.10.40]:58593 "EHLO atlmailgw1.ami.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgLUTlV (ORCPT ); Mon, 21 Dec 2020 14:41:21 -0500 X-AuditID: ac1060b2-a93ff700000017ec-ee-5fe0fa37947c Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id 91.7D.06124.73AF0EF5; Mon, 21 Dec 2020 14:40:39 -0500 (EST) Received: from ami-us-wk.us.megatrends.com (172.16.98.207) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server (TLS) id 14.3.468.0; Mon, 21 Dec 2020 14:40:38 -0500 From: Hongwei Zhang To: , , , Jakub Kicinski , David S Miller CC: Hongwei Zhang , netdev , Joel Stanley , Andrew Jeffery Subject: [Aspeed,ncsi-rx, v2 0/1] net: ftgmac100: Fix AST2600EVB NCSI RX issue Date: Mon, 21 Dec 2020 14:40:25 -0500 Message-ID: <20201221194026.30715-1-hongweiz@ami.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215192323.24359-1-hongweiz@ami.com> References: <20201215192323.24359-1-hongweiz@ami.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.16.98.207] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrBLMWRmVeSWpSXmKPExsWyRiBhgq75rwfxBgsXq1vsusxhMed8C4vF 7/N/mS0ubOtjtWhefY7Z4vKuOWwWxxaIWZxqecHiwOFxtX0Xu8eWlTeZPC5+PMbssWlVJ5vH +RkLGT0+b5ILYIvisklJzcksSy3St0vgyjjzqJGxYI1UxeRzR5gaGHeLdTFyckgImEgcPrqV rYuRi0NIYBeTxIvLm9ihHEaJZ5+fsYJUsQmoSezdPIcJJCEisJpRomfDL0YQh1mgg1Fi6ouv 7CBVwgL+EvMOfQHrYBFQldjU+IUJxOYVMJU4cGENG8Q+eYnVGw4wdzFycHAKmEnsOSUHEhYC Kmnd9w6qXFDi5MwnLCA2s4CExMEXL5ghamQlbh16zAQxRlHiwa/vrBMYBWYhaZmFpGUBI9Mq RqHEkpzcxMyc9HJDvcTcTL3k/NxNjJDQ3rSDseWi+SFGJg7GQ4wSHMxKIrxmUvfjhXhTEiur Uovy44tKc1KLDzFKc7AoifOucj8aLySQnliSmp2aWpBaBJNl4uCUamAUMdNWXbqdt3l7Tb7i VuuD53/csbn87FRJjsKDigVu8kKLLBd4vYjN3rG344qRof1Se52fn/tsT5W4bCgSzvbKTtm1 4b98waHS5DO3vm9I9ypbJidyoG6Hx+GpGewFtut/rH/6d8oN14msnEWTvx0TSYzonNYYa8ip 4VrRueqF972XBuY/F/QqsRRnJBpqMRcVJwIA6loq6lsCAAA= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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