Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp217327iob; Wed, 11 May 2022 12:52:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj0T546FIHwmIq5QlL3dsWeTcaH8hUkHT9ixKlGA0WNkMwYxfFdhd8cvbrQtJUd16eTGzA X-Received: by 2002:a05:6a00:a26:b0:4fd:f9dd:549c with SMTP id p38-20020a056a000a2600b004fdf9dd549cmr26931297pfh.42.1652298728871; Wed, 11 May 2022 12:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652298728; cv=none; d=google.com; s=arc-20160816; b=RDDXy/kQ29qwprSBiryiBdYBAGUzX5Bjdt8F5nL650ygmY2HhCL8r8XxoCM+qcdcl3 qdT1+KhLWM3F5+LR43uOVijs5kobgHhkCQMOHxlpj63ibnZ4ZweHkEt+cT1rbHhBErDF rimgmRmOk0ccXUN6gj3DPRtRElRSVxOAgBzH1cmMuBel3RKKty7jdmXMCJTtQLCdMhDP ciPf/byB/kzGzMOBlDx5fku8sBZWYigKB0H+dVQ41Qc2U0ius9iqBrwGFQZetPjggyi3 zKbzOlCLTGvQ0Q25GDz6ZUSMzh2zN4+dtdrmfh4Y4UQt/u5e7ryZnAWzSbmNYpuuSYEu U9pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vW+hMBX6p6O8pEbWtuZsKbxj2Of/Usk0yNd3/3wmRas=; b=u92bKFGsGSmqq3Fh9ZqnHByTOVoKj8UBeSnHFiqKInv7XDGSYidfUrmShJjCztunYT dP+YIwY9NcjaVA448IGOhU32iUwmBCqmUBjI5IJ8IVx5rt/2OnfTyIM9Gy0IP6wqkcZo D36+7FEN5UHP20b6FA/TjESgsmf4IFDk0UVc6WtceEbYmSbYBX94o+bgfA0d1mAY43QR CPcgjV2KqzQuU32Im3C31KkpUqk0Zgd8y5qaI5FOP/70dd4xNBS3JQ3zTlRWl0qhXWht 56u2Sw7zK5VhOM2LbKkQ3UbGDN/cGYVR7XON09vjMjyji+8QwxgQRzj0Z2cHtFMxdvdF iSuA== 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 n25-20020a634d59000000b003ab3da7b5aesi643626pgl.531.2022.05.11.12.51.51; Wed, 11 May 2022 12:52:08 -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 S244895AbiEKOl1 (ORCPT + 99 others); Wed, 11 May 2022 10:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244964AbiEKOlV (ORCPT ); Wed, 11 May 2022 10:41:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 00E3F48885; Wed, 11 May 2022 07:41:20 -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 CBA7B1FB; Wed, 11 May 2022 07:41:20 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 395923F66F; Wed, 11 May 2022 07:41:19 -0700 (PDT) Date: Wed, 11 May 2022 15:41:16 +0100 From: Sudeep Holla To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Ionela.Voinescu@arm.com, Sudeep Holla , Dietmar.Eggemann@arm.com, "Rafael J. Wysocki" , Len Brown , Viresh Kumar , 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: <20220511144116.ir2wyfqwdpnhkldx@bogus> 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> 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 On Wed, May 11, 2022 at 03:45:58PM +0200, 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. > Reviewed-by: Sudeep Holla -- Regards, Sudeep