Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1205920rwl; Thu, 10 Aug 2023 07:56:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbnepUHdCCW1Ns7tLjrtT4Vu/My31rrX32OXWd+BFkYUKmD3+3VOk1SUtNOwquRgZo2fHe X-Received: by 2002:a05:6808:10ca:b0:3a7:71fd:57cc with SMTP id s10-20020a05680810ca00b003a771fd57ccmr3953318ois.12.1691679398196; Thu, 10 Aug 2023 07:56:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691679398; cv=none; d=google.com; s=arc-20160816; b=zt0s0mpDuZpSmMVMoC+N/3k0dBE1pO1VsOvxUirPZ6g+B5VCr5NcCnDteIqKSKKTtb ETMDvlgSs+msbHoWDny4WXo6ZxUGUFnLvOq63h6pRc5rPUCZIM3L69l80TuX5pDyMzzM HuJFo2hWDqFPYvdqfUzy3UxOtA4qezqA1myYwWxqYAZXCCcSquxOtdtJx45EGHJv2FJz 1ePn1/ZDGH5tcbz0x4W4smu0Nh01XrStG1ASg46oPbmu4oonroL8SQnI7pusRXJ6V1cP OF4j/YnprU2HFpWSV2PdbP2qzdwggVLRm5ugolwLD4kw2vG3WiF19vG/bkC40patBfj1 7WCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qd8558qevje9CkFMuo6OGsMVLyIAZeqVXdpJae7LwQA=; fh=uY1T7aoRwrgzhKLMykgttq5s/p+N87zA2GATJX0cskU=; b=p0IsLdCpkEg1tvBz2wIaXS2/dj2EMpDg1pdpZVxG2mqHXvZQ1ISgRLS94tzevmYtPX B96EtnxlATOeJF9EmReMTTVaaTKNlQhBLvXQUpuNO//lP6r634EwVFAKKDjUqaj1K9xX 9Tcl+KUf/b03gHbUuR3Rep63u7vg8ziGnaa4x2nfUYYJGhWaWKHfHrLurqD6PgEjv8YZ ILJlC/K66gcjzhy71d1R1F9NdrjcY70FUyu1THXu2j+hHNqijXiTrzrWiN6kJGCaO/y0 5hTAQRlZOhXFw9V984fEUP+yPbb/Mmx6dzz2xB+Ijmb5Ol+wfBALYQkT+sdAd5eiQAgC zYRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Gu3DsyFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n128-20020a632786000000b0055c14b74a40si1785569pgn.229.2023.08.10.07.56.25; Thu, 10 Aug 2023 07:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Gu3DsyFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233897AbjHJNqA (ORCPT + 99 others); Thu, 10 Aug 2023 09:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbjHJNp6 (ORCPT ); Thu, 10 Aug 2023 09:45:58 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8604B2132; Thu, 10 Aug 2023 06:45:57 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37AClM6D009211; Thu, 10 Aug 2023 15:45:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=qd8558qevje9CkFMuo6OGsMVLyIAZeqVXdpJae7LwQA=; b=Gu 3DsyFZQM4ymh8/EvcOJDwKyajC82pfjwqSpEXAJKYZVsLYCTfravJgbpoo/yBnyT eyDEJ1WqdavyVJ89rBUHzeAxlOgEmlBmA/beSMclOPEmu7hTfmyFxTMjUKIN1FAX vBgF8v0MeyMgAPcQNos3ckvvNlIx1V91u0yNsSD8IjiVBvb/xqKcEAjF9/X94uuC BA76ExfKpsJXtdiBUb/3qfQYoud9jJ9pk71VTFAGOLZQVUlJ0d5429JwWmlPZ2E4 Sq9VGbkvCVuEqsr8zkXTvzSK4hUmscg7YZeFNne0GkFYLPdA5d2Ur9PaYzkyqdu7 Qu6Sq2NqX+2jjweK9bcg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3sd0730afe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 15:45:37 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A7CBA100053; Thu, 10 Aug 2023 15:45:36 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6E18321BF73; Thu, 10 Aug 2023 15:45:36 +0200 (CEST) Received: from [10.201.21.122] (10.201.21.122) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 10 Aug 2023 15:45:35 +0200 Message-ID: Date: Thu, 10 Aug 2023 15:45:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net-next v3 01/10] net: stmmac: correct RX COE parsing for xgmac Content-Language: en-US To: Jisheng Zhang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Giuseppe Cavallaro , Jose Abreu CC: , , , , References: <20230809165007.1439-1-jszhang@kernel.org> <20230809165007.1439-2-jszhang@kernel.org> From: Alexandre TORGUE In-Reply-To: <20230809165007.1439-2-jszhang@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.21.122] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To EQNDAG1NODE4.st.com (10.75.129.133) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-10_10,2023-08-10_01,2023-05-22_02 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/9/23 18:49, Jisheng Zhang wrote: > xgmac can support RX COE, but there's no two kinds of COE, I.E type 1 > and type 2 COE. > > Signed-off-by: Jisheng Zhang > --- > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > index e1f1c034d325..15ed3947361b 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > @@ -6271,7 +6271,7 @@ static int stmmac_dma_cap_show(struct seq_file *seq, void *v) > seq_printf(seq, "\tAV features: %s\n", (priv->dma_cap.av) ? "Y" : "N"); > seq_printf(seq, "\tChecksum Offload in TX: %s\n", > (priv->dma_cap.tx_coe) ? "Y" : "N"); > - if (priv->synopsys_id >= DWMAC_CORE_4_00) { > + if (priv->synopsys_id >= DWMAC_CORE_4_00 || priv->plat->has_xgmac) { > seq_printf(seq, "\tIP Checksum Offload in RX: %s\n", > (priv->dma_cap.rx_coe) ? "Y" : "N"); > } else { > @@ -7013,7 +7013,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv) > if (priv->plat->rx_coe) { > priv->hw->rx_csum = priv->plat->rx_coe; > dev_info(priv->device, "RX Checksum Offload Engine supported\n"); > - if (priv->synopsys_id < DWMAC_CORE_4_00) > + if (priv->synopsys_id < DWMAC_CORE_4_00 && !priv->plat->has_xgmac) > dev_info(priv->device, "COE Type %d\n", priv->hw->rx_csum); > } > if (priv->plat->tx_coe) Acked-by: Alexandre TORGUE Regards Alex