Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3134238img; Mon, 25 Mar 2019 04:35:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqytAXA27LFf4sEImavyb/LfD4mNCaQXsY+MwNgWNqKfSNbEpw6Pp/bc2HhR7op8nCVKmiTm X-Received: by 2002:a17:902:2e03:: with SMTP id q3mr24278711plb.166.1553513717166; Mon, 25 Mar 2019 04:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553513717; cv=none; d=google.com; s=arc-20160816; b=nWrnd1F6YOu7wa1gdoU7GciamnfFwKvqVfjwdRVvHmtStqs2KbonCk2J2fuCwws7EP xJ94D1AZnz/s2CTYev1rpg5qyW3ZVqP9w1CfOm+Wusb8omJh5ssI7+CskZuiDJMGXjce thPoat/RLlo5bY9klgqki3AqxesBC5FUuTkSEYZ8rQ9IfiwU0R1TCzqXNOkzblMY/JtI gUqwuTufTkZ23iuXgfbsHqQ2IeJU6YV11MVu78rZ+4TEA3rF4LlxXNJDA6iuK+s+yRZi aXpi6iWOBG50J7oT8Ea0oXO05BgT6XAoEza0b0X1A9g9VqYKpozoeZvhUMPxyQiy3Ip+ 7UPA== 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=icjgNOxhSK7v2Qt5wjRjWd2TnLg47U6UOFug1LLmZLs=; b=OhPFO0wOrwucQskOPK4HSuUL7XwDlRTv5vYbvS/U4u1RcgdFra0j79weMhQdMNudQf 80VH0gJjeAsO2A+rrfeX8DjswcQqrAaLwvwft6UqzsZoMeNnojPhZsmr1lKLr1GxsEda qUxag6QRFgsJMfomBaWCxm4NPVhwb8cq9awZsAGFCVTf6/H5JGIsnZDB6FDv77vtItr9 dJ6gkAcbcSTrkqkm2n9oRp4AnmTXoqsCe9XgF2RgJyjwDSNnzoqPUZz541qCpolcKH4N kU5MIpwUPsEEJraCPv9lnkC9q3K66bI2Lev3EJPlIoS+RTJB/4OIlSfvUbJouBhWGHmb VOVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=imDCoyYX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 139si13186975pga.219.2019.03.25.04.35.01; Mon, 25 Mar 2019 04:35:17 -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=pass header.i=@alien8.de header.s=dkim header.b=imDCoyYX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730972AbfCYLcT (ORCPT + 99 others); Mon, 25 Mar 2019 07:32:19 -0400 Received: from mail.skyhub.de ([5.9.137.197]:39086 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730941AbfCYLcN (ORCPT ); Mon, 25 Mar 2019 07:32:13 -0400 Received: from zn.tnic (p200300EC2F098000329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:8000:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6B8631EC0987; Mon, 25 Mar 2019 12:32:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1553513531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=icjgNOxhSK7v2Qt5wjRjWd2TnLg47U6UOFug1LLmZLs=; b=imDCoyYXxeRKemi6HbwA7yC1YTf2ARER1dDiOf7pz+yidXPFvRfoNFkAsdg73m1HLs6lP9 VfYLQ3APczUURTo79q7YRLaP4K5QwIkDL0wrxB9X1HB89aXDHL7K9SmsCNhRoRR01Fg1qm RexQoUbjpXj/yxZ1ORuhpR0vZ292I7M= Date: Mon, 25 Mar 2019 12:32:18 +0100 From: Borislav Petkov To: "Rafael J. Wysocki" Cc: x86 , LKML , Len Brown , Linux PM , Srinivas Pandruvada , Laura Abbott , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Simon Schricker , Borislav Petkov , Hannes Reinecke Subject: Re: [PATCH 2/2] PM / arch: x86: MSR_IA32_ENERGY_PERF_BIAS sysfs interface Message-ID: <20190325113218.GG12016@zn.tnic> References: <1637073.gl2OfxWTjI@aspire.rjw.lan> <1762575.ER2xjzr9E1@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1762575.ER2xjzr9E1@aspire.rjw.lan> 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 On Thu, Mar 21, 2019 at 11:20:17PM +0100, 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(-) Acked-by: Borislav Petkov -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.