Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp377724imm; Wed, 18 Jul 2018 03:53:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf21t396/G5kTjmnfAqOUs3cFE4+sLI6tFnBSL4BKB0i6tHE1S/+vL9gc1eYILi3rO5wQKc X-Received: by 2002:a62:3d86:: with SMTP id x6-v6mr4718232pfj.192.1531911189537; Wed, 18 Jul 2018 03:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531911189; cv=none; d=google.com; s=arc-20160816; b=RQ8LflgrLZ4mfjza+bsXIpihn5eNTuHEjWgI0lfFLLvVQszhLBhLhXjzApEjFg7TpI 9drIIYn8eZ4L66g84RWA3nQAN4jGSTlx0G10LPAmVPEixxQi9A0kafs4tSdBGdlXL1HB 5WdIO6FnJJdDa6LmCc/kwiemYlatHkfir/qMt12oK1Z1lQ4TlHUYgd8wGGMCoQMf/bss TkrCRLdasd8AjSK252x6baj1b/rw7Uy149WRNKTOLphrqVNQqPDIEndBs6qmHxxdUOoI /KZBtywJfMPXoUvm6Mfwv6CCL3AwObztaD1l4VJ6cO3IcGlnKMsX5IUoFd+Nrj3qbAJB XTYA== 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=GKQuPuTadR5YjT5DkpjNdD7WSwHDSVQy8MG0OdYR1b8=; b=jOISB1sLBCu3AqpG0mR5imNvlIdC7DS8APhKhCUpyGesc7j4Wfrb5dQ/bxIL9UqF8p 4y0yQGf2REoDIiH34K/MK3FaW2RXMAbdVnAIw9A41K2fvXIqtAY1p5MEZJTpyzPk//V8 Dt/K+3Icpk+D/dz4HeXXPHNOzVc6RUPIMRg6/c6fvOoTin6mHTCO9VqTLMhE+Yaow43A 8uMfsWEhjRFZU1XHX5++oCLhLDEBTJtBBMalNTsqAUqsvfTB7nTg9ebOzMpMhiq+YMn1 E9ghSv5L8YRqo9JfcW/tg0jNrxwhKjTBXvDsCJYPI+gvGgHk/68NsKMWH07d905D94Lf sqoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hHc5N6SA; 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 s10-v6si2949571plq.32.2018.07.18.03.52.54; Wed, 18 Jul 2018 03:53:09 -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=hHc5N6SA; 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 S1729700AbeGRL2y (ORCPT + 99 others); Wed, 18 Jul 2018 07:28:54 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33422 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726968AbeGRL2y (ORCPT ); Wed, 18 Jul 2018 07:28:54 -0400 Received: by mail-oi0-f65.google.com with SMTP id l10-v6so7928291oii.0; Wed, 18 Jul 2018 03:51:35 -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=GKQuPuTadR5YjT5DkpjNdD7WSwHDSVQy8MG0OdYR1b8=; b=hHc5N6SArKO6LjL08xV40AVchvuUSiDXr5PcYSA9nQ+i7IXygHhdXpleULauA848Db 2vhPcK1J5kXn7xrTTaNb+dg7f5LbQ4qdG//qQMhoRJIj2pHAi8bg1qGiiuJaMYjKe30z 2DsjOm5zjkEQi8Pxs1++awx4GeHpoq+lU9dGT2iQwvzGq4uerFPp/cVHpQZqU/Hh3h0V VoiyANNBhwxC5j075Vy7ggb47Wg6we8fcCNCG3EdK/Yo2wJlecy1gTlSVBLTw+byo+pA 9Xa8Kc9BoI8HrucrNi+hg5JqThoykA/3GvQjTzPURAC2BjywLVlifZ5UefW+QAgE9bsI QNgQ== 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=GKQuPuTadR5YjT5DkpjNdD7WSwHDSVQy8MG0OdYR1b8=; b=ODqnaQkTTkIEsOnHej0XXxfNZAegIKUJib8qtpdFiqb5pfc/tEbLCdLPtnqe0V0hwl Vw2EKAC4SzBC+61XSBMNCOec03oFcwT9qNd5H936s+LgfM3edBdU15jp/Z1zXiWZE/me ZfUVOgmixImNb2X/1YpwpJOX8Pv0Ef/30H0rzALZ4kRBfWpLoe8m4cub54VNOeSVfQHz 75nGuJa48hZr0fAGvojrxAKYgGIxNdslxx9iAP3a6AjKo1vNoFqqV51rGFw/cwYQWCjs n9JC7TRgXOGtYpRbZA8PKUnYDwZm/ZzX5GA/yZhBjHyzcqKh0gAM2pK/8O6JZG+UHjuB NDdQ== X-Gm-Message-State: AOUpUlHNzMxSYAUSlSmEOXXpWH8EtcXuslxKxwVYw+nkU95xOEHrx1A6 FhTvEQG6y8ePRyHddi1C9TM2giAKZEEAG4yzkQI= X-Received: by 2002:aca:5b0b:: with SMTP id p11-v6mr6284642oib.116.1531911095042; Wed, 18 Jul 2018 03:51:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:63d2:0:0:0:0:0 with HTTP; Wed, 18 Jul 2018 03:51:34 -0700 (PDT) In-Reply-To: <20180718104300.dwgbqbnllvhwzrea@suselix> References: <20180717065048.74mmgk4t5utjaa6a@suselix> <20180717140336.ayovaz4ksdlak6bb@suselix> <8115130.Fhkpr82c7G@aspire.rjw.lan> <2386802.jRaeHeNqoJ@aspire.rjw.lan> <20180718104300.dwgbqbnllvhwzrea@suselix> From: "Rafael J. Wysocki" Date: Wed, 18 Jul 2018 12:51:34 +0200 X-Google-Sender-Auth: 7N06t_PIqvmwo2Yxr7KrJvrL8qI Message-ID: Subject: Re: [PATCH] cpufreq: intel_pstate: Register when ACPI PCCH is present To: Andreas Herrmann Cc: "Rafael J. Wysocki" , Srinivas Pandruvada , Linux PM , "Rafael J. Wysocki" , Peter Zijlstra , Frederic Weisbecker , Viresh Kumar , 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 Wed, Jul 18, 2018 at 12:43 PM, Andreas Herrmann wrote: > On Tue, Jul 17, 2018 at 08:06:54PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Currently, intel_pstate doesn't load if _PSS is not present on >> HP Proliant systems, because it expects the firmware to take over >> CPU performance scaling in that case. However, if ACPI PCCH is >> present, the firmware expects the kernel to use it for CPU >> performance scaling and the pcc-cpufreq driver is loaded for that. >> >> Unfortunately, the firmware interface used by that driver is not >> scalable for fundamental reasons, so pcc-cpufreq is way suboptimal >> on systems with more than just a few CPUs. In fact, it is better to >> avoid using it at all. >> >> For this reason, modify intel_pstate to look for ACPI PCCH if _PSS >> is not present and register if it is there. Also prevent the >> pcc-cpufreq driver from trying to initialize if intel_pstate has >> been registered already. >> >> Fixes: fbbcdc0744da (intel_pstate: skip the driver if ACPI has power mgmt option) >> Reported-by: Andreas Herrmann >> Reviewed-by: Andreas Herrmann >> Acked-by: Srinivas Pandruvada >> Signed-off-by: Rafael J. Wysocki >> --- >> >> This is a replacement for https://patchwork.kernel.org/patch/10530091/ >> >> In addition to the intel_pstate changes in the above, it also >> prevents pcc-cpufreq from trying to initialize (which will fail >> ultimately, but may confuse the firmware in the meantime). >> >> Andreas, please test this one and let me know if it still works for you. > > Done that (with system in "Dynamic Power Savings Mode"). It still > works and system was stable. Thanks! > FYI, as a sniff test I've run a kernbench test. I now repeat the test > with system switched to "OS control mode". Just in case -- if there > was interference with platform code while system was in "Dynamic Power > Savings Mode" (significantly affecting performance) I might spot it > this way. I'd rather not expect performance to be affected by this, but power very well may be affected. Anyway, good idea! Cheers, Rafael