Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2176453ybm; Sun, 31 May 2020 11:08:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxm1Iqie1uV6wPyAaXmHmmznm3oZFmltvjsCrjQZmZEbjBaDe8W4MCyEqSxlYgQVGwiDUhr X-Received: by 2002:a17:906:1c94:: with SMTP id g20mr15947059ejh.319.1590948530856; Sun, 31 May 2020 11:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590948530; cv=none; d=google.com; s=arc-20160816; b=iEYqY2iHhbkYIBj5fwgG1pk+oyNOJZqQIaK4rrWiNXv7A/JUa4b8yoV773o/kLNkP+ jxjEE7CV7BLTc6cVb4lHpS3YR+N1OubsOV7HCmxG+U+JBdhJUlYjNdw1rx5ZupsMfDCa 5p5d6s0YsRQ3jF5jHdi18ac25RH67vlfQLLWV2cz5IIPqZxcZDM2W2JuXUSYihHZGSjj oVu+he8S5NlmB8umco8k18htkRvqsBt+wn3nVPEX3ASwirZiGuWDXIdJ+gRBd7vAbh93 XWUgF9KNJHkQHdVV3bPUjwfHkRf3HSBf4Z8QjvSYo9urB7k6bMYJWgPG85arMmX9UW5p tB8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=r5KOrq6Ds+ho7g3meSTHwvX+K3kZN2HxgXShNbekzZ4=; b=f5oH4PT/3a7ceZehH2F5IH7eMfcoUeCHlL7cl8PVcegRt+kY7Ic9NVM8ZhYbHCKX8j aRQqyRf0iSqb6CdC7BK5qHarM1ygJTwPDOuu02pPNBKissR/XKnyk4I/4RaTbaLzui45 36gqPBDVHVEO2WAr3/QoFa9XZC81oABdlS8euEDHHe7D8NOjpD17S+4fhrJhlz/LUZWn b4x+wYBPATF9KIqrxnW0KE9KMpgZF2RUef/tU1lfeFgmUK2++OEDDrM4kTv26O/jBccf T/1V7DO7yoZBGTjtRv1Hle5ULrcdeChVWBjRJBOXppjBZB3yy6AkGNdF4TJT8HaMdSpc 6zqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=Mq9zdrB3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si870596edt.65.2020.05.31.11.08.27; Sun, 31 May 2020 11:08:50 -0700 (PDT) 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; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=Mq9zdrB3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728514AbgEaSGU (ORCPT + 99 others); Sun, 31 May 2020 14:06:20 -0400 Received: from cmta16.telus.net ([209.171.16.89]:53124 "EHLO cmta16.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbgEaSGT (ORCPT ); Sun, 31 May 2020 14:06:19 -0400 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id fSLejoJBf2DNIfSLfjKyaC; Sun, 31 May 2020 12:06:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1590948377; bh=r5KOrq6Ds+ho7g3meSTHwvX+K3kZN2HxgXShNbekzZ4=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=Mq9zdrB326EOBCnhfmFD/rYRjPzaLqyKKORn/cdoQftUlsK3PrZv844HnKAy0tLl0 Q7t1xsQXuIzV9cqlNeMuSVXr4dKdgpDmVtLxzne8k79O5XlhsLw9IUBAb5mLe06zd6 MUUO/EsUpTUGa6/kcGy7nRv/IuVAMI9J8QuTTADpTIdigvg/xM6sHouWXvdCOJXUyH vj7bR5pYYbKQnrwY1flbqSDzGIaCP4SVlMpLFJ0tQnxVPA/mkAmI13r8q915oAgrtw EppCSmhngjomyBQ099syBdiYXRKXGacxLuHAFSivVSDSlHphijFhleQIeKKQXhukHs tLr4piyTvrUtw== X-Telus-Authed: none X-Authority-Analysis: v=2.3 cv=H+qlPNQi c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=IkcTkHD0fZMA:10 a=745QobAnVKdQoEg0E7cA:9 a=QEXdDO2ut3YA:10 From: "Doug Smythies" To: "'Srinivas Pandruvada'" , "'Rafael J. Wysocki'" Cc: "'LKML'" , "'Len Brown'" , "'Peter Zijlstra'" , "'Giovanni Gherdovich'" , "'Francisco Jerez'" , "'Linux PM'" References: <2931539.RsFqoHxarq@kreacher> <000001d6376a$03bbaae0$0b3300a0$@net> In-Reply-To: Subject: RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Accept passive mode with HWP enabled Date: Sun, 31 May 2020 11:06:13 -0700 Message-ID: <000201d63776$2d56f330$8804d990$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-ca Thread-Index: AdY3bCT0dMErDJdzQFCwkA2hers8QwAA/SAw X-CMAE-Envelope: MS4wfIcAZouttRHjxc46v52Sx1hEqlHfsIRf0xTsVbtv/+SBX7/jFO8q3KCbrNooKAWArZQnLaatv/DbcHJX3RF+gfr4fuKNd9xbdRnOHLSwitEHB2kTEUmv yRmAe0eNT3fl+Wu8qbCOGNc+/ROFEfMMCtUh7ZBV250fukhPtefmXPe8a4ghaEIczkdgmC7+pmnWr2eC1/F8fSxWTYHteYhk6COKZGq+6zdJYLy3sk4ZKsQO JEFPKyZ5AknuOPVIE+1j3zcZzR8pemfJkKcE+CK5JGZ/VgWMpw97KiOhX4TSwwOtX1bk2wWWczLrMTDu5yVVurQah8SkAbbLEdmD/4jTwzitTwf0oJFKG4DK jv1lBI3boDV65RpEu3YoYar9jpccLgm2iXoO1voJ6vtrOgjdV4f1g2brhsMgITUNhpImJfUn Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Srinivas, Thanks you for your quick reply. On 2020.05.31 09:54 Srinivas Pandruvada wrote > On Sun, 2020-05-31 at 09:39 -0700, Doug Smythies wrote: >> Event begins at 17.456 seconds elapsed time. >> Previous event was about 107 milliseconds ago. >> >> Old min ; new min ; freq GHz; load % ; duration mS >> 27 ; 28 ; 4.60 ; 68.17 ; 10.226 >> 28 ; 26 ; 4.53 ; 57.47 ; 10.005 > > Seems you hit power/thermal limit No. I am nowhere near any power limit at all. I have meticulously configured and tested the thermal management of this computer. I never ever hit a thermal limit and have TDP set such that the processor temperature never exceeds about 75 degrees centigrade. There should never be throttling involved in these experiments. I can achieve throttling when compiling the kernel and with torture test mode on the mprime test (other CPU stressors, including my own, are not as good at generating heat as mprime). This system can run indefinitely at 99.9 watts processor package power. Example (turbostat, steady state, CPU freq throttled to 4.04 GHz): doug@s18:~$ sudo ~/turbostat --Summary --quiet --show Busy%,Bzy_MHz,PkgTmp,PkgWatt,GFXWatt,IRQ --interval 12 Busy% Bzy_MHz IRQ PkgTmp PkgWatt GFXWatt 100.21 4045 72231 66 99.93 0.00 100.21 4043 72239 65 99.92 0.00 > > Is this some Lenovo system? No. The web page version of my original e-mail has a link to the test computer hardware profile. The motherboard is ASUS PRIME Z390-P. > > If you disable HWP you don't see that? Correct. > > What is the value of > cat /sys/bus/pci/devices/0000\:00\:04.0/tcc_offset_degree_celsius ? "No such file or directory" > cat /sys/class/powercap/intel-rapl-mmio/intel-rapl- > mmio:0/constraint_0_power_limit_uw ? "No such file or directory" > You may want to run > Try running dptfxtract once. No, I am not going to. I am not running thermald. Eventually I will, as a backup in case of cooling failure, so as not to hit the processor limit shutdown. I just haven't done it yet. > > Then try to get again > > cat /sys/bus/pci/devices/0000\:00\:04.0/tcc_offset_degree_celsius > cat /sys/class/powercap/intel-rapl-mmio/intel-rapl- > mmio:0/constraint_0_power_limit_uw > > > Thanks, > Srinivas