From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08834C433FE for ; Thu, 12 May 2022 07:46:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239853AbiELHqg (ORCPT ); Thu, 12 May 2022 03:46:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350644AbiELHqe (ORCPT ); Thu, 12 May 2022 03:46:34 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A15532EC0 for ; Thu, 12 May 2022 00:46:32 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id cx11-20020a17090afd8b00b001d9fe5965b3so7083439pjb.3 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=Lwg+gKT9aMFVgI01Gkl7WrPGUvbAvxLN7LGjyqRw9+UaLTJScsy0peehitiYyEegkj oYgHNWalFuUzoSty5i+gHcLCJJjkd5q55B5Nz8QlfM6zFPVcgt1gMVtZzc9oHF8M5UK8 QUfwsoo/siGJ8bqP8HFE/oK0TGVwEcTPiwsm9yX6poHP6IxtiS6/5xpJdiVE0Q9C3zkK t+A1+26rpBnJGffZ0/6i0hg3WrRDoMorJon625p/3GeleuCtustsTuHMGzfelHJ39aaT 5CjBLQfEw8pCUdgT5+AzaJrNxTCbWnalNzSlytfK/e3PM6I6R+gURm0shv9KH+0AagUK sFnA== X-Gm-Message-State: AOAM530/BnZEdl0Ijkxp9FziHfbDkEjgjAjCUG3DWE9ThWStGtJTttr8 OyKL4uKwSEUqWRt/R4wl5BmU2w== X-Google-Smtp-Source: ABdhPJwUqx1pbyIyvspuWNontshAmCuEcq5ZJyBlMDjfIBLljoOQH3ZGhCvC+DWmIKArMfbLLu2iAw== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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