Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp9584ybg; Sun, 31 May 2020 15:02:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4/m+tDs2MqrfAl2oRERzoL1Z0KH158DLi2ntPz2j7aQjSCj7Dm7aOrcxvWS9689YlswQ7 X-Received: by 2002:a50:eb0c:: with SMTP id y12mr18355505edp.165.1590962568265; Sun, 31 May 2020 15:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590962568; cv=none; d=google.com; s=arc-20160816; b=RcnfQ9qvz6I2D4Z52NLpeuieWyI/uY6LcT7iZdLXe9nL82L7MPOccsbzk5ubiSZIPN 8TudmVoIEFQQUV/pChia+KPgPZqz6eYx4IqU11JIV31ur8Yk7MJVP8SyHWA5Yi3WLC15 7rvNUDtXnB5IcLlNcnb3Rjt3BVu25Vo4jdxO9KfaHk51pUrt3FXqozh/ZCymSp4GjwVJ 0Lch8VENdetHyhjz5aLTZmH85tSdJ1u9DO/SeBygBoaeI8zk94u+09BR1pejll1x8D9/ BuHozKO5mBILlO5eHUCHZoLV1BUHsKQVosu6TVCLeHQUG9nWE4NMK4JaCHqlVgxZx9eC WfsQ== 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=hZ+hhNier4XC/8ApzoxNCakA8kucvvlqVc02iJbZ+a0=; b=CHyLGmprTiXseeaVAFd2j3CKCOUx6RJ0q0DXi3Kjy4wE+7280oKoPi24V4zDc4PylA kb1lGsPtKNSUAJfjwNFZxL8LMW0jyw27vO7kOtiiClegOt9gaRVu0Kc3+gC0e0k4Pzeu 02oAZZHMoawjKcLQcYKIn5YtJnevz3VMR5864ua3S/rhqBogwt8ZbT5HXHaU+nOSBPod q1W8mKFXUylbblmuSoGCiAjQpCvNjsFoFfSsnbe7FyQIBNErecNieSCcbrW9rBtOfNbe jb3L+x51SnvfXFZ9TWQ/H3m18N7SwPKK2nHwl8Et9vjaHQHJJ5Qx3m6fGDFZ9wuW4YtC zVOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=mc9J5Vtt; 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 t25si4602551edq.407.2020.05.31.15.02.10; Sun, 31 May 2020 15:02:48 -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=mc9J5Vtt; 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 S1728437AbgEaViw (ORCPT + 99 others); Sun, 31 May 2020 17:38:52 -0400 Received: from cmta17.telus.net ([209.171.16.90]:59700 "EHLO cmta17.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728390AbgEaViv (ORCPT ); Sun, 31 May 2020 17:38:51 -0400 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id fVfLjawOZmjwffVfMjxPtj; Sun, 31 May 2020 15:38:50 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1590961130; bh=hZ+hhNier4XC/8ApzoxNCakA8kucvvlqVc02iJbZ+a0=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=mc9J5VttWVXGnXJuxhhKjjlIVALj2VD0hRD6ZXcHggdc+YykWgAjs6vZGAZ6ZjHnU tV4PY06igY9a4Ni1GPpSnvw16XNklIcLkfxiErFi92JmabPo62fBn7LjJQQW5TD2um ZkUCpVRUTvv4ojwR2mVkmwwNqw9PBYJjEB6QHWRskJw4h5km1AceLbEqpHvCxB/t7P nC49SOEr08c7XsHNszMDvHt2Ai+Z9dbedvzhkSWi8ZJftp6cFedZzd9OI3qv9Yg/w6 3BBIEZuw4hBl2eyOy+3Hrs4fPdeiLWnEkNvOob7CPbwsYKharZDSIALt145VpxKLnt dQ/Plq8urSVFQ== X-Telus-Authed: none X-Authority-Analysis: v=2.3 cv=ea5DgIMH c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=IkcTkHD0fZMA:10 a=KQQmxn6s5cfZ4KPhJ9QA: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> <000201d63776$2d56f330$8804d990$@net> <4793937b5e2b8b03a1aa0943bb5f62d17496cfee.camel@linux.intel.com> <0c2c0962167ecb854e962ed7e92991712f9db6ca.camel@linux.intel.com> In-Reply-To: <0c2c0962167ecb854e962ed7e92991712f9db6ca.camel@linux.intel.com> Subject: RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Accept passive mode with HWP enabled Date: Sun, 31 May 2020 14:38:45 -0700 Message-ID: <000301d63793$de8a3cd0$9b9eb670$@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: AdY3gbdTaHrTgQCKS8CZRRAe2de7HQACG01g X-CMAE-Envelope: MS4wfOFIoj/LUQLGIyTEwPUv/mgpJ8bclfelwgSrNTlOd0rwmlg0dnqE+7R9vjqGkz1AmUY3rCv11O9YmsMHGIh+wZqkc63h/Id5nboVFZyHrPU3lzUrxNfo FyPE/YwhpD7tKtql32nGISlfHDgubJs3o+W5L0ls4+hywtl3prQsaY3fq+Cwvd/tJH2ZjPPCBKBiB7Vvl6kL4Obvk5gthr9jMzegHeDgAlQjNBESLOSLoRDP USZeRKVje4pX39BIqAS/a5SjIC4R2gMSbx622RY23bW81wMumDlXb/1xMMrRFtEWMMdSas3y+Ro+DjQ+W9e1kgQMB/nMRq9N6AKiAYNWErYClXb0zFan+hWk oVUoBshmUnpqgJUiae96iqch0nZBodX3Nz2M24NtsxJSrayKqKjyNDwmdy2ucfEW0SPKY8xU Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020.05.31 12:29 Srinivas Pandruvada wrote: > 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 I have: CONFIG_INT340X_THERMAL=m >> >> What is >> #rdmsr 0x1a2 From the turbostat startup spew of stuff (also in a link on the web page version of the e-mail): MSR_IA32_TEMPERATURE_TARGET: 0x0064100d (100 C) Or manually now: root@s18:/home/doug/prime95# rdmsr 0x1a2 64100d >> >> Try changing energy_perf_bias and see if it helps here. Yes, that is a test I meant to do, and should have done. No, it doesn't help. >> > Also if > MSR 0x1FC bit 19 is 0, change to 1. > Ya, I have always found documentation on 0x1FC somewhat lacking. Anyway, the bit is already 1. Is the bit EE_TURBO_DISABLE? Anyway, I tried that bit as 0, and it didn't help. > Thanks, > Srinivas > ... Doug