Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2973312rdb; Tue, 13 Feb 2024 03:07:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXT+TIMEJFjFNvxQJ9znXc+27KoLgS8ttswYfdaKY4fu9oBDG0q+qfaZEqDKPtnVVEsZOe2QzTt0yqLLfaPjzFcB11kjyxycJpAe1B9sg== X-Google-Smtp-Source: AGHT+IHBYu9TKiXT86SmubYMnqA9cCDIoHy+IJMKByJl+sekp5qXL/cNljUn7bKw9WN4TJrh9crh X-Received: by 2002:ad4:5ca3:0:b0:68c:930e:6f49 with SMTP id q3-20020ad45ca3000000b0068c930e6f49mr11916464qvh.36.1707822427406; Tue, 13 Feb 2024 03:07:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707822427; cv=pass; d=google.com; s=arc-20160816; b=1JHJzrS8ygftrS8gdmWEVsqeF66mWuFmXUrLeg+LUK2mrj0vWHXKwT89TIx1Oo4bI5 Hdf7Ba96Bh3MpViVbGyyLHW/ONfczIH/j4pdaQD0+VueNX8BrhzIRZnvXYtRWtnDYLQJ mtDG+7omgXxS6pOxVxv+8qu5FdxUoFiCdqP/EnVIzf26OCQ4+nmitBPB4N+CfJ/GT1YT pZ97Y4Ho3aWORxBfE/D/GhpIwK5X/QTH3ORxQUhkeujwAzSTFrzzoQHgSJiQKJZsxg9r 8Q5fo2I06xc9lN5rIxlwuifo7KgSD5ayAJ1UVtJm4kFy2oEoQn2Bjb3+ShN6tTI5G7Bh 8R3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=TtOc4M9yrrxwE+tR/t582JbaBCFjxIJX4rMpozInP0k=; fh=5mfWTE8PealdDks5OZ6bgIVyk8cV3KuE7v+WX+llxUc=; b=WwmkMBf52zAbh0zHn8zP/qyhGRdWnt5ntCO8jhu/RhqEd3DFhzckO3KSz45b1NQmjf 27HXF3cmaVepHbsoDBj56Ubo3063RNBqWhqU9BJfThxrGmAqhKa6tF0ivvgJRvpAN86H ekjlEcVC/rK4vxgfphxN25LHHOZKNhF0az46wFvMD7LgsmrgxUBa+PySjphMJOklmmo8 unhnEwSJBAAuKyvASA20fD3pFE+/3JxmshHJ1TAF7OaW3WAynwUuA4X8NV6NbatJynUm GiG1oUPhHOGDmp2HE/rWPXPMZV7c65a3e9zuS+fiuZORWKMZT4qTTu7aQS+1CGeCW5YV RBKw==; 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-63395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63395-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; AJvYcCX03RJSQkNbyRMhAPJ89MzgCurb/ktjC99sxcEZzYL6Nam1lQFf5mIReXNFg4nE0XOAl3xEb9lKcH2GjYpLWIu6aavOnOWIFSM4f9W/vw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f6-20020a0562141d2600b0068c9c955492si195183qvd.47.2024.02.13.03.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63395-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-63395-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63395-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 203831C21C8F for ; Tue, 13 Feb 2024 11:07:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DDA42BB11; Tue, 13 Feb 2024 11:07:00 +0000 (UTC) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D46152BD1F for ; Tue, 13 Feb 2024 11:06:56 +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=1707822419; cv=none; b=Qi+FOoKKrsbT4PKvJiIUfnD1+FuVLbc0XseY0akk1wfrkJJedHFgRMs/1rvoTXlDcZBr1ce8/rADT9UsSgSVIaMqNhqEywpx/7gC81JNMtSUtaNNdi7Opa4WEwQ9Yv1hs/iu2Mx5rC6Xc13znXY34CKMFx+EHoI/UyYzY2a1KUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707822419; c=relaxed/simple; bh=94XJeaWhB7dyyumP6r7MDS8ivTHh9bsXbNivbbvfixQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=DrqrzR0E/2ZYkV3voohlc7ozLC4fsLagXHAVni2J9JMgB5XNBLXQPdqelo6sHK/hIU+9wxQ4fcLIH96GMxYRTgVBw76t4e3F1HYBXjd0mpE78YzRV9GRllMunqwEw2TR2tqjPPcNmRVtIGqThkIwHAVtD+ZzVx6rXU5nJGUGfRA= 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,156,1705330800"; d="asc'?scan'208";a="193770203" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 13 Feb 2024 20:06:55 +0900 Received: from [10.226.92.192] (unknown [10.226.92.192]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7797F41D8794; Tue, 13 Feb 2024 20:06:50 +0900 (JST) Message-ID: <8108129e-d7b8-4540-bf53-ed29cd4bbff9@bp.renesas.com> Date: Tue, 13 Feb 2024 11:06:48 +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: [Resend PATCH] topology: Set capacity_freq_ref in all cases Content-Language: en-GB From: Paul Barker To: gregkh@linuxfoundation.org Cc: sudeep.holla@arm.com, rafael@kernel.org, vschneid@redhat.com, bristot@redhat.com, mgorman@suse.de, bsegall@google.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, juri.lelli@redhat.com, peterz@infradead.org, mingo@redhat.com, lukasz.luba@arm.com, ionela.voinescu@arm.com, linux-kernel@vger.kernel.org, Vincent Guittot References: <20240117190545.596057-1-vincent.guittot@linaro.org> <75f0bfc7-fb95-409a-a5d9-b00732e892f0@bp.renesas.com> In-Reply-To: <75f0bfc7-fb95-409a-a5d9-b00732e892f0@bp.renesas.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------3fXwI6RYO7tEfg0YYtoyZoG8" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------3fXwI6RYO7tEfg0YYtoyZoG8 Content-Type: multipart/mixed; boundary="------------E78KgTxAqW7Ub6NWqyYxV0xK"; protected-headers="v1" From: Paul Barker To: gregkh@linuxfoundation.org Cc: sudeep.holla@arm.com, rafael@kernel.org, vschneid@redhat.com, bristot@redhat.com, mgorman@suse.de, bsegall@google.com, rostedt@goodmis.org, dietmar.eggemann@arm.com, juri.lelli@redhat.com, peterz@infradead.org, mingo@redhat.com, lukasz.luba@arm.com, ionela.voinescu@arm.com, linux-kernel@vger.kernel.org, Vincent Guittot Message-ID: <8108129e-d7b8-4540-bf53-ed29cd4bbff9@bp.renesas.com> Subject: Re: [Resend PATCH] topology: Set capacity_freq_ref in all cases References: <20240117190545.596057-1-vincent.guittot@linaro.org> <75f0bfc7-fb95-409a-a5d9-b00732e892f0@bp.renesas.com> In-Reply-To: <75f0bfc7-fb95-409a-a5d9-b00732e892f0@bp.renesas.com> --------------E78KgTxAqW7Ub6NWqyYxV0xK Content-Type: multipart/mixed; boundary="------------F7EcPpQ0OPDvRhMV1b0TNxMs" --------------F7EcPpQ0OPDvRhMV1b0TNxMs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Greg, On 23/01/2024 16:23, Paul Barker wrote: > On 17/01/2024 19:05, Vincent Guittot wrote: >> If "capacity-dmips-mhz" is not set, raw_capacity is null and we skip t= he >> normalization step which includes setting per_cpu capacity_freq_ref. >> Always register the notifier but skip the capacity normalization if >> raw_capacity is null. >> >> Fixes: 9942cb22ea45 ("sched/topology: Add a new arch_scale_freq_ref() = method") >> Signed-off-by: Vincent Guittot >=20 > We've had some Ethernet performance issues with linux-next and v6.8-rc1= > on the Renesas RZ/G2L and RZ/G2UL arm64 SoCs. I've confirmed that the > CPU frequency is stuck at the minimum (150MHz) in v6.8-rc1, even when > running iperf3. Applying this patch allows the SoC to switch up the the= > maximum frequency (1200MHz) when needed and fixes our Ethernet > performance. >=20 > iperf3 results in Mbps for RZ/G2L SMARC evaluation board: > TCP TX TCP RX UDP TX UDP RX > v6.8-rc1 255 175 102 (*) > +this patch 874 650 802 948 >=20 > (*) Testing UDP RX in v6.8-rc1 with a server sending traffic at 1Gbps > locks up our NFS rootfs mount so we don't get any result at all. >=20 > Results with v6.8-rc1 + this patch are in line with what we see in v6.7= =2E >=20 > Tested-by: Paul Barker I see this patch landed in the 'driver-core-linus' branch of https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git on 2024-01-30 as commit 98323e9d7017, however it looks like that hasn't been merged to Linus' tree yet. In v6.8-rc4 I see the same issue on the RZ/G2L with the CPU frequency stuck at 150MHz. Is there anything I need to do to help get this patch merged before v6.8 is released? Thanks, Paul --------------F7EcPpQ0OPDvRhMV1b0TNxMs 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 6PW3dtvDQHfspwLY0FIlXbbtCfCqGLe47VaS7lvG0XeMlo3dUEs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aV4Vf/JGvQUCZLgIgAAKCRDbaV4Vf/JGvZP9AQCwV06n3DZvuce3 /BtzG5zqUuf6Kp2Esgr2FrD4fKVbogD/ZHpXfi9ELdH/JTSVyujaTqhuxQ5B7UzV CUIb1qbg1APIEA/+IaLJIBySehy8dHDZQXit/XQYeROQLTT9PvyM35rZVMGH6VG8 Zb23BPCJ3N0ISOtVdG402lSP0ilP/zSyQAbJN6F0o2tiPd558lPerFd/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----- --------------F7EcPpQ0OPDvRhMV1b0TNxMs-- --------------E78KgTxAqW7Ub6NWqyYxV0xK-- --------------3fXwI6RYO7tEfg0YYtoyZoG8 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/JGvQUCZctNSQUDAAAAAAAKCRDbaV4Vf/JGvXHp AP0Ye4vrWPwIYLjxvIRoB7y1ZK7Qrn/svVYbDQKHN4NRTQD9FvT4DPM2kfgcYhJFayun0MRkLgH/ Jq+jAlimfzAS4gg= =BUn4 -----END PGP SIGNATURE----- --------------3fXwI6RYO7tEfg0YYtoyZoG8--