Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp640632rdh; Wed, 7 Feb 2024 15:55:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWt8gm6UeSrIOLDmYcSAkwlqwl7B+R8vtU9LA2WlMad9UtWxLDuzdFGszghnKGy+Ohaq9k61TmlciDp4X3C+ThedEqAoKS2mnDSWR25DA== X-Google-Smtp-Source: AGHT+IFjAYFUAKPHbYFqx5ehmXXhYOZAoDf89d7wc9NyLrDBPUFnPheu51gjnLrMAnTPF8bFXd63 X-Received: by 2002:a17:903:4286:b0:1d4:e04b:3eea with SMTP id ju6-20020a170903428600b001d4e04b3eeamr6222140plb.31.1707350127097; Wed, 07 Feb 2024 15:55:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707350127; cv=pass; d=google.com; s=arc-20160816; b=KoBSJMoNDZ+3dxJHhdxq+TAtNGF0iBbc9i1MJ+XQ68hbciu9ZbZAjPYZhEOfOeKkD4 bWW2UTg+JAubimU99//Cp2aZhLw51ByCA/09Bi6t8dl9PizG/lsl82xBwTffxCJqmx3Q /Ap3Zh+YwxIwS8A1FwZ88Hb74mHIUKLz6mNDJAgJPKB0KKnp6lzTUlPNQnxEHkzIKiEi lUcuQM1bNH3PaCBTU6GW5htLPg2I23jComQaVezsIVZNXRU0CFq3LAmhS/JQN3IANQ0o d2NHrxBWEde7r4m+pKPLV1tJAXEXHrqqwXcEQHdtWzDu9LRcS3ifiWV97JprBx0LPl06 I6XQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jASkXHgSccq7FXFfSwb1V8nIGVqTlFnM5UN8uHvrymw=; fh=Bo0cCArFQ3wmOnkgGVoiiqzqHLVc8NmQhZ4FVtJjIZA=; b=VGf7T5ip+nJ89lUJxaJ3fekar0xseKEYl8/8/MvcdVFrN4+3vADwgdOuR2kdlAm78m o0SNuBpJlHMN6kFKBGDrSOaF/HmMf99MSj/ATxkxypolknsXHwBoIY35BS0OZDNRjrBT E9452jLcYVk6EBWunuA/ucQRcMQNqEVFiV/jU5tMi5C+cPDNk7Y8/U8cf9nfFKIRqRpm 0FmBxkyaE+plTy1kZ/bMe49eDNKyDgP4ac9nXG/8ftAUGvVaw3ZEOyyegUElxbGbZo3A Qwrv6+GQSQdxV/VEsbjEgd2ICjIwRq4FvGuP220kmri9DaILrDVa81p8Nl4BA31xtGaT 9/wA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YOWaCVfl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-57305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCV8Lu35V2/yjPhNEKAmveWsx5Hd/fcC1QyzcPPXtImLI6RMrd1D8BhgaoRJPwYRSdOcFb0Rwjtp0zgQMkWridv2d8KWD8p2MUwNwbCcrw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y14-20020a17090322ce00b001d94e3bdb0esi1087475plg.278.2024.02.07.15.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 15:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YOWaCVfl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-57305-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57305-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8AF992842F1 for ; Wed, 7 Feb 2024 23:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31E73535D1; Wed, 7 Feb 2024 23:55:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YOWaCVfl" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD36220335; Wed, 7 Feb 2024 23:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707350116; cv=none; b=BfJB3Y9zajfFMcv43tdiSq1bm2MtcZ9andgB+hjd2q450pQBBcl4xRqSyayoKF8UaA4xxWMvMVDTS3LnZu7uo1n0og2V1DrHG4zKOw1vJui27yeBi9HHvWLHxZPsk5nWirgRAxhLGWgv1DgMl5FXQBAyCDTAZzpj4FRE4gvxdOg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707350116; c=relaxed/simple; bh=VDfAjHW8McZv39SIa3owamfR7WXBRmrXLZFuoUTHIio=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=iwtR1SIg4dAPFufPwPaBK/XdSrbk+cLIuzUbpMMH4RE/iDaSO8uAKkvUBAvKNqXO+EkJHMu2zzyOKtU8btripm/+reQFK2hqhdK/VzbUHIljNLa8nR9hgrvPNQvTLCHrtUSlfcgJ2Ea4F2QUkY2qFjBtOFzB5jiJXpnnr2zKzDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=YOWaCVfl; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 417Ms4e4021166; Wed, 7 Feb 2024 23:54:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=jASkXHgSccq7FXFfSwb1V8nIGVqTlFnM5UN8uHvrymw=; b=YO WaCVflOxTvqjvWq14NV9UNrgD4PBnIlZyc6fmsYMHDVS/U6ILkMefRgcRoCvfRIB u7v6+uUk18xgm5saMtotBIxzD6OpHkfDPzbALzQqSyKcxibYCxl0AoTh5dkn+shO eXgKFYS/FSpFl7K8fcLcpsSdCFXyqAUndCJhcH5SOu0BM/KKQ0HqwQQG+2qvNLJU 9mrrwAK48MWUJBlDqg2DKY5rANFv7ZOdH9dG/3dVOUzwuuB7Xb7SvWdNqz3fz91h xCbTc8AsiEEfeEDFLIZNP8vZQUXOdmnzZYoU/SYS7u3XUqx8bQkm0R45UmBxd9Ci 1R9mWbAtjmkktggju4dg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w3x41tru5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Feb 2024 23:54:57 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 417NsuJJ007717 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Feb 2024 23:54:56 GMT Received: from [10.110.62.200] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 7 Feb 2024 15:54:52 -0800 Message-ID: <182afe94-e6db-4329-8653-93f6315dea54@quicinc.com> Date: Wed, 7 Feb 2024 15:54:52 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v3] net: stmmac: dwmac-qcom-ethqos: Enable TBS on all queues but 0 Content-Language: en-US To: Abhishek Chauhan , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni , Maxime Coquelin , , , , , Andrew Halaney CC: References: <20240207224001.2109224-1-quic_abchauha@quicinc.com> From: Jeff Johnson In-Reply-To: <20240207224001.2109224-1-quic_abchauha@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ygOZdbS30vKfvIBTNfdCtE1xVWs4KkyC X-Proofpoint-GUID: ygOZdbS30vKfvIBTNfdCtE1xVWs4KkyC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-07_09,2024-02-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 mlxlogscore=976 clxscore=1015 spamscore=0 priorityscore=1501 suspectscore=0 adultscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402070174 On 2/7/2024 2:40 PM, Abhishek Chauhan wrote: > TSO and TBS cannot co-exist. TBS requires special descriptor to be > allocated at bootup. Initialising Tx queues at probe to support > TSO and TBS can help in allocating those resources at bootup. > > TX queues with TBS can support etf qdisc hw offload. > > This is similar to the patch raised by NXP > commit 3b12ec8f618e ("net: stmmac: dwmac-imx: set TSO/TBS TX queues default > settings") > > Changes since v2: > - Fixed the styling of comment in the dwmac-qcom-ethqos.c > - Followed the upstream format to give other glue > driver references to solve the same problem > - Appended the subject with net-next > - Discussion of why this patch is required is discussed in > https://lore.kernel.org/netdev/c2497eef-1041-4cd0-8220-42622c8902f4@quicinc.com/ > > Changes since v1: > - Subject is changed as per upstream guidelines > - Added a reference of a similar change done by NXP in > body of the commit message Note that your patch change history should not be part of your commit text, but instead should be below the "---" line. > > Signed-off-by: Abhishek Chauhan > --- in other words put it here. the change history will not be part of the git history I strongly suggest looking at b4 since it will manage your patch history: https://b4.docs.kernel.org/en/latest/index.html#for-developers > drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index 31631e3f89d0..2691a250a5a7 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -728,7 +728,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > struct stmmac_resources stmmac_res; > struct device *dev = &pdev->dev; > struct qcom_ethqos *ethqos; > - int ret; > + int ret, i; > > ret = stmmac_get_platform_resources(pdev, &stmmac_res); > if (ret) > @@ -822,6 +822,10 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > plat_dat->serdes_powerdown = qcom_ethqos_serdes_powerdown; > } > > + /* Enable TSO on queue0 and enable TBS on rest of the queues */ > + for (i = 1; i < plat_dat->tx_queues_to_use; i++) > + plat_dat->tx_queues_cfg[i].tbs_en = 1; > + > return devm_stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res); > } >