Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1710394yba; Thu, 9 May 2019 23:03:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfocq2ltzwnL1BgzobjXBMGJhv/6R/3A+k2+eMNn1pC5sGfPTyN+B5nKgkFXU8xFE3XFtF X-Received: by 2002:a17:902:2bca:: with SMTP id l68mr10292439plb.301.1557468189421; Thu, 09 May 2019 23:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557468189; cv=none; d=google.com; s=arc-20160816; b=nWoe20RDXg4nMT5cyZbLDXar4HFBxgyu2qoCauKud5GZrtT57rkBNxSJB1PB4fF8+A QjaXb1efWC19r9oH3Y5Db49EmhiUXw8j4evWErO96TNT7LIad7WKZpDZ5l75MSoMtFu0 QAndoImqHvVmF5s6NSwZYfRgxGAIAFMo1ZxB3DylfWt6FQKlkfJ79WVpuuS+I7Pj7LdS EwjYz9na1ry+VyHvvHyxanq531wnwPs0FDw9LnFDDPy7PNf9n1pW3s555oN1K9de39jF Uhg5msKMTPDHDgZ92X3Y6aDBMiOKLyXSr2t+DmFKQVdDiw2UZ7EPNLYZor5vxENa8oyH 5ngA== 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=24UQ3aORX5j8aOR7V6rEj+tz4OGv+eSvU3XitaWoirw=; b=K66rvAaG2N4op3pL77DBtb4MaiohA2POEbZwDIjihcJg2JGXFD3embFMEwX21KW5Eq IGEaY6ezXLwmcCHpZhAUutqv183F+SfbzqZVM9MIlEjBB9WrLdsIzPG6gxDM/6btB5TV 9DDvP027QRSfDAyU8y2zMi+ajbvFLZCEHFOBEzIXUkfp+DfKvchTrHmcSB+WP6ZELxTb oLMpGAYd4jCGI1+NYaZxcPU6qJULt4RR4XwfR/quwCgMSdBoMBvfa0ijqIvNizPKdBiT baX5GSWP1xiyEJH0nhkhlrVXfghqGApj0LrfZ9up/ElHQpMT+oMD0+0YJ2TXGZlPQRrx tY2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=PLkQDk49; 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 g69si5874547pgc.408.2019.05.09.23.02.52; Thu, 09 May 2019 23:03: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=PLkQDk49; 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 S1726960AbfEJGCB (ORCPT + 99 others); Fri, 10 May 2019 02:02:01 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42098 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfEJGCB (ORCPT ); Fri, 10 May 2019 02:02:01 -0400 Received: by mail-wr1-f65.google.com with SMTP id l2so6137841wrb.9; Thu, 09 May 2019 23:01:59 -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=24UQ3aORX5j8aOR7V6rEj+tz4OGv+eSvU3XitaWoirw=; b=PLkQDk49UcG6Hfu4ZW6ZXp7fs0J10AdhGAzgTSl7YVYRolrttSkj27qYa8S8D9Ic93 MAbA3EYcExvDlaDfD+yAkhCj2vwzfa+1BJ13aG7tgI2dhaAugNcu6OJe5A7NUOODCX6M 8BD0VKDcHfYiyT9aDXCP7wUgAEOLvJdN9ZgRMlHacf2n4kYDdtwcWCwBdLOkg0YzvuxQ GAmMhB4VTzzc0zmmDt/sbsJRDGvv0GLN3gs0nC2kvhzKNMRDM1/RtGscG38FkhLqb6yO IV4zRbtFrou/KZdRzYYs2EjPUHzE2yGokDVWCZ8FNoF78zNZFSEFBHik7V6O4npSR8pq 2VrA== 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=24UQ3aORX5j8aOR7V6rEj+tz4OGv+eSvU3XitaWoirw=; b=DxqLfkKnNtSMuPcgW/bYyumZDyZcYoMrctRHipEybVyWGKuuPl6+JURFmFYKCD8DfH 6/ja2UeqZlaV8vHGQwbsZ2UmuvT7lYaQTAj3tYDhj9gTH+I6yMk8H1bNLP8AlHPODgU6 gkuU78WY+femtMz2BsOIigHuZPjP+BXYWtoHzeYGHAhxGtqUCyoSMm64Pa3Bgxe39i0E ILPEV/2A41INDGv7AsrNRYQf8KYX0jcyuPxsaufZAAwpz/IY3Kag97oVmrqjgPUQl+EA JwoFBZ1gHGl9svt5XdW0lrX/QkrQGlqq7JQAxzrlUIosyJiDmGT69nvQllZePzc/ntMQ /YMQ== X-Gm-Message-State: APjAAAUqSy4O9YMndQs7oFnBDqmzpTUpNGcc9x9fwK8xtYs9SvLLuC55 q/sep9I03gqcFQe/MyojCZE= X-Received: by 2002:adf:dd09:: with SMTP id a9mr5853514wrm.228.1557468119225; Thu, 09 May 2019 23:01:59 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id c10sm10232527wrd.69.2019.05.09.23.01.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 23:01:58 -0700 (PDT) Date: Fri, 10 May 2019 08:01:56 +0200 From: Ingo Molnar To: "Rafael J. Wysocki" Cc: Linux PM , Ido Schimmel , x86 , LKML , Len Brown , Srinivas Pandruvada , Laura Abbott , Thomas Gleixner , Peter Zijlstra , Simon Schricker , Borislav Petkov , Hannes Reinecke Subject: Re: [PATCH] x86: intel_epb: Take CONFIG_PM into account Message-ID: <20190510060156.GA20852@gmail.com> References: <1637073.gl2OfxWTjI@aspire.rjw.lan> <1627338.1fd8ofggM8@kreacher> <20190509174338.GA24432@splinter> <3431308.1mSSVdqTRr@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3431308.1mSSVdqTRr@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 b9c273babce7 (PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs > interface) caused kernels built with CONFIG_PM unset to crash on > systems supporting the Performance and Energy Bias Hint (EPB), > because it attempts to add files to sysfs directories that don't > exist on those systems. > > Prevent that from happening by taking CONFIG_PM into account so > that the code depending on it is not compiled at all when it is > not set. > > Fixes: b9c273babce7 (PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface) > Reported-by: Ido Schimmel > Tested-by: Ido Schimmel > Signed-off-by: Rafael J. Wysocki > --- > arch/x86/kernel/cpu/intel_epb.c | 22 +++++++++++++++++++++- > 1 file changed, 21 insertions(+), 1 deletion(-) Acked-by: Ingo Molnar Thanks, Ingo