Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6372466pxb; Mon, 8 Nov 2021 07:34:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLglnZ/+gTDWoPJ1sfYJUl8XzroIpOOO14bIHeeyZ5vXW4hf3tJAIb95BlIrWqtyy/3VTt X-Received: by 2002:a17:907:8692:: with SMTP id qa18mr209765ejc.7.1636385673464; Mon, 08 Nov 2021 07:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385673; cv=none; d=google.com; s=arc-20160816; b=moIjSC9sWi7U+FnmjQoyDMaSfdn7jEtmu7rNmTRBbZx9L2FcwxVAqw61hFPEU1Br2E jWNhEmi2GGxbA0wxeAbEnNLIUwFEXoFV36nl3fr3F/J7ZuFp7lvqkBv+FFVSTXwAf2do ne68zOIMKHZowo1EYrvnUGkNunQvSSXTgjhxx/p78/w7z4m5xulpBt7J7LOhKsCXx47f RY+rTVyok1+R0oXUGWtIha/9J4EXvztYb/1+/t92z6KXQ+KWP29HQg9IuNO4EM5d4iDJ cgkw61MekDsuaW2RatJDYFfxefaIJFyx1CcxF8SECuq0nlgLi18nwOeImj+GNilxOgqx Vsgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=IuQV2BqMwgvrh6C8FXuGipS5GUDXAv0K3yJNGAaQJe4=; b=ypfKFWeXNdyXT1I7Q4LxkPZtuG+PVS2DTUOc02xV2ZgzrYT1UB74pdWhFT27wipF0D jW3nWVA3OamkOZwqoRM824sRjoibFVP401rok2wSq9+jCEZsAk+M9rzfWyoW/BsOvpeO 7JCCD0WZ1kapOzSLftwnX8bg+1GkWRIjKdCf33uD1ATwQAkJ9Kc6w5bjTP8/MVvSpUZI K+OfV7mUOyT+fYg508xRuy8LEHfGeDCdpoovEILjICXLomPjzoYgM6y2hobMz54ekG84 bJt1151Rh4O05OE8P+9FOa6ppDfqEt2j8hD3IG0eNi4Kk+x3fgPDSG+KT6y9jsaiEmSe Mi0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si29059637ejj.387.2021.11.08.07.34.07; Mon, 08 Nov 2021 07:34:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S236256AbhKHKrI (ORCPT + 99 others); Mon, 8 Nov 2021 05:47:08 -0500 Received: from foss.arm.com ([217.140.110.172]:48720 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229754AbhKHKrH (ORCPT ); Mon, 8 Nov 2021 05:47:07 -0500 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 CDB6DD6E; Mon, 8 Nov 2021 02:44:22 -0800 (PST) Received: from [10.57.27.158] (unknown [10.57.27.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D8E4D3F800; Mon, 8 Nov 2021 02:44:18 -0800 (PST) Subject: Re: [PATCH v3 0/5] Refactor thermal pressure update to avoid code duplication To: Steev Klimaszewski Cc: Thara Gopinath , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, sudeep.holla@arm.com, will@kernel.org, catalin.marinas@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, rafael@kernel.org, viresh.kumar@linaro.org, amitk@kernel.org, daniel.lezcano@linaro.org, amit.kachhap@gmail.com, bjorn.andersson@linaro.org, agross@kernel.org References: <20211103161020.26714-1-lukasz.luba@arm.com> <3cba148a-7077-7b6b-f131-dc65045aa348@arm.com> <9d533b6e-a81c-e823-fa6f-61fdea92fa65@kali.org> <74ea027b-b213-42b8-0f7d-275f3b84712e@linaro.org> <74603569-2ff1-999e-9618-79261fdb0ee4@kali.org> From: Lukasz Luba Message-ID: <7bd9aa9f-1d1f-ea12-57ba-adf5d69cbbfb@arm.com> Date: Mon, 8 Nov 2021 10:44:16 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/21 10:46 PM, Steev Klimaszewski wrote: > >> [snip] >> Hi, >> >> So IIUC the below logs correctly, you are never hitting boost >> frequency (with or without this patch series). Is that correct ? >> >> w.r.t temperature , how are you measuring it? Do you have LMh enabled >> or are you using tsens to mitigate cpu temperature ? > > > Hi, > > I was wrong - it does indeed go boost with the patchset applied, it's > just that it doesn't boost up to 2.96GHz very often at all. As noted by > the 0.03% when i ran it while compiling zellij; I reapplied the patches > (and the 6th patch from Lukasz's email) and after boot, 2.96GHz was > showing at 0.39%. > > Most tools that read the cpu frequency don't really seem to be well > suited for big.LITTLE, and seem to throw an average of the speed, so > cpufreq-info was the best I have.  We're apparently supposed to be using > cpupower these days, but it doesn't seem to know anything about arm64 > devices. > > Temperature wise, I'm just getting from the sensors, and I am using LMh. > > Now, I have to admit, while I've thrown a patch here or there, I'm not > exactly a kernel developer, just enough knowledge to be somewhat > dangerous and know how to backport things.  In my mind, and my line of > thinking, I would expect with boost enabled, that the cpu would boost up > to that as often as possible, not require a specific workload to > actually hit it.  But then again, I would expect multiple compilation > jobs to be one of the workloads that would? > > So I think, the part about never hitting 2.96GHz can be dismissed, and > was simply my lack of knowledge about the cpufreq-info tool's averages. > It does seem however to rarely ever hit 2.96GHz and I would actually > expect it to hit it far more often. > Thank you for the logs and re-testing it with the debug changes. That's valuable information. I'll work on it today. Regarding the 'boost' frequency, as you observed, it's hard to measure it properly. Normally when you use the frequency governor 'schedutil' (which is your case), you need a high utilization workload to request highest frequency. The task scheduler does this calculation and then asks for the frequency. I'll spend more time trying to understand how this Qcom driver and HW handles it. The patch set itself should not block it. I'll get back to you soon. Regards, Lukasz