Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp2216404ybm; Sun, 31 May 2020 12:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8IygKClbztKb197OsravUZT4xN4mio++y3jE0bHRrAffM/JTFurbY9biTkoEE0phtcmxg X-Received: by 2002:a17:906:7f95:: with SMTP id f21mr1179643ejr.554.1590953463963; Sun, 31 May 2020 12:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590953463; cv=none; d=google.com; s=arc-20160816; b=GiX9c2cAltWAouadPGDYWcujJdrpHYoOWj8zxYy+8y42ejE4dysamHVU+IGIb3Tolo 2zgOSKaFWndCaYTgO0q1XGFt85SfSt2QdAbnMslRoSg1KPebDolzknK30S0DdD+hTweP 91iyhjOU8+CVb1diVKPxI72w6DjW071a5uMPGSv7btTjVBX93ioHpCsRWVsRXkHvIxTA SLTHZ/9AnorN7l5ZxJE68z8AU6ETnQ2MhSry9RvBmGbTCk+hJVaOWb34CS/k9xM6TlGS lwNoYlsfZq+cgHlgQV8o3OhzOx7Dgvmkw/mXxmBut3iRWt74QJ+5nsKgBv6btt+jHK62 NEag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=0eoMeU2OeXzKxGxGfZLXcezm+TfUacLhlzGezA3N1Dk=; b=mhfDaSr0TzUWnl0kH2qqOZgSTfsE8P1luziBjvYB/3AMgJ0vrBJZle/q2+8DJu3h5z 6RfTVkcbe905CVU7+dP+HYEnAe2AkBoEqC82F352Q+1OLsDWoGjA5XE5xu5/cKDMc15K 35BxUOmFTgzm0pnR4vNq5p7tHIKMf9AGU2WdtLMMZrAboN5lXYMcoMN3ZSd8WeHdIgu4 97Se5cffoCivowBz8eTXby9+TbBJyih512Fs/rWn/U8oll9CYgnS0rxsDokEhb9zK+ua fvHOVJklhztY17nQl7zxXaYykzMx2S43iMJ/veu8ZPWe91OK2tleydO5/SEzwqxZ2lOL 58NQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si10103422edx.282.2020.05.31.12.30.40; Sun, 31 May 2020 12:31:03 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727050AbgEaT2t (ORCPT + 99 others); Sun, 31 May 2020 15:28:49 -0400 Received: from mga17.intel.com ([192.55.52.151]:59450 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbgEaT2t (ORCPT ); Sun, 31 May 2020 15:28:49 -0400 IronPort-SDR: 5dTmoUYLjYA/6PRX9KegejdIHUIMqCdXC1Om5RELilTseYT3GY8quGvIBW9HdKUfAUQsk80Adq WOKn7XrG7M1Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 12:28:48 -0700 IronPort-SDR: W3DDRWG685mzwJKp/gR4BExk/yxKVpJmvzjuQ6faY9+uQJbBGJz7IudKYB7eBtb5HIJi/JafZr +c8Lgp8TE9TQ== X-IronPort-AV: E=Sophos;i="5.73,457,1583222400"; d="scan'208";a="444051858" Received: from fhamberg-mobl1.amr.corp.intel.com ([10.254.102.133]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 12:28:47 -0700 Message-ID: <0c2c0962167ecb854e962ed7e92991712f9db6ca.camel@linux.intel.com> Subject: Re: [RFC/RFT][PATCH] cpufreq: intel_pstate: Accept passive mode with HWP enabled From: Srinivas Pandruvada To: Doug Smythies , "'Rafael J. Wysocki'" Cc: 'LKML' , 'Len Brown' , 'Peter Zijlstra' , 'Giovanni Gherdovich' , 'Francisco Jerez' , 'Linux PM' Date: Sun, 31 May 2020 12:28:46 -0700 In-Reply-To: <4793937b5e2b8b03a1aa0943bb5f62d17496cfee.camel@linux.intel.com> References: <2931539.RsFqoHxarq@kreacher> <000001d6376a$03bbaae0$0b3300a0$@net> <000201d63776$2d56f330$8804d990$@net> <4793937b5e2b8b03a1aa0943bb5f62d17496cfee.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-05-31 at 11:59 -0700, Srinivas Pandruvada wrote: > On Sun, 2020-05-31 at 11:06 -0700, Doug Smythies wrote: > > 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. > > > > OK, this seems a desktop system. > > > > 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 > You may not have > CONFIG_INT340X_THERMAL=y > > What is > #rdmsr 0x1a2 > > Try changing energy_perf_bias and see if it helps here. > Also if MSR 0x1FC bit 19 is 0, change to 1. Thanks, Srinivas > Thanks, > Srinivas > > > > ? "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