Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp349123iob; Wed, 11 May 2022 16:12:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgOcSEGMLJVmOnhEO5Guf6KaG4gacGUK5ehfDUl0PDy9TuUtU5gp61a8d/cCOwDuB+EkFM X-Received: by 2002:a17:906:60cd:b0:6fd:d95c:3e34 with SMTP id f13-20020a17090660cd00b006fdd95c3e34mr4157013ejk.250.1652310749389; Wed, 11 May 2022 16:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652310749; cv=none; d=google.com; s=arc-20160816; b=TOet0EG0nA2Y9nqTcFVCSZLXOSML4ymZexNRZR956OhfD3HouwDjO83ccTQ61rY82X uBA3AuKv6xUh/SnTd8vKC6p3euomvAmUcAy0ydwjOSmgvR00djv4pA+0ABtC61xBKCtX pDshGfN+XVByrG3V6r0sD0kgZ6lkef9Mp7UHn+dc46i+Uucxo0lICDPgehbyDlElzVd5 re3143QlTRT/L0bl8OGY5KMglqQQVJ/QI0hnG7OglEJ5Ce/B1BU7iwK8aLzsgUFIH5Tn JliIPuZvNBvu+1c3nzhnKLxlVcRFGpF6dA26o9LRGULxxY4hzYFS6raCystrp5qvC0gD WTiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=r8373Pmp/X0JomvKlVqBauIBBJUmfQvCliL2DSCW9uI=; b=pNjfRLzDLCbDFCsJTfM7LNY9H3ChE2h3u01/sO7npWKmMqY06u/9naoWkaW2l5OHRY NY1ejIf/gJJwJ0ykcxyP1pwGbgnO1aoNuFGBO8ZG9gSdpUz+/F+ts8omC7CIDig72oVt SrkZHr160KXk2EzB5be3hGVchGyQj0R65TZPE1otWe+Bo6+7bQt/ornoce+D3+Ps2nHq 1xdYWJBXrPWJ3eB6YCgDGymYqqsvPnKi6SM9Jj+w0fYHolk1Ajw4UUk+zllzkshZh0fY FMdZjdCxGuDQOfM6xZrcF9sQ4Sss6tOek4am+E6gc7xGZ9GUDT6H/9H63126YIOgGYeb aPvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd15-20020a1709069b8f00b006f3e35a64d1si3718577ejc.561.2022.05.11.16.12.02; Wed, 11 May 2022 16:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244100AbiEKNrP (ORCPT + 99 others); Wed, 11 May 2022 09:47:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244090AbiEKNqi (ORCPT ); Wed, 11 May 2022 09:46:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 75B088B0A6; Wed, 11 May 2022 06:46:37 -0700 (PDT) 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 39E16ED1; Wed, 11 May 2022 06:46:37 -0700 (PDT) Received: from pierre123.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A4FDC3F66F; Wed, 11 May 2022 06:46:34 -0700 (PDT) From: Pierre Gondois To: linux-kernel@vger.kernel.org Cc: Ionela.Voinescu@arm.com, Dietmar.Eggemann@arm.com, Pierre Gondois , Pierre Gondois , "Rafael J. Wysocki" , Len Brown , Viresh Kumar , Robert Moore , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, devel@acpica.org Subject: [PATCH v1 5/5] cpufreq: CPPC: Enable dvfs_possible_from_any_cpu Date: Wed, 11 May 2022 15:45:59 +0200 Message-Id: <20220511134559.1466925-5-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220511134559.1466925-1-pierre.gondois@arm.com> References: <20220511134559.1466925-1-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pierre Gondois The communication mean of the _CPC desired performance can be PCC, System Memory, System IO, or Functional Fixed Hardware (FFH). PCC, SystemMemory and SystemIo address spaces are available from any CPU. Thus, dvfs_possible_from_any_cpu should be enabled in such case. For FFH, let the FFH implementation do smp_call_function_*() calls. Signed-off-by: Pierre Gondois --- drivers/cpufreq/cppc_cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 000a0c610c30..ad1535fbf389 100644 --- a/drivers/cpufreq/cppc_cpufreq.c +++ b/drivers/cpufreq/cppc_cpufreq.c @@ -558,6 +558,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) } policy->fast_switch_possible = cppc_allow_fast_switch(); + policy->dvfs_possible_from_any_cpu = true; /* * If 'highest_perf' is greater than 'nominal_perf', we assume CPU Boost -- 2.25.1