Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2989900rdb; Tue, 13 Feb 2024 03:45:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEnMXmmYH5ORgL3ptUoIKY/D3Mzk+btqUdiA21gMcI5HaHrKIFVdgQDSu7jbu/RT1+YgSg/ X-Received: by 2002:a17:906:a292:b0:a3c:d965:f378 with SMTP id i18-20020a170906a29200b00a3cd965f378mr2535944ejz.75.1707824731285; Tue, 13 Feb 2024 03:45:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707824731; cv=pass; d=google.com; s=arc-20160816; b=n0rQRdNEMCHfrucavQPl5ZJgsM46KOkPq0V8SY8jS3d/Y7kNnfDbGrN+/xl/KNrQCK BL2nBjHGA3YibxFiTUhFMsq/Ln9Baa+8DyVXdsQdRcQvKsAyfDbIBPMSPzCn+u86Pz3V 3cOQLGHtehhkVyLLHZvtnn56P0LX0OwKn8VM5/HhIJ3KCW7ufLKGqIpgPl10mjyIVK3c htkOOXJ0m+72mOmxZ3MKMVAZW6zeqNI+bygz6PMT6xe9O6R5rSFRs5cdFWkshcBMbq7K cVkj4IzzUPTqipg023SnmDAvj18DtiYb9KxlR3SzZm48FKQW6DfDx1GULANfzU6MEdNw 9V/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DsP0FIaZINwuiow4sSUeCu0syEqGyAYPEmfVCNP0CBk=; fh=dyWo+dOVxRVFG2yodW7Vs/TAXsRh0oGbzc6iBRVG8HI=; b=IDh9U1iDwbZMFQRe8mFTAg4Htil3JxLKrhiYiWZwrR+CwPfBTQKIYQ/fh03aPvvvz2 yBAu3iIr0rrEjNmndyGZUETiqbf6OOpZCOct8F29etqhRguKOfQVDU0IWhXRzh4D+TUQ UCAwCm1LnmHHWgKwh8V1Td/QMSVc2UVfHbt/28MwPtr3XtoWwHptB2Kapk1FqOMWZWIm lntEknbLh/GnVpK0jTpaJ30QnVKWdQaIY2wrRuHqD+dv82vihpVX5V8ooIQ7M8Lx00Bw zFGU5TEZAMxX+lf9efhsnp/EWfAqp3vjStTq2zfptW1QEwoFz+Z6zBlYWWui1aU1n+lp uJPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QLKDQ3Z+; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCW8Vgv2mlTRqcTzaLPwTf2Q/HLIvt6GM8sbvwJBA0zJO6G/LPO7ZjjTLfFCO/NAXyLltp1+Rz5X0DQb6MzH96P/LHOl4vzXEEcdOKzxLg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x9-20020a170906710900b00a3ccdab4d89si1154200ejj.427.2024.02.13.03.45.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 03:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QLKDQ3Z+; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63457-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63457-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0DD041F2528C for ; Tue, 13 Feb 2024 11:45:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC650381A0; Tue, 13 Feb 2024 11:45:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QLKDQ3Z+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E589B376F7 for ; Tue, 13 Feb 2024 11:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707824723; cv=none; b=IhwvWKBiYSR75W0jTaXzcJYVCZtO9IbzN0f4SNsMnPklznn1NI4E75+x3YUZAbHJhJPmFsuZ2z0ePDWgOUZmDx6N6L6VyAEYzur4TxqTQtLruFDwZ8lx7doiQSJjx3PeHIh5E+SHnMiaRViNHiIDH/6IFcR8bmoWMDasawhSlA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707824723; c=relaxed/simple; bh=Iro2uYYnfnYe+OWzj+GsG7aHp915R3LpIFlDLSEohDY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C2PaX1OnHwrctNPV5bnJ5UZoxS+SP6uHg75ZxF0cWd8SY47JJItm65YWFRHei9BWN33mZGTirqehc4oQDJtiY+i/PctmWX8CtKuAkRzsFsiqvQvl7zeZN5w7MRWn+5CbW92oHTG1LBEKzShKpRXDzJDhzX/A1+SdsZ5UA3KHRwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QLKDQ3Z+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9DBEC433F1; Tue, 13 Feb 2024 11:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707824722; bh=Iro2uYYnfnYe+OWzj+GsG7aHp915R3LpIFlDLSEohDY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QLKDQ3Z+dxTk3P+E2A70GmxAn6yxMYtA0scHWyLcCyNZc+7LwV/R401QyDDzCoWMl B+YR/qyWbp8zHUrtOo/eMHz9GYROsjVBq4ZYYaWectCht8mdyJMZQPNNzFiPx4l0ia PAon9ys47LQuiIj/gmBM03m59Ecy9wf3O6EDYecM= Date: Tue, 13 Feb 2024 12:45:18 +0100 From: Greg KH To: Paul Barker 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 Subject: Re: [Resend PATCH] topology: Set capacity_freq_ref in all cases Message-ID: <2024021357-stranger-supremacy-a985@gregkh> References: <20240117190545.596057-1-vincent.guittot@linaro.org> <75f0bfc7-fb95-409a-a5d9-b00732e892f0@bp.renesas.com> <8108129e-d7b8-4540-bf53-ed29cd4bbff9@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8108129e-d7b8-4540-bf53-ed29cd4bbff9@bp.renesas.com> On Tue, Feb 13, 2024 at 11:06:48AM +0000, Paul Barker wrote: > 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 the > >> 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 > > > > 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. > > > > 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 > > > > (*) 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. > > > > Results with v6.8-rc1 + this patch are in line with what we see in v6.7. > > > > 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? It will get there, sorry, been traveling for weeks and will catch up and send my trees to Linus later this week. greg k-h