Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp441063ybi; Thu, 30 May 2019 00:49:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrNobnXHlPRWGuL9qZsFG3q8ntLXxme2X5Kw0tkT9MnzC18n68yBrtxDJDLzhQDKHAblQe X-Received: by 2002:a63:9a52:: with SMTP id e18mr2522483pgo.335.1559202566129; Thu, 30 May 2019 00:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559202566; cv=none; d=google.com; s=arc-20160816; b=eZlKk0z3pe0RcIyI0PM27FsTx5Tx3RpFvapkSzfB6F28Ejs4R+Rar3GxsoCfTIkYWc Wjhd7k2w1V2wtO8EwPMAe9STY17ME9VyG5sIi7VqeWwTdG2tkosXpRX2txxEyKrXMPeT Ncpdnl6rK8bZf9FmwNp2k9hYztENL62H2qmtj3Se+2zjZcDQ+3sPPOdbD3H2XddAgQCB vuoOusJVKmdkL61pCuhkQcPCYN0CrA8uyJmAxIidzanbJ12/MPOl5D3dYJnXBqrrgW5f mrgjWkAZMBVlf/92DLr5dBSJoZgHpeW2pfDh/4bH12SGExvGGsMPnPFfRN8CU/FkDZuv GYRA== 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; bh=VWZxqIM6YJjq4geM4D8XBcvh6oQTYQMH93V0r0IefE4=; b=h5CAhzX/jGMv6oB9L8HHHLmojpoYpknEnWZkBNP4gxqzvdFVVncbay40TmBCrC5f18 qg4UFj5Q3AXB58A4/axNlAGNy9LpYG6AZMphI99+IpwHMFQ/Wd/tgQQLVW5A1CQi7pVC 3psO8hm/ObHhgfDaCnxcAHxeOii19+NUgXFs1vubLuWlK0qLkOfs6m4TfMF8EC5juPL0 UKXs8EIpTtmQjJ92g+5GXi+IKznJlFC1tdkTxAN0RFdFtwazFiaNAxW7AdvUEPifjq8u VB2C6prUJiE7bKG1wCld7bFspZ88QUcDqKD4OR2VD/EQjyCOuynwWCE5PGvifJcz8nXD AO3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dXuxDv5l; 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 n6si2472245pgq.501.2019.05.30.00.49.08; Thu, 30 May 2019 00:49:26 -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=dXuxDv5l; 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 S1727731AbfE3HrS (ORCPT + 99 others); Thu, 30 May 2019 03:47:18 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:38476 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfE3HrP (ORCPT ); Thu, 30 May 2019 03:47:15 -0400 Received: by mail-wm1-f65.google.com with SMTP id t5so3155289wmh.3; Thu, 30 May 2019 00:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VWZxqIM6YJjq4geM4D8XBcvh6oQTYQMH93V0r0IefE4=; b=dXuxDv5lfPx49gKTlUmwPG4nYYEqz9PjkHoZWPEZY43ybVrY0sa4rAP0D7eI3iJOAU TVnsq7ursXJBrXz4rUlVabsqsbdDLMBtwmHCTA34kwwU0e8fQUIuLfk7BieXUf6n7seL ai+iGIwW77t2EEUPKNUa8K2jbGNiIgPx+E388c6WPOmzcKP6P5jRtpmyilP/v1wI9LSz 7q3PVt1pLUifpG4BoGdMBmnE/QJCJWzse3iNkDXkgCmOJRhXYdm0Bb20/PtaqEwAFtM1 YK+75955JdDSQEdmGrAM9uxYasz/TL9WR4Apm77wNyBGX0FemZL0QdKX2W82gWoJlw+r 6X9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=VWZxqIM6YJjq4geM4D8XBcvh6oQTYQMH93V0r0IefE4=; b=kN+t7Oj7E5XbawARTz6ArgK06GVKV7UemjrMXR3Rf1j7CHE+Uo4dMP2mSQBTAoPXl4 2mHpAuSmZpNhFGQ0x3+0dW0OUBS0hna3Bh8L91F6x8enRy+tUDkt/Lqx4co4mhMSvSyM NlKIqnubn0oSYl+YQKN/VwLrVN1IpZ6H4syrOa5k9Y/aKVXzW7e5eRPg2wsKutfE/M/M q3h+dZ7dKt6BpgrQFKHnHHYTk+Hjd82NPNqQS9mpKZkOhWU5dLdre+vewHH0i0SYLKRo o1+hhX5HEpJfx+mMRp0g3mcPRpQF0SPXCRui/rh1GJEOehtQ/TsBMJRJPogQHgCwdYDt mpgQ== X-Gm-Message-State: APjAAAWdhkUa/yI/kSBvY5Mr6aVda+gjOf3eRU5JC6TFKhmrJqYpWSf9 w24iA6FI7ZqyLX+QM39txUI= X-Received: by 2002:a1c:40c6:: with SMTP id n189mr1313874wma.118.1559202433979; Thu, 30 May 2019 00:47:13 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id u19sm5575133wmu.41.2019.05.30.00.47.12 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 30 May 2019 00:47:13 -0700 (PDT) Date: Thu, 30 May 2019 09:47:10 +0200 From: Ingo Molnar To: "Rafael J. Wysocki" Cc: x86 , Linux PM , Ido Schimmel , LKML , Len Brown , Srinivas Pandruvada , Laura Abbott , Thomas Gleixner , Peter Zijlstra , Simon Schricker , Borislav Petkov , Hannes Reinecke Subject: Re: [PATCH] x86: intel_epb: Do not build when CONFIG_PM is unset Message-ID: <20190530074710.GA68696@gmail.com> References: <1637073.gl2OfxWTjI@aspire.rjw.lan> <1627338.1fd8ofggM8@kreacher> <20190509174338.GA24432@splinter> <3844875.YPkTDDlcrF@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3844875.YPkTDDlcrF@kreacher> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 9ed0985332a6 ("x86: intel_epb: Take CONFIG_PM into account") > prevented the majority of the Performance and Energy Bias Hint (EPB) > handling code from being built when CONFIG_PM is unset to fix a > regression introduced by commit b9c273babce7 ("PM / arch: x86: > MSR_IA32_ENERGY_PERF_BIAS sysfs interface"). > > In hindsight, however, it would be better to skip all of the EPB > handling code for CONFIG_PM unset as there really is no reason for > it to be there in that case. Namely, if the EPB is not touched > by the kernel at all with CONFIG_PM unset, there is no need to > worry about modifying the EPB inadvertently on CPU online and since > the system will not suspend or hibernate then, there is no need to > worry about possible modifications of the EPB by the platform > firmware during system-wide PM transitions. > > For this reason, revert the changes made by commit 9ed0985332a6 > and only allow intel_epb.o to be built when CONFIG_PM is set. > > Note that this changes the behavior of the kernels built with > CONFIG_PM unset as they will not modify the EPB on boot if it is > zero initially any more, so it is not a fix strictly speaking, but > users building their kernels with CONFIG_PM unset really should not > expect them to take energy efficiency into account. Moreover, if > CONFIG_PM is unset for performance reasons, leaving EPB as set > initially by the platform firmware will actually be consistent > with the user's expectations. > > Signed-off-by: Rafael J. Wysocki > --- > > This is complementary to the EPB handling changes made in the current > development cycle, so IMO it would be good to do it in this cycle too > if there are no technical concerns or objections regarding it. Sure: Acked-by: Ingo Molnar Thanks, Ingo