Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3300174imm; Tue, 17 Jul 2018 02:24:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeGMt54PC/ZJ35b8ABgYYciYwmIGAoCJpLMaNr0oq67QqpxvW0dRP6wml/QcOl0RWR/01lj X-Received: by 2002:a17:902:9689:: with SMTP id n9-v6mr887697plp.128.1531819478304; Tue, 17 Jul 2018 02:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531819478; cv=none; d=google.com; s=arc-20160816; b=ZY12dA+kjj3Nbp+sAOr69mSXQgeWDN9nhFiPYwguFVJSNmGH3fRhCsj/UoAZl+/j8C vjncJyVRvxFztw5q99NeESm6Un4IHbseWIVW7x8ba0KYYGVlLgtRAMPqdptSrF95PGiK y+gfwlLHz+v48V8Ia6de322ruYlF5w3ckRbUdI8GPRDuDixIU6RMKcPNuNBF99riqTSF sxqrSFKMR6ooaC6aFPIJMkQd3v4W/Z/opmt9vLW4ISfaMyaH1f/iuO+ZmLyvHygVh3d9 9jxrJlGMBspFadBI2CoHomtdBnAY4pekHMCpXbfgnwYGuv7FIAWL+wUi7rq+cV2o3DkQ o5bQ== 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=zV6nE8D5+Gj8JWPwt+5p70IzYfVEcG8kEaSvKiS4g40=; b=eLO5OLIvdvX9oQhGfDBXAGjnmPfaNl8OlXcDeZwxQf6PSJhi/sgcgBxLvF0KV2y9Ys EstboleGoeSlBWH4aGfDk5KTv7S9QAeHXZ92FqgVZNhutaqOpB3D64XrbjtivAR4Bt6Y xF1r6sVYg6CPChB8oEx/V6S8Juwk+8u99rwbd7TXfBY7I9Rvnl4fg7NoMo/HBXxARUYP g9iQ5iL9Z+9dmnZwydwNk9F1BeoAABsxsDIMT0j1kVycKwzyhOcqZKHeHRstFC8posRU r5QyTf2/DOH3glMYRXACo7SNzRlSj3VD6NKiM67AkWfH0wOPNA0IDTXUHuVPAxOnMELn TwqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TrivR68M; 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 f62-v6si504886pfb.218.2018.07.17.02.24.23; Tue, 17 Jul 2018 02:24:38 -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=TrivR68M; 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 S1729679AbeGQJzG (ORCPT + 99 others); Tue, 17 Jul 2018 05:55:06 -0400 Received: from mail-oi0-f50.google.com ([209.85.218.50]:45344 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728349AbeGQJzG (ORCPT ); Tue, 17 Jul 2018 05:55:06 -0400 Received: by mail-oi0-f50.google.com with SMTP id q11-v6so718200oic.12; Tue, 17 Jul 2018 02:23:26 -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=zV6nE8D5+Gj8JWPwt+5p70IzYfVEcG8kEaSvKiS4g40=; b=TrivR68MmgwzPGqKz1gM11CxKEof2kCzeVB6jeAW4tjmj4w0cEZA6wGlPeiOgWwRlv 4sNCHBti/W07thEjEbtolQ1PrPX06PCW1KSRUZCXG92CWDnE692Tgu7JfEXS46i1/o+n hvSdZGEPdZ/ZC2MfXRrnwLLu/lh50aEipfMxPR+eig5vZVpMdk9bu+YKpIrCyh4GlsVW PZUzBHDeKBhLveKpC67zegy6D0EL0oXDJpofc9zpPIQihze262HrLGR8hihikkgFWPXX c349sBFVb3aRn+SJODGphQgEdYCmk12EtqdziZ5UurazuJDfcSqXIVWjMA/96z4LbaSC gZFQ== 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=zV6nE8D5+Gj8JWPwt+5p70IzYfVEcG8kEaSvKiS4g40=; b=JJ6FxqvoauUu6n/mIDzy+Mu47N/YzQp9RgamSasfHtywr5Kj+GeM/SmXB0H4o6Ox+1 tbs/dpAS2HrdbQl9nd3A2NGD7nknPzU64ZnWx1iUnuX4/wb1uiBxS092K3mzuy5/fXc2 rgjtU8mtXXMoxLXKDE9SeyuL5PhIZgZ/9YjwJCxDTh8vP6IQN0dm8D5hzzWXkL5iJrNl tiYNDo0ntEK8NkjRPLKQOj9xJkbWcztu/h4dPr8cB9DC8HwwiL9wkeVyba70p81VwzVf 3id7by7Csn7VHD7Xi+u+i0Th7Q3llz0AAKXJh27JGPz1LuzPzQqLJJ94aHNdhFR+mkWT UP8g== X-Gm-Message-State: AOUpUlHbep/+vFX4Zof+cRvTJ9Q6Hns3Hhn6J3oK3W1yFFd4P7wRNpzI 7SQZE6s8NNdu8VHJaXXFY4tTXfg92TIsNNBj8k0= X-Received: by 2002:aca:ccc4:: with SMTP id c187-v6mr754204oig.282.1531819406179; Tue, 17 Jul 2018 02:23:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:63d2:0:0:0:0:0 with HTTP; Tue, 17 Jul 2018 02:23:25 -0700 (PDT) In-Reply-To: <20180717091152.l4ixicbp6imvqtsr@suselix> References: <20180717065048.74mmgk4t5utjaa6a@suselix> <20180717085039.kqxwbkgruhj5qxtx@suselix> <20180717091152.l4ixicbp6imvqtsr@suselix> From: "Rafael J. Wysocki" Date: Tue, 17 Jul 2018 11:23:25 +0200 X-Google-Sender-Auth: YUGCsPyTU1NVy21jIflvTMTfyDs 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 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. It looks like we also should look for the presence of the PCC interface in there. I can provide a patch for that, will you be able to test it? >> It should be initialized before pcc-cpufreq (according to their >> respective initcall levels), so in theory intel_pstate should be used >> by default on the affected systems anyway. > >> What BIOS settings need to be changed for that? > > Already answered in other mail. Indeed.