Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp969440ybh; Sun, 19 Jul 2020 04:43:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuvMA7Lyogg7IVGX486CE24x03qlgqwtlcXtowXAe2Ry4ni9JW9lrQZEMo8EeXQZBXffht X-Received: by 2002:a17:906:7694:: with SMTP id o20mr16124654ejm.289.1595159035765; Sun, 19 Jul 2020 04:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595159035; cv=none; d=google.com; s=arc-20160816; b=UgI1kw+bwrTCZsqgYZ9QEZ0QhC536Y0EEED97oOQFtJcdIJY4Q58pBBi+rxuh4SwDA RExn0h+Q7pseHJEh58zPotliTmLA/A4CgGU4GAh0DYwOiq8P+4m/Q0zRxM1ObhAUMO53 yJpAQiis2CXg31OnHeuFbjpYtO5mt/DBQjTqpTKwLcq12IqosGN5o8Z84sgGFIz6RtAn ZpbK64zjmymJvu9CMGKmgZRukafO6kUSJz6VtHv4BlQhL+CBCU4xf9ZddCLCASgXUwBo 8pTM5y2QmjzFctysAq+4i/zJqWtdgrDFibH7WAsiovG/PIKMNuFZtyjk97MNamkH0gwv nq8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=qjnIe1TJ50gLn+p9kXcfYDqIZQuO/sCSJOJdD/xzjx0=; b=DRfMZISWBXkPGhQK6iFmQEj2iCzyFNrDD5oBhpuJetrCQFNZM12XcZt9QrqKNXsuCa FW+50m2BRaojvsnT7QWcA2Jwy5M152jv9MtYDDQ25QKnM44lCYIisAVrsWcnOq0C1Bhc GfBHGFAdS6GcQe6wUxcZ49kb8GuZ6drXuPSSFNZMb3FtItrslgPuMGHJS7zoxGTF5JPp q8wCidtVdNy1rv+gSb2yMp1ZQLaiKh/vjHRDS40wNZ7laKeaX2Vj71bCAac0Vz1CBiUx f1iaLJXc8vDLAb6w79P6Mx7FGHGCpP7m36Fp4BBLM49cHvcxRYnikFuRtozbPAzTcsOK 5eYg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r8si8923531edq.393.2020.07.19.04.43.32; Sun, 19 Jul 2020 04:43:55 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbgGSLnM (ORCPT + 99 others); Sun, 19 Jul 2020 07:43:12 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40152 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgGSLnL (ORCPT ); Sun, 19 Jul 2020 07:43:11 -0400 Received: by mail-ot1-f67.google.com with SMTP id c25so10125347otf.7; Sun, 19 Jul 2020 04:43:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qjnIe1TJ50gLn+p9kXcfYDqIZQuO/sCSJOJdD/xzjx0=; b=X6psrmqSkI7JFgKASbjz/rFUxtXiLUPBeOxXS9ZgO736vtLJJrNKGc5m638ITzi7Da 58zxYFcPEdGbtilVWS8Ks4TuB0+WbU8yvTdReNAlWZzgiYJxyyEiDevFaOCBeptYEJq5 ukwYDCbFVqMP/jMgcP1UXebs8nHa2xK74FW5FFwgcGedW32FG734dfcCgf1H2F6w/ABO k55aDjFmQdcunRiRguPH5BYCthZYTSpKNVRXEMXXkbQCPQk5A3vgg2QtjJNgsGQUKiz1 uT4x8v5rbN4gJmeXof4tjHLyqzuJ82VVCQCQkF4jpswYFoM0C+MWpQTlELQTqgD5HeE6 SzSw== X-Gm-Message-State: AOAM531fOjF/fYcSU/T7eXVqpCfgky+vNNl9OfdyF5FHlr6JNkpANS+Z J2zgRTfAXpt/Wg2ilH7O1FjTJSJJL7yez7oImDU= X-Received: by 2002:a05:6830:30ba:: with SMTP id g26mr15288802ots.118.1595158990718; Sun, 19 Jul 2020 04:43:10 -0700 (PDT) MIME-Version: 1.0 References: <3955470.QvD6XneCf3@kreacher> <000f01d65ae8$0c607990$25216cb0$@net> <001201d65c3f$6e2371c0$4a6a5540$@net> In-Reply-To: <001201d65c3f$6e2371c0$4a6a5540$@net> From: "Rafael J. Wysocki" Date: Sun, 19 Jul 2020 13:42:59 +0200 Message-ID: Subject: Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled To: Doug Smythies Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux Documentation , LKML , Peter Zijlstra , Srinivas Pandruvada , Giovanni Gherdovich , Francisco Jerez , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, On Fri, Jul 17, 2020 at 3:37 PM Doug Smythies wrote: > > Hi Rafael, > > Thank you for your reply. > > On 2020.07.16 05:08 Rafael J. Wysocki wrote: > > On Wed, Jul 15, 2020 at 10:39 PM Doug Smythies wrote: > >> On 2020.07.14 11:16 Rafael J. Wysocki wrote: > >> > > >> > From: Rafael J. Wysocki > >> ... > >> > Since the passive mode hasn't worked with HWP at all, and it is not going to > >> > the default for HWP systems anyway, I don't see any drawbacks related to making > >> > this change, so I would consider this as 5.9 material unless there are any > >> > serious objections. > >> > >> Good point. > > Actually, for those users that default to passive mode upon boot, > this would mean they would find themselves using this. > Also, it isn't obvious, from the typical "what driver and what governor" > inquiry. So the change in behavior is that after this patch intel_pstate=passive doesn't imply no_hwp any more. That's a very minor difference though and I'm not aware of any adverse effects it can cause on HWP systems anyway. The "what governor" is straightforward in the passive mode: that's whatever cpufreq governor has been selected. The driver is "intel_cpufreq" which means that the processor is requested to run at a frequency selected by the governor or higher, unless in the turbo range. This works similarly in both the HWP and non-HWP cases, except that in the HWP case it is possible to adjust the EPP (through the additional sysfs knob) and the base frequency is exported (the latter two things can be used to distinguish between the two cases just fine IMO). > >> Some of the tests I do involve labour intensive post processing of data. > >> I want to automate some of that work, and it will take time. > >> We might be into the 5.9-rc series before I have detailed feedback. > >> > >> However, so far: > >> > >> Inverse impulse response test [1]: > >> > >> High level test, i5-9600K, HWP-passive (this patch), ondemand: > >> 3101 tests. 0 failures. (GOOD) > >> > >> From [1], re-stated: > >> > . High level: i5-9600K: 2453 tests, 60 failures, 2.45% fail rate. (HWP-active - powersave) > >> > . Verify acpi-cpufreq/ondemand works fine: i5-9600K: 8975 tests. 0 failures. > >> > >> My version of that cool Alexander named pipe test [2] serialized workflow: > >> > >> HWP-passive (this patch), performance: PASS. > >> > >> From [2], re-stated, and also re-tested. > >> HWP-disabled passive - performance: FAIL. > > > > But I'm not quite sure how this is related to this patch? > > It isn't. The point being that it is different. It is different, but kind of in a positive way IMO. > But yes, that failure is because of our other discussion [3]. OK > > > > This test would still fail without the patch if the kernel was started > > with intel_pstate=passive in the kernel command line, wouldn't it. > > Yes. OK Thanks!