Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2202436pxa; Mon, 24 Aug 2020 07:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn116B2r89JErl6vjHHzns4MnmqxduDUfJ1dbf3LOoqkS36iwUrCtS2bTKYaglKRHBpEQU X-Received: by 2002:a05:6402:60e:: with SMTP id n14mr5770983edv.29.1598281167394; Mon, 24 Aug 2020 07:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598281167; cv=none; d=google.com; s=arc-20160816; b=aGPN5hBdXaS01PFBSZ07r6tQjZpWqBJ+6NDTcJ6B3Ha+aCA7WJYTQaf9C3m2JhxwSb Ame1L++Frvo6fEYPQ51bKQaZcr1wzNf2YH/fHHkaFPIR1ajQPln7271EGr3vMrWa1Syb BCy+Uz4osdaH3jlxNYbP6Vity7+qj+n/ohzzjDnYZylnoZwXbLSBsaMXNKllZZcoFwt5 We7dQiQt3/UJd1MWYtPSYA4PUJluR8BnhBuOFDzzxMozQXdf2Ax2VOlBwWs4E6w14hMK qheXtCOsLKefYajPlsxXZBI3wfaayYQ7CUO7TLUlbMSjIjxyNBL5422FdOPERKnuioTD yEFg== 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=J3BJ7qX7HVt5vAQT7eANT29lUGuCe6JLwEzkmWDSZh4=; b=ZmpNS5tBhz9kqGgDDAJDIDB9QhMAVKm/awoPjtV6v6PHPHtQb9DEPq1jbvmkaWaIHU WsmN74Q/2Hp29mVvbMFP6L/jQovEvlKI0c9fyeJ4iYatpy2Ep+jjRvcOarfNl/00xrYg sMp9Nca4bTfOn18at1461LfAzHu8Nq/i28lTuO1+8Vn6JzuWFPKXRBzFfPiAWnqCgLOq p7QE7KDa0YVKt3o8Ao4BFZ5l7iu/whYHb039t2u7y3kZYxkTRmJh6YP8sw1WoIEtA/5j d4IO21OP+85u7T9fWingCnmj8t0Vj8Gg4BwllJZ/2eIYd9Lsl0qQMYcHG7g17bInv93F C3Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=aujTPU5q; 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 g16si6759741edr.534.2020.08.24.07.59.02; Mon, 24 Aug 2020 07:59:27 -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=aujTPU5q; 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 S1726026AbgHXO6X (ORCPT + 99 others); Mon, 24 Aug 2020 10:58:23 -0400 Received: from cmta19.telus.net ([209.171.16.92]:38679 "EHLO cmta19.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbgHXO5a (ORCPT ); Mon, 24 Aug 2020 10:57:30 -0400 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id ADs7kzTNopULuADs8k2802; Mon, 24 Aug 2020 08:54:58 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1598280898; bh=J3BJ7qX7HVt5vAQT7eANT29lUGuCe6JLwEzkmWDSZh4=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=aujTPU5q0SWxI9dXbNemMM2wZfAJfyN3DMY5OMLYBI4UVfmY1BviO/ySRAUq6eELC lO8z7h/3eCL31F6WR4LATLiru0AfOOE2o/uKp3RMPt8tqQURtDCCVsPgPEWNn423yY +rI27kp6tqriuYAIZpsKnChNvHSy1y+j4yjf7HQMOGv32AAxia7GxfG3JK1nitH313 SiDyP2RYw53Tx2hLdkYylUCjLLCU54SS91yTrdLMV9jEZsRFABrEq8QR0PV14RUqG0 NxFjlvoNpCfnTh1CmX2S+OwOGMuw/U4QMk92S9TGQcIWy9c7i2DgqhN0J1ODlSqyqd kx3VDQX/CEtpw== X-Telus-Authed: none X-Authority-Analysis: v=2.3 cv=T9TysMCQ c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=kj9zAlcOel0A:10 a=gu6fZOg2AAAA:8 a=cUYKOWGz9U0kq_ISi6IA:9 a=CjuIK1q_8ugA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=2RSlZUUhi9gRBrsHwhhZ:22 From: "Doug Smythies" To: "'Rafael J. Wysocki'" Cc: "'LKML'" , "'Len Brown'" , "'Srinivas Pandruvada'" , "'Peter Zijlstra'" , "'Giovanni Gherdovich'" , "'Francisco Jerez'" , "'Linux PM'" References: <3169564.ZRsPWhXyMD@kreacher> In-Reply-To: <3169564.ZRsPWhXyMD@kreacher> Subject: RE: [RFC/RFT][PATCH] cpufreq: intel_pstate: Work in passive mode with HWP enabled Date: Mon, 24 Aug 2020 07:54:54 -0700 Message-ID: <000f01d67a26$891b9340$9b52b9c0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-ca Thread-Index: AdYvk3X5bnwqpX6hRwi7ciAthJfS0BKjLYKg X-CMAE-Envelope: MS4wfOmjarjI9dsl1fU5e3KC3UMjpvV86vTn7EqucnGmaYrvCTJMINyW1WAcl5RIEfPIyez1VwmkpoBOhjwxq0cQooS8KsWwvbzM+Kimxtun2h0rx1xQ4S4A KatdgSXQGwJgJ4lqX8flOjl6mTJXwBh3gEkSXzly/uBvMpdKXOWjKm9w83w5GU/ZEGbJvXR+zOr3+KHXQO2HlMj+iO06zAneBZ+fMv1PnUJ0Rvo4k1AK8ldw l+I/6ND2WpxO1fFl0uVL7qwkP4OMzTF+waySQZC6KgL4nPPePJYpNfpYnvXI7zDucVrHCn/LCMuojwGa4D9iW5tO0rDo+Z9vP/fD6WzBUkcDHAvomsSbXR0+ pP8SnzMe0ATFLg0xqTwAxU7VQjAOzvy/JWNRLH0K+zJzj1cKPQj7O5/rsWP+JOUYmpnknS4E Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020.05.21 10:16 Rafael J. Wysocki wrote: ... > > The INTEL_CPUFREQ_TRANSITION_DELAY_HWP value has been guessed and it very well > may turn out to be either too high or too low for the general use, which is one > reason why getting as much testing coverage as possible is key here. > > If you can play with different INTEL_CPUFREQ_TRANSITION_DELAY_HWP values, > please do so and let me know the conclusions. ... Hi Rafael, Since my v7 reply the other day about results for 347 Hz work/sleep frequency periodic workflows [1], I have been testing at 73 Hertz work/sleep frequency. And am now testing this: -#define INTEL_CPUFREQ_TRANSITION_DELAY_HWP 5000 +#define INTEL_CPUFREQ_TRANSITION_DELAY_HWP 10000 Which shows promise for the schedutil governor, which no longer drives prematurely into the turbo range, consuming excessive amounts of energy as compared to passive without HWP. The ondemand governor is still very bad. The only way I have found to get it behave is to force max=min=target_pstate, in addition to the above. It will be quite some time before I have well organized feedback. In the meantime if anyone has suggestions for an optimal INTEL_CPUFREQ_TRANSITION_DELAY_HWP value, I would be grateful. Otherwise I'll attempt to find it via tests. ... Doug [1] https://marc.info/?l=linux-pm&m=159769839401767&w=2