Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp257061imm; Wed, 18 Jul 2018 01:24:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdCmfY6wEC1u2SEUsxbioGxESYsUrMRw0FG9cMAyKafkTomB9FTMZvcaDqn0NIZFkK09tLg X-Received: by 2002:a17:902:aa8f:: with SMTP id d15-v6mr5069175plr.64.1531902299202; Wed, 18 Jul 2018 01:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531902299; cv=none; d=google.com; s=arc-20160816; b=bxM3YwbQh8pwpPqmxCtTIalQ0a3jKdNOSsU7ymbSdAKL/dPrSLqbhJGCprgm0QGI/r Td4YJrPZ4iYaqEnV6oUggVrfyyOzafddJapJfTbp0/pHPClqo/hVIpF3HElSQhFhO1CX 1sFpFgNSkiEe7bM25Mt+fthXbhz0q5JV3aEEozLhhn+jAyjUcF1sQLhC5lN6Hb+G9zpK 5Gezg5OZlmzfEx1/8EZly2fNcdetDmNVK+MCL3sDZWU3iFk0+sSRc1BmgyYb/drO0Cb3 Ul10s4Kla/z8/vmF2miSErmV4wFyRqdwRQMVAUE4vr9HHPXyI6IHFcMdf4OL/xltJ5k4 EAbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ERHY8RK/YpcSpvaKoM0yOyvjKjHHeeTtaHmhqiVJzYc=; b=WgZpwms+mE68A5u984TwO+uVLYMGYb6OyMhLCdC6/y3MDizCXiGDv4Y+VBSmJusXjN Oc1qjgwUmgtjCzIeU95wC1Mgz7G0p/vaI1p4BZME6k2XbDnC8KhK1BJ0lDtr7pkVNYNL mG6hs65jxLQj7M8A/cluPFGaUaNwuDU+EvnjgEPdVeAfFGW97X7aXNeww0c4NJcXEOEU AnLw93s6Sul/ZLQ0VZBVa5d1flpUTYbcGw+gFf7Vzac++UOEikVMSH3L3WRJsZ1clIfW HTyHMMtTPfiBYQjt6D2wftqA+xoMcma8mure0ttFHDOiMsvZkEY+jnIsM6NjdFwYODxo kxSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=otOZiMEm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k64-v6si2639443pgd.3.2018.07.18.01.24.44; Wed, 18 Jul 2018 01:24:59 -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=@infradead.org header.s=merlin.20170209 header.b=otOZiMEm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729095AbeGRJAy (ORCPT + 99 others); Wed, 18 Jul 2018 05:00:54 -0400 Received: from merlin.infradead.org ([205.233.59.134]:60962 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbeGRJAy (ORCPT ); Wed, 18 Jul 2018 05:00:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ERHY8RK/YpcSpvaKoM0yOyvjKjHHeeTtaHmhqiVJzYc=; b=otOZiMEmhuYuug5F3vE+ZDxqK vm16p/WnCJPtOri4CcNxDkesVKhNCC8lEy5kApIki6WaURmH+IaCiDiHUBIpjeOR89Iku6Lg5sDD5 g3CIzOIJVWLemBQjAuhlZp+iRYegfMLlEVxoD+Pr+GyGewbVF251gV+cFRUR/1HeRL8O1ECKU27gB tk31aqW9C/LGOzymxmHL3eCLyW+qGjsX5UYXsbMErDbDw6FM1vk8xH+L7ppq3u8psj5RDc3d9EAgo tD++nf7HcIWeQgGLA8QDzplnpzftfA8MSmiJUR973tD7yEzvYG0SNu2EqSy8LzDinw+CSRzuWNd4Z j/bU4Cd3g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffhkZ-00012k-5n; Wed, 18 Jul 2018 08:23:55 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 58CB920289330; Wed, 18 Jul 2018 10:23:52 +0200 (CEST) Date: Wed, 18 Jul 2018 10:23:52 +0200 From: Peter Zijlstra To: Andreas Herrmann Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Frederic Weisbecker , Viresh Kumar , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] cpufreq: pcc-cpufreq: Disable dynamic scaling on many-CPU systems Message-ID: <20180718082352.GQ2494@hirez.programming.kicks-ass.net> References: <20180717065048.74mmgk4t5utjaa6a@suselix> <306375154.NhdH6AhdAd@aspire.rjw.lan> <5423012.ZZnfdYddaT@aspire.rjw.lan> <20180717201323.6rwb4yklq46cmtom@suselix> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180717201323.6rwb4yklq46cmtom@suselix> User-Agent: Mutt/1.10.0 (2018-05-17) 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 10:13:23PM +0200, Andreas Herrmann wrote: > On Tue, Jul 17, 2018 at 06:14:58PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The firmware interface used by the pcc-cpufreq driver is > > fundamentally not scalable and using it for dynamic CPU performance > > scaling on systems with many CPUs leads to degraded performance. > > > > For this reason, disable dynamic CPU performance scaling on systems > > with pcc-cpufreq where the number of CPUs present at the driver init > > time is greater than 4. Also make the driver print corresponding > > complaints to the kernel log. > > > > Reported-by: Andreas Herrmann > > Signed-off-by: Rafael J. Wysocki > > --- > > > > -> v2: Rework the messages printed in the problematic case. > > I've tested this patch. Effect is as expected: driver loads but use of > ondemand governor is not allowed. Sample output: > > [ 40.757519] pcc-cpufreq: (v1.10.00) driver loaded with frequency limits: 1200 MHz, 2800 MHz > [ 40.831705] pcc_cpufreq_init: Too many CPUs, dynamic performance scaling disabled > [ 40.898353] pcc_cpufreq_init: Try to enable a different scaling driver through BIOS settings BTW, Andreas, is that BIOS option available through the normal BIOS settings, or it is in the "secret" BIOS menu that HP has? If it is in the "secret" one (^A IIRC) then we might want to explicitly mention that.