Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp393591pjb; Wed, 22 Jul 2020 02:38:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPkZVTo3SGevd9lR8y0qFbrbQZS9fMNZB9/qiNmovjv7axVlX6lj4T8BsZMvl076n2LfXl X-Received: by 2002:a17:906:da0f:: with SMTP id fi15mr28201699ejb.237.1595410723296; Wed, 22 Jul 2020 02:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595410723; cv=none; d=google.com; s=arc-20160816; b=0W6CQ9h1P/Am7z47+FyvFtV/oWemJWll7Ikgeq2uBs9G4vDbQs0o4DBVuwM2RynLST peKzrdPTh6Af/Z9pb2r+0Wc9dqphP/xRQPHSdoGnv8yflhz9d1DvyFLZT6cP2IhtULZ7 O8boSlmW0QetAaQBRL7/K/sb2n7y4xbEx8bDiJP1pLZM1txwf7PY5/OrXRIO01D54Ps2 b1wr5Cyij0ks0ly+noVyR90xSMRc6zfOZhAHeVune9YaHvADK8okVeuvragqkOtZygjy 3VCiSWC1s73V6kFiT+UziwabwHU9DvJ+oMiX3l8voSuQ9oxEDi7Vpo8FNZjYr2QTwzwC RIcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YEgMZ+zTLIlP6NEz/UvHBTTFPmRRnu3YrVAh4fxu6KE=; b=vZOaSTNyR6ZQkBiIZcOkT7AQnSndCQCeBiN8c/8yAhE2BIpakkkUcQFZs9/oqHKb5o YmERz7L5Yv/plHZ6/NbA/mSH4YTvxvZivOmC7qr3j0JeLzLZ7oxU+ZUQicTNNar2vvxT biXr7ohY/IYNJCcZSeOLOufStgAkJgep3tp8kpTKsy/yKdNkzLaA3D4ync0ghDZc4Jd/ qPbQaDHkEvhxIt28s30ybFen8eaOq9PZ9uNDDgk8qaeDdaCH3pjJnWl4yVXSphUYST11 Pz4IiIUjOZb6dS54rLvIFCHmJAewFr4k6Pa2bRoachqRkmmCTDw31vZdYii9DH8o4ou0 gPLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si5382003ejy.691.2020.07.22.02.38.20; Wed, 22 Jul 2020 02:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731524AbgGVJiJ (ORCPT + 99 others); Wed, 22 Jul 2020 05:38:09 -0400 Received: from foss.arm.com ([217.140.110.172]:52972 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726147AbgGVJiJ (ORCPT ); Wed, 22 Jul 2020 05:38:09 -0400 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 Cc: mingo@redhat.com, peterz@infradead.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ionela.voinescu@arm.com 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 -- 2.17.1