Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp444036rdh; Wed, 14 Feb 2024 01:17:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVogMmt9ZDbuNp0lg6tPMqk6VdsG8Yj+oWkMrx7Bdd0b2AABNbaRVK3uozPWinoOrSQFAlmJVYB09sfwRnENxT15kH5lIyzksCrmuCBXA== X-Google-Smtp-Source: AGHT+IHq2kidaPOayL69DMOC1Cgf8Is/+n445fHZDFLdGBKBnv7n7E7biaQAqYSq6pW6QSAAF334 X-Received: by 2002:a05:620a:47a1:b0:786:9b71:e502 with SMTP id dt33-20020a05620a47a100b007869b71e502mr2339822qkb.13.1707902262732; Wed, 14 Feb 2024 01:17:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707902262; cv=pass; d=google.com; s=arc-20160816; b=dBiSX2r5wJnZCyPQIwi58VGNgjzmrfMhDN8641gpXrta3f8o2tL9r7hFp8Sp0oZtlM rdGMF2V1+Tf/1kZLV2PuT7yOXNsjwnbbzshBaE7eRwq/h/Snn1ZnU/byBHgV8T7hsUqo yLJHwlkvio60RH1eV18NJ5Vc8jy5aqwgs+fFR4UOm0DyqLZiYb9FXWsGMLnDhaX6XMOE cCcxtS9jho68M/ZLQq6uMDdFqwFor6EEDRFOVwsEpJACt4Yc9+gnz0LtNbmFl60TTlxk czzpa1iew7mvJGyzmTJODuIAfGunCqvlUzcj+Ghg3SsOnR7gPMKtf7RrLVNp7m1Gst/S Leog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:message-id; bh=KYIa3jQn747VNsNFBnXHBwZMQ9bEEf54xF7Sh6VLCqA=; fh=Us713XT1454mu5KsiZIclA63rD5al/Ehvwk3wxdm0bU=; b=roxnmO/k5rS7tEnjbrvnAYAd8JTQC/GpfLdQ2mNnDyJwIVIr1S5o7FXedD0F17TpEO fL8A+YlgDnurI4/p630ByAoCTI4SJ30E97PmaEt6cXL2ntWb78PU6YwqUeO+uiB1BIBL dnzQsmDqTVEnp2Xy3j6a9jdRwEwPH6Z49AjNcWq/jwsBKczhIoF/3KH3zNbbPEDWU3bY GCUw6UY7YiXpWP6HELzxzbk1u7oUy/5RWDtwXlrGbXvWacOnemy3WHTvGFaxOoWylKeb 3nBPTct35TgKfgZzx9g1DRDwGsoMWJAPMKzNBwiEIYGK1cliqWH3jdlg3TUmgvw/CUz0 /P0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-64936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com X-Forwarded-Encrypted: i=2; AJvYcCWjuqead/f2M92ZpkJxYwL+zpgR4nPrZwmx3LyDidQ1BvKo9MDhdnMzmygYy3i3eWKriDsciffl15qwJ9zUFWkC30NcmezA75I7A28G5Q== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wg6-20020a05620a568600b00787166020afsi4516178qkn.328.2024.02.14.01.17.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 01:17:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=bp.renesas.com dmarc=pass fromdomain=bp.renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-64936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DDE91C217C1 for ; Wed, 14 Feb 2024 09:17:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CC22125BD; Wed, 14 Feb 2024 09:17:30 +0000 (UTC) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71C5A12B66; Wed, 14 Feb 2024 09:17:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902249; cv=none; b=iprdf0dz2a+OzvWoRiTyjpi8FoifFTZkGvpHADtwZCss/FM20Ax8TWEoH9Tr3b1P463l3ALHLbjF7kEURn9lJWhqzsqHQWwugShPOMxvkQLBMqx46USR1cMbRGlv31aJh28vx38BizgZ88jrsmPG8zbkr8vldI0lB7VeL8sA3mY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707902249; c=relaxed/simple; bh=h5MT1T78Otnx2JnlA80Aj9JTvc6oirJwHBV1yEoNJ/Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o5d4Hx4snfYzgnU1NVgkbm6eAa4CuaBbNzS5H5vrkxlNSVF2FVWg4JpI5bA0a4lQPJ6mRI/8qgIq7axAD7VAgvkZkaV62dKV4dBJqX/ifjXmmQDLeeZCXzOSn45CzYKc6aWnDBF22CJcIEnnQCfg5q3NI7ivwomthltlOpFwIko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-IronPort-AV: E=Sophos;i="6.06,159,1705330800"; d="asc'?scan'208";a="193904112" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 14 Feb 2024 18:17:24 +0900 Received: from [10.226.93.95] (unknown [10.226.93.95]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id D02E54004186; Wed, 14 Feb 2024 18:17:20 +0900 (JST) Message-ID: <07f5d7e7-ca09-4779-836d-c6d1146ea5b8@bp.renesas.com> Date: Wed, 14 Feb 2024 09:17:15 +0000 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: [RFC PATCH net-next v2 0/7] Improve GbEth performance on Renesas RZ/G2L and related SoCs Content-Language: en-GB To: Sergey Shtylyov , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Yoshihiro Shimoda , Wolfram Sang , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240206091909.3191-1-paul.barker.ct@bp.renesas.com> <29d9d3cb-4ac2-32e2-51b8-475d34216b07@omp.ru> <99a883c8-ccf2-4e52-9c34-ead59cd84117@bp.renesas.com> <4bf96e67-d35b-813c-ac9b-f2094903ac55@omp.ru> From: Paul Barker Organization: Renesas Electronics Corporation In-Reply-To: <4bf96e67-d35b-813c-ac9b-f2094903ac55@omp.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------n3L43mLyNqMndilp0MDSgaYI" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------n3L43mLyNqMndilp0MDSgaYI Content-Type: multipart/mixed; boundary="------------Zyhfm3p7uJssOfP2CQb7Vvxi"; protected-headers="v1" From: Paul Barker To: Sergey Shtylyov , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Yoshihiro Shimoda , Wolfram Sang , netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <07f5d7e7-ca09-4779-836d-c6d1146ea5b8@bp.renesas.com> Subject: Re: [RFC PATCH net-next v2 0/7] Improve GbEth performance on Renesas RZ/G2L and related SoCs References: <20240206091909.3191-1-paul.barker.ct@bp.renesas.com> <29d9d3cb-4ac2-32e2-51b8-475d34216b07@omp.ru> <99a883c8-ccf2-4e52-9c34-ead59cd84117@bp.renesas.com> <4bf96e67-d35b-813c-ac9b-f2094903ac55@omp.ru> In-Reply-To: <4bf96e67-d35b-813c-ac9b-f2094903ac55@omp.ru> --------------Zyhfm3p7uJssOfP2CQb7Vvxi Content-Type: multipart/mixed; boundary="------------f6SjzoA1tBP0Vu0wdlu1Se4P" --------------f6SjzoA1tBP0Vu0wdlu1Se4P Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/02/2024 20:53, Sergey Shtylyov wrote: > On 2/12/24 2:52 PM, Paul Barker wrote: > [...] >=20 >>>> This series aims to improve peformance of the GbEth IP in the Renesa= s >>> >>> You didn't fix the typo in "peformance"... :-/ >>> >>>> RZ/G2L SoC family and the RZ/G3S SoC, which use the ravb driver. Alo= ng >>>> the way, we do some refactoring and ensure that napi_complete_done()= is >>>> used in accordance with the NAPI documentation for both GbEth and R-= Car >>>> code paths. >>>> >>>> Performance improvment mainly comes from enabling SW IRQ Coalescing = for >>> >>> And in "improvment" too... :-/ >> >> I'll fix this and the above type in v3. >=20 > TIA! Chances are this will end up in the merge commit... >=20 >>>> all SoCs using the GbEth IP, and NAPI Threaded mode for single core = SoCs >>>> using the GbEth IP. These can be enabled/disabled at runtime via sys= fs, >>>> but our goal is to set sensible defaults which get good performance = on >>>> the affected SoCs. >>>> >>>> The performance impact of this series on iperf3 testing is as follow= s: >>>> * RZ/G2L Ethernet throughput is unchanged, but CPU usage drops: >>>> * Bidirectional and TCP RX: 6.5% less CPU usage >>>> * UDP RX: 10% less CPU usage >>>> >>>> * RZ/G2UL and RZ/G3S Ethernet throughput is increased for all test= >>>> cases except UDP TX, which suffers a slight loss: >>>> * TCP TX: 32% more throughput >>>> * TCP RX: 11% more throughput >>>> * UDP TX: 10% less throughput >>>> * UDP RX: 10183% more throughput - the previous throughput of >>> >>> So this is a real figure? I thought you forgot to erase 10... :-) >> >> Yes, throughput went from 1.06Mbps to 109Mbps for the RZ/G2UL with the= se >> changes. >=20 > Hm, that gives me even 10283%! :-) >=20 >> Initial testing shows that goes up again to 485Mbps with the next patc= h >> series I'm working on to reduce RX buffer sizes. >=20 > Oh, wow! :-) >=20 >> Biju's work on checksum offload also helps a lot with these numbers, I= >> can't take all the credit. >=20 > Took 5 versions to merge, unfortunately... :-/ >=20 > [...] >=20 >>>> Work in this area will continue, in particular we expect to improve >>>> TCP/UDP RX performance further with future changes to RX buffer >>>> handling. >>>> >>>> Changes v1->v2: >>>> * Marked as RFC as the series depends on unmerged patches. >>>> * Refactored R-Car code paths as well as GbEth code paths. >>>> * Updated references to the patches this series depends on. >>>> >>>> Paul Barker (7): >>>> net: ravb: Simplify poll & receive functions >>> >>> The below 3 commits fix issues in the GbEth code, so should >>> be redone against net.git and posted separately from this series... >>> >>>> net: ravb: Count packets instead of descriptors in RX path >>>> net: ravb: Always process TX descriptor ring >>>> net: ravb: Always update error counters >> >> I'll split out and re-submit these as bug fixes. "net: ravb: Count >> packets instead of descriptors in RX path" will require a bit of rewor= k >> so it doesn't depend on the first patch of the series ("net: ravb: >> Simplify poll & receive functions") so you'll probably want to re-revi= ew >> when I send it. >=20 > Yes, I figured that at least the 1st patch would need to be reworked= =2E.. >=20 >> Then I'll re-send the rest as a non-RFC series. >=20 > Won't they need to be rebased against 3 fixes? Yes, the rest will need rebasing. We need to test gPTP on an RZ/G2N board with these changes first. We're working on it and I'll let you know the status soon. I should be able to send at least one bugfix in a way that doesn't affect RZ/G2N & R-Car boards though... Thanks, --=20 Paul Barker --------------f6SjzoA1tBP0Vu0wdlu1Se4P Content-Type: application/pgp-keys; name="OpenPGP_0x27F4B3459F002257.asc" Content-Disposition: attachment; filename="OpenPGP_0x27F4B3459F002257.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xsFNBGS4BNsBEADEc28TO+aryCgRIuhxWAviuJl+f2TcZ1JeeaMzRLgSXKuXzkiI g6JIVfNvThjwJaBmb7+/5+D7kDLJuutu9MFfOzTS0QOQWppwIPgbfktvMvwwsq3m 7e9Qb+S1LVeV0/ldZfuzgzAzHFDwmzryfIyt2JEbsBsGTq/QE+7hvLAe8R9xofIn z6/IndiiTYhNCNf06nFPR4Y5ZDZPGb9aw5Jisqh+OSxtc0BFHDSV8/35yWM/JLQ1 Ja8AOHw1kP9KO+iE9rHMt0+7lH3mN1GBabxH26EdgFfPShsi14qmziLOuUlGLuwO ApIYqvdtCs+zlMA8PsiJIMuxizZ6qCLur3r2b+/YXoJjuFDcax9M+Pr0D7rZX0Hk 6PW3dtvDQHfspwLY0FIlXbbtCfCqGLe47VaS7lvG0XeMlo3dUEsf707Q2h0+G1tm wyeuWSPEzZQq/KI7JIFlxr3N/3VCdGa9qVf/40QF0BXPfJdcwTEzmPlYetRgA11W bglw8DxWBv24a2gWeUkwBWFScR3QV4FAwVjmlCqrkw9dy/JtrFf4pwDoqSFUcofB 95u6qlz/PC+ho9uvUo5uIwJyz3J5BIgfkMAPYcHNZZ5QrpI3mdwf66im1TOKKTuf 3Sz/GKc14qAIQhxuUWrg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2tiPd558lPerFd/KpbCIp8N kYaLlHWIDiN2AE3c6sfCiCPMtXOR7HCeQapGQBS/IMh1qYHffuzuEy7tbrMvjdra VN9Rqtp7PSuRTbO3jAhm0Oe4lDCAK4zyZfjwiZGxnj9s1dyEbxYB2GhTOgkiX/96 Nw+m/ShaKqTM7o3pNUEs9J3oHeGZFCCaZBv97ctqrYhnNB4kzCxAaZ6K9HAAmcKe WT2q4JdYzwB6vEeHnvxl7M0Dj9pUTMujW77Qh5IkUQLYZ2XQYnKAV2WI90B0R1p9 bXP+jqqkaNCrxKHV1tYOB6037CziGcZmiDneiTlM765MTLJLlHNqlXxDCzRwEazU y9dNzITjVT0qhc6th8/vqN9dqvQaAGa13u86Gbv4XPYdE+5MXPM/fTgkKaPBYcIV QMvLfoZxyaTk4nzNbBxwwEEHrvTcWDdWxGNtkWRZw0+U5JpXCOi9kBCtFrJ701UG UFs56zWndQUS/2xDyGk8GObGBSRLCwsXsKsF6hSX5aKXHyrAAxEUEscRaAmzd6O3 ZyZGVsEsOuGCLkekUMF/5dwOhEDXrY42VR/ZxdDTY99dznQkwTt4o7FOmkY=3D =3DsIIN -----END PGP PUBLIC KEY BLOCK----- --------------f6SjzoA1tBP0Vu0wdlu1Se4P-- --------------Zyhfm3p7uJssOfP2CQb7Vvxi-- --------------n3L43mLyNqMndilp0MDSgaYI Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQSiu8gv1Xr0fIw/aoLbaV4Vf/JGvQUCZcyFGwUDAAAAAAAKCRDbaV4Vf/JGvdFt AQCbE8pRdIeSIXsrWN94oVKFQMnCY+sH9l2fuQD6zVGKdgD+NfYB1PtVCdjcR3Z4DR4QkHaZbTfb E8pTJ465/QCQ3ws= =jbyW -----END PGP SIGNATURE----- --------------n3L43mLyNqMndilp0MDSgaYI--