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 X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03670C433FF for ; Thu, 8 Aug 2019 16:18:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC961217D7 for ; Thu, 8 Aug 2019 16:18:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404093AbfHHQSD (ORCPT ); Thu, 8 Aug 2019 12:18:03 -0400 Received: from foss.arm.com ([217.140.110.172]:35660 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfHHQSD (ORCPT ); Thu, 8 Aug 2019 12:18:03 -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 7AD301596; Thu, 8 Aug 2019 09:18:02 -0700 (PDT) Received: from [10.1.195.43] (e107049-lin.cambridge.arm.com [10.1.195.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 52AEC3F706; Thu, 8 Aug 2019 09:18:01 -0700 (PDT) Subject: Re: [PATCH] sched/cpufreq: Align trace event behavior of fast switching To: "Rafael J. Wysocki" Cc: Linux Kernel Mailing List , Linux PM , "Rafael J. Wysocki" , Viresh Kumar , Ingo Molnar , Peter Zijlstra References: <20190807153340.11516-1-douglas.raillard@arm.com> From: Douglas Raillard Organization: ARM Message-ID: <433793e3-14c4-9f3b-d503-76471a98b0af@arm.com> Date: Thu, 8 Aug 2019 17:18:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB-large Content-Transfer-Encoding: 7bit Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi Rafael, On 8/7/19 9:40 PM, Rafael J. Wysocki wrote: > On Wed, Aug 7, 2019 at 5:34 PM Douglas RAILLARD > wrote: >> >> Fast switching path only emits an event for the CPU of interest, whereas the >> regular path emits an event for all the CPUs that had their frequency changed, >> i.e. all the CPUs sharing the same policy. >> >> With the current behavior, looking at cpu_frequency event for a given CPU that >> is using the fast switching path will not give the correct frequency signal. > > Do you actually have any systems where that is a problem? If so, then > what are they? > That happens on Google Pixel 3 smartphone, which uses this cpufreq driver: drivers/cpufreq/qcom-cpufreq-hw.c. [1] git clone https://git.linaro.org/people/amit.pundir/linux.git -b blueline-mainline-tracking Thanks, Douglas