Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1046218iob; Fri, 13 May 2022 20:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjOfB8VV80nneUmmqVXhqaIp6EqFEgfLTr1NtBcaQZJC/rUABvWrhjK47KoUSYp7mDXCgo X-Received: by 2002:a05:6000:144d:b0:20c:7829:2a44 with SMTP id v13-20020a056000144d00b0020c78292a44mr6207137wrx.663.1652500677262; Fri, 13 May 2022 20:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500677; cv=none; d=google.com; s=arc-20160816; b=OF5ceiPW7Vl9Qm8yVM+IbvTEhi9UrfQLfZH/FmaoZ22IGUZOZhVqQrrZTU1xc2kxb3 78c+BApnxBGuIeKXavGZVMxO6y0Md+MG2nm7TiV2+laBMXIKUuokSBQPUwJbPmPQPw3s omLrn5mdYTzLmB6+lGWP+TM5aaNTSaqZ+dJAhpvp0LNtzvcJzeb4PzdUY6uxdisP/IvW tmoNCsXhc/aqxN4Fms4zYVJmABTml6UINY44zZQgXzUOWlAOpP/spUzFXCioX3AJldWM HVCqFfxdVHli74bVHFP6FmykO9SDgRlHRS4x0YVS3cVLOzh8CEo+bna1GAyQ82DKqvYS unPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JqKmOBdyvSAB2RQPk7pfmb7qvk5aEFRk658+MP9/8GA=; b=M7PvceQ5/5QvZa6zqMNjGfz6hnVOWng1sfAOtVfL4JNFGN4OCBJPNH5jpGqmosAd+U 5UHTcoiTiwDk46RzHkvbMWV0TFx7goc/fXJ9Wrc3lo53yyRc6JbG84WAjII7OAce1yGI lqW62XXYinuHFGml0FM9LNLtFkVreOvIiLjpuHtNc3d8IK5m8nDHpqNQrlZk1WChbmQ5 USM5wVa0cyGRT7iFia4SqzdcZBOIaDKT0dLzB8CivXs0PbBpTGp0kenNRE6Wqyt9GtSZ aljYPUniTUGnq4X3bZUnT88DjEecdvJOj/BtxJkldzkSWfAX3fT88QGubfR6lDyAP/oM fqNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4zHvSs2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o8-20020a5d6488000000b0020c6ffb95basi5579369wri.818.2022.05.13.20.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:57:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4zHvSs2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CED86497808; Fri, 13 May 2022 17:29:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351144AbiELHqj (ORCPT + 99 others); Thu, 12 May 2022 03:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351086AbiELHqf (ORCPT ); Thu, 12 May 2022 03:46:35 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AC3533363 for ; Thu, 12 May 2022 00:46:32 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id s14so4127033plk.8 for ; Thu, 12 May 2022 00:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=JqKmOBdyvSAB2RQPk7pfmb7qvk5aEFRk658+MP9/8GA=; b=X4zHvSs2OtqDypNXNfmaomwFgwxRLmD9XFu2ESdk4XQ3Uo78qZHFVISztp97Ta0n5C zUvEnltHgHmaGdFZuMmZC4i1jGM+WMi80vrB6Vm7t3uylzs0fyVNgSsiyfuhb8ZSW4X6 c0sO9TyaPmS/P1YxVxgltuTIUOiideMbzhVdsJLHSkqYLoryuttMYunBYcna1c0UJwtH cCsR/TuKr+aVNYoZCAszIiEnjCR58xTRjK7W0p/kFsxnxIfktE4pJmvNaRGj8wSfKYv9 mWMRe6RySEHVF+qBMm7MZvYjpgOtR164GYbLAE4He+rsh0CQ1XzMfh9Bou6AgBrOh+Fk zQvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JqKmOBdyvSAB2RQPk7pfmb7qvk5aEFRk658+MP9/8GA=; b=IWPczXIE9gKf9NnYepBtUwRXExMoyy7JC0u3BuuL7SEby5Q5mpSKLM3W6Y43X/5Cue iYYQnVjaBQEgavCmqAg8z0Qa4tTMrvs2ruZpHYtl7AN+CKMEjZ+1Kjr6POKvCEyTEUbR CRueTh00D+HtJT2i/A58rSb8j1lNhCtB0IITLJdNaYRk/2OfdsLHHVtUPR+gmZJtcWz+ yzYauaDUrvWBy9pNWS0Ihod2CkLDG0zfu0Wx6UeZg1+qabDhLdZMJyz1f1Dzh0bD+1Xt /bVJvxquzj5VaVmYpB6m+i4EKWCO2kTBB2psAjPUwFV6b8l6SY+VJ0msf4I8jPKZbIff ZZ7Q== X-Gm-Message-State: AOAM533PBjRsCxuMQvCIl27ReeHpVrOcHRu9DWixHBS3a0yU7WijPBwQ wiQaaeENM1PoYc/uaTqjq3/4cA== X-Received: by 2002:a17:90a:4d04:b0:1d9:3f18:f4dd with SMTP id c4-20020a17090a4d0400b001d93f18f4ddmr9482641pjg.111.1652341592056; Thu, 12 May 2022 00:46:32 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id w8-20020aa78588000000b0050dc76281a8sm3009761pfn.130.2022.05.12.00.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 May 2022 00:46:31 -0700 (PDT) Date: Thu, 12 May 2022 13:16:29 +0530 From: Viresh Kumar To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Ionela.Voinescu@arm.com, Dietmar.Eggemann@arm.com, "Rafael J. Wysocki" , Len Brown , Robert Moore , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, devel@acpica.org Subject: Re: [PATCH v1 4/5] cpufreq: CPPC: Enable fast_switch Message-ID: <20220512074629.3cewdk4pu3oydlfg@vireshk-i7> References: <20220511134559.1466925-1-pierre.gondois@arm.com> <20220511134559.1466925-4-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511134559.1466925-4-pierre.gondois@arm.com> User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On 11-05-22, 15:45, Pierre Gondois wrote: > From: Pierre Gondois > > The communication mean of the _CPC desired performance can be > PCC, System Memory, System IO, or Functional Fixed Hardware. > > commit b7898fda5bc7 ("cpufreq: Support for fast frequency switching") > fast_switching is 'for switching CPU frequencies from interrupt > context'. > Writes to SystemMemory and SystemIo are fast and suitable this. > This is not the case for PCC and might not be the case for FFH. > > Enable fast_switching for the cppc_cpufreq driver in above cases. > > Add cppc_allow_fast_switch() to check the desired performance > register address space and set fast_switching accordingly. > > Signed-off-by: Pierre Gondois > --- > drivers/acpi/cppc_acpi.c | 17 +++++++++++++++++ > drivers/cpufreq/cppc_cpufreq.c | 24 ++++++++++++++++++++++++ > include/acpi/cppc_acpi.h | 5 +++++ > 3 files changed, 46 insertions(+) Acked-by: Viresh Kumar -- viresh