Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3351645imm; Tue, 17 Jul 2018 03:25:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe31tBdxVPUENPis6HJst5+HqbXv4qnyYW4Mp7Tbze8uNtIt/GDXSchq6ZTRm/XhDsRVjaj X-Received: by 2002:a17:902:1682:: with SMTP id h2-v6mr1023420plh.327.1531823127425; Tue, 17 Jul 2018 03:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531823127; cv=none; d=google.com; s=arc-20160816; b=vSFrA2LZRCTng1MAUYpKq1FWB8L+ft+S7Znfy/Ri3XJloZ4vQ5goRMI1siqKkMLy63 IsD0Ll+S4b6Li2fEKhltf/HTDaS5TYV2jHJ+7czneEUzyzzTTnlkGAj2JGUaQVK3a8LT bKvI3rGsIwRy68bRc3/YP+IgNqrROGG/nz34qK3tcpL5r9dOaK5DmwZIxs4fctrM8UM4 fRNpp0bzO0afQqSy/Nidqn/ysJSel8U6Kyo2SyRAhMEKjcQys5O4JgSFfueK76Owa2+r rjlWMbaYV+JQvSNLqB4ab3jXaG12aWn9xaiwpIZWqmMVHxOlOo2M1wk8Qn/+qkP02u6R HF8Q== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9LvtM9vBWUmjZKWE2Ji4MQjdGC7SdL4mvtTtqv6dHGY=; b=QDElPm4p6ePNi1ZVYrTIp3a/N4xs4E/YGFtEY3259WgTDfCvrfJ/THxLy3sBvkby1i rIjnjbGY85xEG3Kg8jAAN7o5lesBL0Cb56fmB4ZT8ms5v2OXJ5nDRAnc4sLjpwJmXVRZ e0Cjn1cwnpPV4fpSDHRTahKQbGNtJ3/k+GMcnWeJjAaOAUImZ5BiLk09054yPc8rmeMx jTQun28uh00tLyndFHGcmofRwXiFZOvmuP1KwyfzzdVQPuWZ8B4rBJ+bHMrDEhb62t7O v5gq86zNLajsiI8c8XTkbuvrKQC7mVjychsRC1NvrkA44YvguoSfAI9cYEipljJyFpqz 158A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=R5zmrpYB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si572194pgg.538.2018.07.17.03.25.12; Tue, 17 Jul 2018 03:25:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=R5zmrpYB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730123AbeGQKzr (ORCPT + 99 others); Tue, 17 Jul 2018 06:55:47 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:39118 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729707AbeGQKzr (ORCPT ); Tue, 17 Jul 2018 06:55:47 -0400 Received: by mail-oi0-f45.google.com with SMTP id d189-v6so1021577oib.6; Tue, 17 Jul 2018 03:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=9LvtM9vBWUmjZKWE2Ji4MQjdGC7SdL4mvtTtqv6dHGY=; b=R5zmrpYBEl/WnYd1NFn1ypIF5r5WzV1nsTGRCF1ShbD6iztjUPRAx1vD3tl1N0UKGu 5F6A0xjmvJYNhABYBjGQzt8tdigUzBACNz4VZK76NXc11jP7T8RMAFWIrTAVGFqUm1/x eKsnY0FNOJGzYj5PFZOVO5g+ISts1r2N7Jw9FGRP6pwzzadHasOe0orbVFhL1ZpK785j 3YHf1ShysmCqTSwqBrWZLXc7AmJ0iEMAddG9pKTssXcNJ7FJQLsVNGgb/cGEJb0MZPDn VsxbC4xWseBSYIVUlTp3mVT3L1/mf14sjB0diWtxIdrgjUQ0mmy5/iU7T8FrS7ThAAw+ hV0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=9LvtM9vBWUmjZKWE2Ji4MQjdGC7SdL4mvtTtqv6dHGY=; b=FE6R/pUxU74WtEyKkMyH7lCzZFH62yJBBGjytn50OCwIZxQvABA5UBpZsoXJuMYKKs imWTOQYOdj2CyZEu5SZsvcNUqB/iwshxOFurDto2eDAIa2qiNhVx357M6K/TTdwONuMq 6UmorDD5FPGLBqY/mUGciIfw/my4EOkZ3NGD+Yj5tXP5aA3ftpBOUzpxlR/5E2pEUhjZ JOzCwOrsAD1vs3Hy3dNYxuCtuPGCkugeY6FbBr4tLM75OXZ/lAp1JY3ttzh5WMYzYNI3 nPNwphFH4hcqYilfzDIkKzsLnuSJONaCfDX2CgWPQYyc/L5wUniB9+Boa0+uROiA1V1C D7Mw== X-Gm-Message-State: AOUpUlEEIzbIVnxXIH/f1Xv4f8TvDWVn4f/p609ack3f3eNarZtcJh4m JEwf3fay3YOR3hShZ7cNB1GFmFmKsDAD7vkaIKw= X-Received: by 2002:aca:ad4f:: with SMTP id w76-v6mr1033893oie.233.1531823031542; Tue, 17 Jul 2018 03:23:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:63d2:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 03:23:51 -0700 (PDT) In-Reply-To: <20180717102136.snayvzmv2h3dcwiq@suselix> References: <20180717065048.74mmgk4t5utjaa6a@suselix> <20180717092721.onkaf3qsu7te6syi@suselix> <20180717093620.ym6phfmr3rfvsxyo@suselix> <3724084.DyflrVPzDS@aspire.rjw.lan> <20180717102136.snayvzmv2h3dcwiq@suselix> From: "Rafael J. Wysocki" Date: Tue, 17 Jul 2018 12:23:51 +0200 X-Google-Sender-Auth: IDyg2PMHEiEFVq8KPiT5TWWP-4o Message-ID: Subject: Re: Commit 554c8aa8ecad causing severe performance degression with pcc-cpufreq To: Andreas Herrmann Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Peter Zijlstra , Frederic Weisbecker , Viresh Kumar , Linux PM , Linux Kernel Mailing List 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 On Tue, Jul 17, 2018 at 12:21 PM, Andreas Herrmann wrote: > On Tue, Jul 17, 2018 at 12:09:21PM +0200, Rafael J. Wysocki wrote: >> On Tuesday, July 17, 2018 11:36:20 AM CEST Andreas Herrmann wrote: >> > On Tue, Jul 17, 2018 at 11:27:21AM +0200, Andreas Herrmann wrote: >> > > On Tue, Jul 17, 2018 at 11:23:25AM +0200, Rafael J. Wysocki wrote: >> > > > On Tue, Jul 17, 2018 at 11:11 AM, Andreas Herrmann wrote: >> > > > > On Tue, Jul 17, 2018 at 11:06:29AM +0200, Rafael J. Wysocki wrote: >> > > > >> On Tue, Jul 17, 2018 at 10:50 AM, Andreas Herrmann wrote: >> > > > >> >> > > > >> [cut] >> > > > >> >> > > > >> > >> > > > >> > On balance before this commit users could use pcc-cpufreq but had >> > > > >> > already suboptimal performance (compared to say intel_pstate driver >> > > > >> > which can be used changing BIOS options). >> > > > >> >> > > > >> BTW, I wonder why you need to change the BIOS options for intel_pstate to load. >> > > > > >> > > > > I think this is because of (in intel_pstate_init()): >> > > > > >> > > > > /* >> > > > > * The Intel pstate driver will be ignored if the platform >> > > > > * firmware has its own power management modes. >> > > > > */ >> > > > > if (intel_pstate_platform_pwr_mgmt_exists()) >> > > > > return -ENODEV; >> > > > > >> > > > >> > > > OK, because of the "Proliant" entry, right? >> > > > >> > > > So it looks like we have an issue there. We find the entry and we >> > > > look for _PSS. It is not there, so we assume that the firmware is >> > > > expected to control performance, which is not the case. >> > >> > FYI, there is another BIOS setting on those systems. It's called >> > "Collaborative Power Control" (AFAIK enabled by default). >> > >> > Only if this is disabled, firmware is (alone) in control of >> > performance. (And of course in this case neither pcc-cpufreq nor >> > intel_pstate will be loaded). >> >> OK, the patch is below. >> >> First, I hope that if "Collaborative Power Control" is disabled, it will >> simply hide the PCCH object and so intel_pstate will still not load then. > > PCCH is hidden in that case. OK >> The main question basically is what the OS is expected to do if >> "Dynamic Power Savings Mode" is set. If we are *expected* to use >> the PCC interface then, intel_pstate may not work in that case, but >> I suspect that the PCC interface allows extra energy to be saved >> over what is possible without it. > > I'll test it and see what happens. Thanks!