Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp158104ybh; Tue, 14 Jul 2020 21:27:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2+nutb7BWHbrtrpKTIfjVpSzRHm+RkNZr4s6y6AJVnRA4XRoFcDjqEW7pRVmZoqYtHfyR X-Received: by 2002:a05:6402:14c1:: with SMTP id f1mr8007391edx.342.1594787277631; Tue, 14 Jul 2020 21:27:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594787277; cv=none; d=google.com; s=arc-20160816; b=Bb/QA5Ej+FT/9gRHqkjZLKnjgY+5eHQ8Psfk6n13YtVdJCTbEONbS+n4NF4M/NN6Wb vv8hZZ71ZUwBQmYmY+y4gnlK+R6x6ae7Yizhv06XxDrx5gCsF4hm4bUs0zhf/AJiUB3z d/TgftmY3kVLuLjkS3REU6/KdFusCrdt10d8bN2MnnxEdDkkWqaaqVpjoFBjRYCcTeDZ PXUptTPr6GCZpDyBXj4gZp9DAEdq3ACxJz4/LZWGu2vxNlsYEgWIXbnDmHeIU2xQrSaJ 2X2Ntv7iDsFdm8W7T+md588sSnargw0hZ17TPbCrwEDUfpc8yN7geyVS1eM8dBl+dZhM vq2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CiZcICc9wZD5zsp7FjRnYyHRTcDwcJ2rY6S08MFi6gE=; b=yPzs5JqiER2g0/90ztgw43znDPjq5oPuYpknD31G7Wtv2f+stNCx6hydZfANGjXjuE 5aBVZYag5p6+zM0L4sIZG+sCCWthYLYqCd4kkgQBz/5wu+qm5LYYIWZmeqbggxbAFjq4 Rwcn7pQA4G0fPaWUfl9T3H19QPzfFyVqVJ4GRrOoNxXcEpXXUNDa38ohGdROFWJgTWXn l0C0kaiN1PQYzTFOEWXMUv8Vw0W2zEo3/lN6jGTw8MDPHWUgk0FvF59gcMK8uEFh7ahr 7kw8OT88EQQ+/empmb6/nzZn6W08MuwYleDEzJVFJlNAymdRlHQ/mdqeVSQasKZYiZjK NxHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gbYAiJuw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id p2si516778edj.167.2020.07.14.21.27.32; Tue, 14 Jul 2020 21:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gbYAiJuw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725977AbgGOE0r (ORCPT + 99 others); Wed, 15 Jul 2020 00:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbgGOE0r (ORCPT ); Wed, 15 Jul 2020 00:26:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5212FC061755 for ; Tue, 14 Jul 2020 21:26:47 -0700 (PDT) Received: from nazgul.tnic (77-85-108-148.ip.btc-net.bg [77.85.108.148]) (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 A2D5A1EC03CF; Wed, 15 Jul 2020 06:26:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1594787203; 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=CiZcICc9wZD5zsp7FjRnYyHRTcDwcJ2rY6S08MFi6gE=; b=gbYAiJuw92F8awLzJrsH7FNd3JfJGdCdjzUwzQIQdT1cC1e3DZv94XbeNSEQvyJCotp8CV 5wru2AvQpPQk9Hmm0fnnLbYnKgZPqMDYX9ix+tKVhhGRyricBOu2PKKItkhKKS8ah/YEnf VDYSm1kVXcasuLQ/h8/0J2xM6bbmpUs= Date: Wed, 15 Jul 2020 06:26:47 +0200 From: Borislav Petkov To: Srinivas Pandruvada Cc: Chris Down , linux-kernel@vger.kernel.org, sean.j.christopherson@intel.com, tony.luck@intel.com, torvalds@linux-foundation.org, x86@kernel.org, kernel-team@fb.com, Matthew Garrett , "Rafael J. Wysocki" , Len Brown , Jacob Pan , erpalma Subject: Re: [PATCH -v2.1] x86/msr: Filter MSR writes Message-ID: <20200715042645.GD4228@nazgul.tnic> References: <20200615063837.GA14668@zn.tnic> <20200714121955.GA2080@chrisdown.name> <20200714154728.GA3101@nazgul.tnic> <20200714160448.GC2080@chrisdown.name> <20200714165621.GA3622@nazgul.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 11:52:47AM -0700, Srinivas Pandruvada wrote: > > As to the power issue, lemme CC some Intel folks I found in > > MAINTAINERS. > > > > Intel folks, pls check the link above and upthread: Why TF do people > > need to use some luserspace daemon which pokes at MSRs which the > > kernel > > writes to too, in order to bypass some apparently too conservative > > throttling, AFAIU? > For issues related to thermal or power, we don't expect to poke MSRs > from user space by any daemon. We have sysfs interfaces for the > required controls. This is also true for controls via MMIO space. > Anytime if it is safe to add, we are adding controls via sysfs. > > The tool in question from the link (not from Intel), when developed may > not have TCC or RAPL-MMIO controls via sysfs. We have sysfs interfaces > for a while. They can send email to me to justify other controls if > any. CCed. (I think I got the right email from the repo). Francesco, see the whole thread starting here: https://lkml.kernel.org/r/20200714121955.GA2080@chrisdown.name > > And why does this work on windoze reportedly? > This is not related to MSR or MMIO. This is related to some ACPI > tables. In Linux, thermald will adjust these knobs like Windows. It was > missing some ACPI details, which Matthew Garrett submitted patches to > kernel and getting merged with 5.8 series. Good. Which means that that throttled tool could do the same thing thermald is doing so that they're all on the same page. Or simply not do anything and tell users to install thermald instead. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette