From patchwork Wed Jul 22 09:37:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ionela Voinescu X-Patchwork-Id: 11677939 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 56853138A for ; Wed, 22 Jul 2020 09:39:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 294A22068F for ; Wed, 22 Jul 2020 09:39:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GgTGvqXL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 294A22068F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=YPSHRWMJcHsrns/9Nvi3MYGHz2bCqF6N+8Vqfd55MJg=; b=GgTGvqXLtsrFqSG7eYkxLgh1xF gjMf+gvf2nFsKJwZ6sSuFBKklgAsVrOTQ2sFGdce22z4A7mTGGHkR3eugXbWp+J9lYst716cI2sQC ecNEs1gAGbtTIcUankG8KLB8VWe0MgyshisJnWZ8CX9KyQCvmMiiX0e6Mn7u9gMts4DmgYmmiUFdO gUAO+CfOTvf9ob7Gm/Qs3zEPR0BiWdqrqhlw5OwAVxYOoC4M5t5h/83x9DGasaaJnnmfBFhY976s5 LQnVxkNz3OET8EATVlovbJqYn4mC75/AFnu2Hkguzn6LK32hdvWiXMb7NhsXO01BBTDER4PO8C6/o 8YxP/WWw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyBCb-0003m5-IQ; Wed, 22 Jul 2020 09:38:17 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyBCZ-0003lY-Cb for linux-arm-kernel@lists.infradead.org; Wed, 22 Jul 2020 09:38:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F932101E; Wed, 22 Jul 2020 02:38:08 -0700 (PDT) Received: from e108754-lin.cambridge.arm.com (unknown [10.1.198.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B09853F66F; Wed, 22 Jul 2020 02:38:06 -0700 (PDT) From: Ionela Voinescu To: rjw@rjwysocki.net, viresh.kumar@linaro.org, dietmar.eggemann@arm.com, catalin.marinas@arm.com, sudeep.holla@arm.com, will@kernel.org, linux@armlinux.org.uk Subject: [PATCH v2 0/7] cpufreq: improve frequency invariance support Date: Wed, 22 Jul 2020 10:37:25 +0100 Message-Id: <20200722093732.14297-1-ionela.voinescu@arm.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200722_053815_492754_57958435 X-CRM114-Status: GOOD ( 11.60 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pm@vger.kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@redhat.com, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi guys, Please find below the changes to this series: v1 -> v2: - v1 can be found at [1] - No cpufreq flags are introduced - Previous patches 2/8 and 3/8 were squashed in this series under 1/7, to ensure bisection. - 2/7 was introduced as a proposal for Viresh's suggestion to use policy->cur in the call to arch_set_freq_scale() and is extended to support drivers that implement the target() callback as well - Additional commit message changes are added to 1/7 and 2/7, to clarify that the definition of arch_set_freq_scale() will filter settings of the scale factor, if unwanted - 3/7 disables setting of the scale factor for CONFIG_BL_SWITCHER, as Dietmar suggested - Small change introduced in 4/7 to disable cpufreq-based frequency invariance for the users of the default arch_set_freq_scale() call which will not actually set a scale factor - build issue solved (reported by 0day test) - v2 is based on linux-next 20200716 - all functional tests in v1 were repeated for v2 [1] https://lore.kernel.org/lkml/20200701090751.7543-1-ionela.voinescu@arm.com/ Let me know what you think! Thank you, Ionela. Ionela Voinescu (3): cpufreq: set invariance scale factor on transition end arch_topology: disable frequency invariance for CONFIG_BL_SWITCHER cpufreq: report whether cpufreq supports Frequency Invariance (FI) Valentin Schneider (4): cpufreq: move invariance setter calls in cpufreq core arch_topology,cpufreq,sched/core: constify arch_* cpumasks arch_topology,arm,arm64: define arch_scale_freq_invariant() cpufreq: make schedutil the default for arm and arm64 arch/arm/include/asm/topology.h | 1 + arch/arm64/include/asm/topology.h | 1 + arch/arm64/kernel/topology.c | 9 ++++- drivers/base/arch_topology.c | 12 +++++-- drivers/cpufreq/Kconfig | 2 +- drivers/cpufreq/cpufreq-dt.c | 10 +----- drivers/cpufreq/cpufreq.c | 46 ++++++++++++++++++++++++-- drivers/cpufreq/qcom-cpufreq-hw.c | 9 +---- drivers/cpufreq/scmi-cpufreq.c | 12 ++----- drivers/cpufreq/scpi-cpufreq.c | 6 +--- drivers/cpufreq/vexpress-spc-cpufreq.c | 5 --- include/linux/arch_topology.h | 6 ++-- include/linux/cpufreq.h | 8 ++++- kernel/sched/core.c | 2 +- 14 files changed, 81 insertions(+), 48 deletions(-) base-commit: 4c43049f19a280329c1d01699f3cc8ad6910cbbe