Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp478112img; Fri, 22 Mar 2019 02:05:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+//m6BaWB43GEQ4X8cCLOe9su6I3TnSrcdzgTjdUHVERE5eIBqmarh3YnvJtpUHCkS8BD X-Received: by 2002:a65:63c1:: with SMTP id n1mr7741013pgv.339.1553245523064; Fri, 22 Mar 2019 02:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553245523; cv=none; d=google.com; s=arc-20160816; b=T6MBc6IUrFFcZSkIKGwI67abh5xE3Af/BAnNRAapZTfVJ8YUZIGv8qB+GWy9P38GdW +8ow61kpMftSGfACtBcgnJYE6W3JUxw9vFNvioCfPBcbTZfDg9rfyNX9hwsHaiXC1w8q 7YYH9yfX4KB9dvj1zao6F+iiKbhZqkyfbEyqnAo+44a8jx4kdrkY4g35GFIX3op0WMZN EaCcnukMK+JusoyEWIhf+5ckb4XoZ5IT0UbWEyVKVRsCHObbc+P7So4+4Xuidt2Z7R3d FyTIyDXW2IaX0TCCU3bnTNrA+81iPwx9/NLFa7mAAn4T9QTIBhlvTlpkacdkMb+xVcmJ kwgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ZTEACkctMgQ106l3m6aaY+qrnA3JzelFO9hCSdBQGU4=; b=uFnztVb09xy129nsxYqi1MAIL0csRPOkbaKCxrMEsjyIga+L0aOcNhw8af8kAeb0vd zcn9JJqTO7EicQcAGxgYkfP+MtR2Xkdo3o49HfPsF9zfHAHZPrNruVV+Fs/723EzbfAg VsvM5BF5Foa8GEy2NW+1P6qhxZDlbpu1opqLfAKi+wqt+CFhvwrVuGGD8Ek7QqhWS0aM Mm4peQNXw77ZchDndV1+XhYJcILAlB2IBpJQ+iWU1eYPz/3M3w2/KLTxgaR0jhlKGPJu 8OmyXqzjUf8P4iofOIENlqn7VZ7h8frOcdy3xEAq/bzD1YU/eji7ANA7DHdZGFQWt8ae nOGA== ARC-Authentication-Results: i=1; mx.google.com; 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 v20si6611717plo.49.2019.03.22.02.05.07; Fri, 22 Mar 2019 02:05:23 -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; 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 S1727823AbfCVJD7 (ORCPT + 99 others); Fri, 22 Mar 2019 05:03:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:55220 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725981AbfCVJD6 (ORCPT ); Fri, 22 Mar 2019 05:03:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8EF74AC32; Fri, 22 Mar 2019 09:03:57 +0000 (UTC) Subject: Re: [PATCH 2/2] PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface To: "Rafael J. Wysocki" , x86 Cc: LKML , Len Brown , Linux PM , Srinivas Pandruvada , Laura Abbott , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Simon Schricker , Borislav Petkov References: <1637073.gl2OfxWTjI@aspire.rjw.lan> <1762575.ER2xjzr9E1@aspire.rjw.lan> From: Hannes Reinecke Message-ID: <1fa29c73-c756-6942-76e5-0273efefd446@suse.de> Date: Fri, 22 Mar 2019 10:03:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <1762575.ER2xjzr9E1@aspire.rjw.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/21/19 11:20 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The Performance and Energy Bias Hint (EPB) is expected to be set by > user space through the generic MSR interface, but that interface is > not particularly nice and there are security concerns regarding it, > so it is not always available. > > For this reason, add a sysfs interface for reading and updating the > EPB, in the form of a new attribute, energy_perf_bias, located > under /sys/devices/system/cpu/cpu#/power/ for online CPUs that > support the EPB feature. > > Signed-off-by: Rafael J. Wysocki > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 18 ++++ > Documentation/admin-guide/pm/intel_epb.rst | 27 ++++++ > arch/x86/kernel/cpu/intel_epb.c | 93 ++++++++++++++++++++- > 3 files changed, 134 insertions(+), 4 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Mary Higgins, Sri Rasiah HRB 21284 (AG Nürnberg)