Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp614413qtq; Thu, 10 Aug 2023 10:33:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6xzXfKcP3vvTG1aOp9shgCpRtof3NSuXsI0ZUShqvOmAaufm8giPYLuFSp2Vx5Ln4w5VJ X-Received: by 2002:a05:651c:1022:b0:2b9:f0b4:eaa1 with SMTP id w2-20020a05651c102200b002b9f0b4eaa1mr2287606ljm.16.1691688795408; Thu, 10 Aug 2023 10:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691688795; cv=none; d=google.com; s=arc-20160816; b=UMMlI3eJQ5fb60QKdZ3mO8A0eGjjVoKoytjh03pgDrboQn06dpdmK3YkqxiXlvOJv9 WVj3n5I7bk6HePMsjfk+9viW78tQFhze+iOYFQ8o/YkmHu6Wyk8wAehpnztW8gxL6YMS VEmJlWQqghQQJFU+dtL/eQvRxIT512kPGGmjQCdNzi5X4+3hgF4C5gT4X6yC1cph/5ZF gWfwyFHqEtCWlLXVYs1wfcdVupIMUo1+g7ebOlb5hQvQEd3Iys6+AODlpJCKj6T6hqvy 5o3jwZyXEiIpq22wUf7wallyKSHOI9hxRva2yGwYSv/L/GoYm4hGH1zvRy6HP8JcSP7l rttQ== 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=lr83yk56r2f+wy5jyGAofD+fwP+vkuyJt43Zjpa5KV4=; fh=uY1T7aoRwrgzhKLMykgttq5s/p+N87zA2GATJX0cskU=; b=hb8BBXxWrFRGw49bR8P4s7YwvOPKQWo7nvtBCwT2cVKtBtJdDVQLpVg/vn9CIHZmPA VkT0e0y09UY8wmJiEZGW7VhWuP8p26EnDGyRx2GsR0lNgZJJNBun7c2i9VwAbojr4F/7 T9dMbedqTR1RHsCDzE83jRr5xsLsUG5RvhJHYengHA1ZzUEFMUxq0LEk+ClBhvnGz/X+ eWQvqahswZvJPS8CvrauvNyWV1CtLOwcZaSzWKBFMznYGh5cv4XOPzHKYQ2C362xlJxs gDJmmHE/7E1UOm/YmJWkbKLkqkuX7AM87YpNvYk33GQ55QDTLurnIJhuyGmGIOtEBTDG m6Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zlnUVYSE; 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 l23-20020a170906415700b00992ee70a0afsi1919752ejk.12.2023.08.10.10.32.50; Thu, 10 Aug 2023 10:33:15 -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=zlnUVYSE; 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 S235905AbjHJOoE (ORCPT + 99 others); Thu, 10 Aug 2023 10:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235890AbjHJOoD (ORCPT ); Thu, 10 Aug 2023 10:44:03 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0BB826B7; Thu, 10 Aug 2023 07:44:01 -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 37AClMFF009213; Thu, 10 Aug 2023 16:43:41 +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=lr83yk56r2f+wy5jyGAofD+fwP+vkuyJt43Zjpa5KV4=; b=zl nUVYSEF+5ckaVlq8pYuPA6QMSL2WVai4btRmRySGRPr2T6TDJUN23xPkHRXcOTS4 o6zKKACkEAzSCRw6P7tV5PZDqYqDfMItXWOETWJbFijqfehxJhEA0FdU5/xW6wVo aahopf/52rab1U1eZM26eyy1WWTNyU6Kswl+IWNLII8n7liueb/YzGlTYJjouwAv 4yUpqUolRcNqsWesICd6vkT5FD+/MMO/J2HfpObZ5ctKmKbrWW4RTYmj9rjpqwgT L/ox5bo47WeEa5ac7/05A6XNhmDAxo7/eEVEPGcXdrPy1EMSFlU8wmPUO6iAOef8 P2geTdp/33+fSc1u+0tQ== 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 3sd0730mgg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 16:43:41 +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 37C58100057; Thu, 10 Aug 2023 16:43:41 +0200 (CEST) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EEAD0222C88; Thu, 10 Aug 2023 16:43:40 +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 16:43:40 +0200 Message-ID: <1c327ece-ce22-1d82-92ef-9db281e93f92@foss.st.com> Date: Thu, 10 Aug 2023 16:43:39 +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 04/10] net: stmmac: enlarge max rx/tx queues and channels to 16 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-5-jszhang@kernel.org> From: Alexandre TORGUE In-Reply-To: <20230809165007.1439-5-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_11,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:50, Jisheng Zhang wrote: > xgmac supports up to 16 rx/tx queues and up to 16 channels. > > Signed-off-by: Jisheng Zhang > --- > drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 5 ++--- > include/linux/stmmac.h | 6 +++--- > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > index a0c2ef8bb0ac..aaae82d3d9dc 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c > @@ -202,9 +202,8 @@ static void dwxgmac2_map_mtl_to_dma(struct mac_device_info *hw, u32 queue, > void __iomem *ioaddr = hw->pcsr; > u32 value, reg; > > - reg = (queue < 4) ? XGMAC_MTL_RXQ_DMA_MAP0 : XGMAC_MTL_RXQ_DMA_MAP1; > - if (queue >= 4) > - queue -= 4; > + reg = XGMAC_MTL_RXQ_DMA_MAP0 + (queue & ~0x3); > + queue &= 0x3; > > value = readl(ioaddr + reg); > value &= ~XGMAC_QxMDMACH(queue); > diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h > index ef67dba775d0..11671fd6adee 100644 > --- a/include/linux/stmmac.h > +++ b/include/linux/stmmac.h > @@ -15,9 +15,9 @@ > #include > #include > > -#define MTL_MAX_RX_QUEUES 8 > -#define MTL_MAX_TX_QUEUES 8 > -#define STMMAC_CH_MAX 8 > +#define MTL_MAX_RX_QUEUES 16 > +#define MTL_MAX_TX_QUEUES 16 > +#define STMMAC_CH_MAX 16 > > #define STMMAC_RX_COE_NONE 0 > #define STMMAC_RX_COE_TYPE1 1 Acked-by: Alexandre TORGUE Regards Alex