Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4735205imu; Mon, 12 Nov 2018 16:29:43 -0800 (PST) X-Google-Smtp-Source: AJdET5fJNZxdR2bsFAJvLTqHTf7mhPlxum4i1eBZdD5WcUqQpaolhcdkpWvtUI7ZuH3RLkVCM4Qd X-Received: by 2002:a63:d40a:: with SMTP id a10mr2698394pgh.394.1542068983446; Mon, 12 Nov 2018 16:29:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542068983; cv=none; d=google.com; s=arc-20160816; b=VoO0edZ7muEzspyYAG0lJojboMao627xr/uadYq7VRnMQhMol4eFCEig7dZ6/kDS3W PSI4nOeJHnaPcdFNkPBfdxt+g3Idi9MPmobfrz2aIcIrOfU4vzYW16sFyf0tdQQ0QNsM PEYWhRfn2IvzuufAhvuYB8RNchXu3qJobEZmG7t/U8mUhlzL73sa2mfQ0GY6b5QNJT59 KlzCurzKYnpbrJTj0s8FEq4WFlJ9mJWvghpptglQysx/Ye3t13f9jlLYloXytodwsdMQ 2XO6ydtqY9RrEtDuKThwpsyAf9tLH1IkTEJ44EgATRAmA1mJSsMgDT+i4xsu9QDU9eJT RZ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xeOMmT1evZEpl0IdVTzJZveGTFhfPUqinZDcLFXZX/g=; b=rO8Enx4s85hLNPjMyv72vQY+FzdOd4a1Yj+iaI2VRg/AfJo14e1A8H8oB6m1KPOGLy QGz0OmdXyb9dqTRbHM/5Dnu484xSgsoXryFAbHbFKiUosGi6MwRXu7SDgiuDS7qWdYP8 r1axx66XDQi981VtbMjzmZR8jldpq4j+iwUh0kBATNBYr+0WJdzC+xbnef53Zo9adyd1 /3M441TSLx9cmRZXiyYtUfp+ZOU/wQPPjNetB5j9mK5O45FeInUXQMJrGBoXZeqwy92g PSpQ9orc3HGwHKnnB/3RcaTNLqM0aEGjwVt0xZ7gJA6+HV2gtBSKLJtUZVnZrDjBKDJR 7QkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="YbVXhM8/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23-v6si18846179pll.178.2018.11.12.16.29.27; Mon, 12 Nov 2018 16:29:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="YbVXhM8/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730597AbeKMKYb (ORCPT + 99 others); Tue, 13 Nov 2018 05:24:31 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:33630 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730387AbeKMKYb (ORCPT ); Tue, 13 Nov 2018 05:24:31 -0500 Received: by mail-pg1-f193.google.com with SMTP id z11so2175762pgu.0 for ; Mon, 12 Nov 2018 16:28:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xeOMmT1evZEpl0IdVTzJZveGTFhfPUqinZDcLFXZX/g=; b=YbVXhM8/jJ0EbXrRRfhmi8GRRxThCiVt4GkovYykZxBi2z7CAFSkQoZL249bJjeV8v DoPMRC2kJ339Rrle9K28leIP3j5MpTCDUfYfVNmQDa8SwSaczuJEosTSsq/2bxlFAi5t TKRcPiEDX2HZ3Sfhq1WZEQZoS+QFKyNEriSQ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xeOMmT1evZEpl0IdVTzJZveGTFhfPUqinZDcLFXZX/g=; b=jEhPDSKd8BeX/lEmhtYPXeB16bOO0tjsMeH6es28dTH9u83OX2jNuwXu75Kb/gcwsL +znrYWHaKcO9m4c7amWwLRRJIbo7LW5E3p4q/6Dg/9fm8r+kX6jJ7Oisz3eL9+vA5vah 4duktU+suT4H0DnHfEFNsJDyNahc/gwFOYRnkDh5IiBkIj1y8709djbLd0xLoMbRAGsE xho1dt+F/iyIdPvKphyX9oKpDjM/GN9i9XmmUTTxmiDz1RhCpFKJ7FsYQ+J1x1pbBksF VcijzY38LNVEL6TuhnyDUuWtNPuZLXGsZfO+TuIIKF3FXNlAUakJzkI/36b9pJSO4oqj ig8Q== X-Gm-Message-State: AGRZ1gL3hdKRib8PHOuQzcx61eGhkYCGevGYpqSvRNCy21K3QBP21BQC hNqAi3kxcBhgas4fprQ88h5YvA== X-Received: by 2002:a63:5ec6:: with SMTP id s189mr2638723pgb.357.1542068938184; Mon, 12 Nov 2018 16:28:58 -0800 (PST) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id g7-v6sm19005797pfo.139.2018.11.12.16.28.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 16:28:57 -0800 (PST) Date: Mon, 12 Nov 2018 16:28:56 -0800 From: Matthias Kaehlcke To: Amit Kucheria Cc: Taniya Das , "Rafael J. Wysocki" , Viresh Kumar , Linux Kernel Mailing List , Linux PM list , Stephen Boyd , Rajendra Nayak , DTML , Rob Herring , Saravana Kannan , linux-arm-msm , evgreen@google.com Subject: Re: [PATCH 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings Message-ID: <20181113002856.GF22824@google.com> References: <1539257761-23023-1-git-send-email-tdas@codeaurora.org> <1539257761-23023-2-git-send-email-tdas@codeaurora.org> <20181025224339.GB22824@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181025224339.GB22824@google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 25, 2018 at 03:43:39PM -0700, Matthias Kaehlcke wrote: > Hi, > > On Tue, Oct 23, 2018 at 05:23:34PM +0530, Amit Kucheria wrote: > > Hi Taniya, > > > > Both the patches are missing v9 in their subject line - this threw off > > patchwork when trying to download the patches. > > > > On Thu, Oct 11, 2018 at 5:06 PM Taniya Das wrote: > > > > > > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > > > SoCs. This is required for managing the cpu frequency transitions which are > > > controlled by the hardware engine. > > > > I tested these patches on the sdm845-mtp against 4.19 and found that > > the frequency gets stuck at the highest opp (the boost frequency) > > after running a couple of 'yes > /dev/null &' instances. Have you > > tested these against a mainline kernel? > > > > See cpufreq statistics below: > > > > linaro-test [rc=0]# cat policy?/scaling_cur_freq > > 300000 > > 2803200 > > > > linaro-test [rc=0]# cat policy?/stats/time_in_state > > 300000 100840 > > 403200 388 > > 480000 71 > > 576000 54 > > 652800 22 > > 748800 11 > > 825600 5 > > 902400 5 > > 979200 9 > > 1056000 3 > > 1132800 2 > > 1228800 5 > > 1324800 8 > > 1420800 2 > > 1516800 1 > > 1612800 0 > > 1689600 0 > > 1766400 392 > > 825600 22048 > > 902400 21 > > 979200 4 > > 1056000 15 > > 1209600 6 > > 1286400 0 > > 1363200 1 > > 1459200 0 > > 1536000 0 > > 1612800 1 > > 1689600 0 > > 1766400 0 > > 1843200 2 > > 1920000 2 > > 1996800 0 > > 2092800 0 > > 2169600 0 > > 2246400 0 > > 2323200 0 > > 2400000 0 > > 2476800 0 > > 2553600 0 > > 2649600 0 > > 2707200 0 > > 2764800 0 > > 2784000 0 > > 2803200 79718 > > I can repro this on SDM845 with a v4.19 kernel. > > Since the little cores don't have a boost frequency I think maxing out > can be expected with a high workload and no thermal throttling. > However the big cores have a boost frequency (2.803 MHz), so the > driver shouldn't be stuck at it. Though in practice I also wonder if > the ~1% 'boost' makes a big difference in terms of performance or CPU > overload ... From Documentation/cpu-freq/boost.txt: "Some CPUs support a functionality to raise the operating frequency of some cores in a multi-core package if certain conditions apply, mostly if the whole chip is not fully utilized and below it's intended thermal budget." According to this it is not per se an issue that the cores are operating at the boost frequency for a prolonged time. The use of the highest frequency can be expected with a certain system load and the/a boost frequency may be used unless a thermal or other conditions prevents it. I think the real question is: why is the last frequency automatically considered a boost frequency? On (my) SDM845 it is only about 1% higher than the previous one (2.803 GHz vs 2.784 GHz), that hardly seems like a 'boost'. Thanks Matthias