Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3139279pxk; Mon, 7 Sep 2020 04:31:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCgsLtbZ/cyxshb4KQO1mJLh//gbq9IrzXOvhpgNIPTf1/DCIpkPHllZCFH5H47iuElUfa X-Received: by 2002:a17:906:7f06:: with SMTP id d6mr20010435ejr.553.1599478272608; Mon, 07 Sep 2020 04:31:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599478272; cv=none; d=google.com; s=arc-20160816; b=U4QeA/38Z126nLCPdtzK5sJJU+qQwy/KR6PxxizOB+Sc0U9qoDgB6slJKcJTblmrWB TUc/YqWUmZEQuhsOI9hGDb7cbzlrstMc6WsjorXi0BSje3Eq85bO40tUz0dEvwe8Jy+p MY9u4s6fhgSGQMIY6iuXKHUIrs1gY5Eh6cNaBJOalgSF6iFBnXin1cR7nTUeJr78L+z1 qHtyjNHnlvMbcIShgSWta/sSp+AEqg+vOc1eGSPGNQHdOA+T5wblY0lLgrMVsqA1ps7z ARKkIF91rzrOLuv8ZOeSx5B4HB8X4s/IFxvh5i7f82eb+9EahqrVje3jPOPajh3OcEOK Dgvw== 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=cv5cgieD4imCKFHqyFVB5TEo45oyRkcNlpNdT0Kes4I=; b=VphGTskYV2WmVN4JRgmii58NrMcvMK8fwRW4LoDmJQ20mEpdm/cprTCahoKvwaeLny PcE83fadki7mQeaYajSwiPQdvip89P1qvSHU8s1oZJNm2/L90NA52UCjGDJQQCAYdvmj J3bDMNQai3m4r18r5fLwk+CWZXQxqVgMawaR3qDbOAW/DgumgdDtSHMr/cdZXKGEpsTu fd/pmD54rVOgqO1PNt3p2x8+ZdDz9nVsa/kCBsz3DnC7fyXWLOrfLlOkWlmDWrE20WuV XBnVb2nHIUMz8w0aDDVpepUA8dI1yf++Yc74MstMCbekqzj0Iq1scV9OWaIQgwGFwTFe P38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UuyGI6s5; 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 cf27si9175987edb.506.2020.09.07.04.30.49; Mon, 07 Sep 2020 04:31:12 -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=UuyGI6s5; 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 S1728996AbgIGL3S (ORCPT + 99 others); Mon, 7 Sep 2020 07:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728942AbgIGLXA (ORCPT ); Mon, 7 Sep 2020 07:23:00 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 366E1C0617BE for ; Mon, 7 Sep 2020 04:12:17 -0700 (PDT) Received: from zn.tnic (p200300ec2f09090030eade31917bbe1c.dip0.t-ipconnect.de [IPv6:2003:ec:2f09:900:30ea:de31:917b:be1c]) (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 BB00B1EC0445; Mon, 7 Sep 2020 13:11:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1599477074; 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=cv5cgieD4imCKFHqyFVB5TEo45oyRkcNlpNdT0Kes4I=; b=UuyGI6s51Um5rVOmjTwZAduAmuq3+DLBrpOOlbC/Akq3EZwcgOCz+3ElExEWKzzRCGT0G+ mXDR8hNN16OyTBH1tzid1tIwbNpx/Bm0McKEx3Nc3a/+PD3BtkPOP9ciGPN8dJaDFextnH g8zNVqqhJ9sXATij9i8DVYDkdPvZJEs= Date: Mon, 7 Sep 2020 13:11:09 +0200 From: Borislav Petkov To: "Jason A. Donenfeld" Cc: Srinivas Pandruvada , kitsunyan , X86 ML , LKML Subject: Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX Message-ID: <20200907111109.GB16029@zn.tnic> References: <20200907094843.1949-1-Jason@zx2c4.com> <20200907100647.GB10657@zn.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 Hi, On Mon, Sep 07, 2020 at 12:46:35PM +0200, Jason A. Donenfeld wrote: > Are you sure that intel-undervolt using OC_MAILBOX from userspace is > actually a "misuse"? Should the kernel or kernel drivers actually be > involved with the task of underclocking? This seems pretty squarely in > the realm of "hobbyists poking and prodding at their CPUs" rather than > something made for a kernel driver, right? The only thing I'm sure is that *if* it makes sense for any driver to control something in the hardware over MSRs, it should *not* poke at naked MSRs but use a proper interface. I'd leave it to the people who actually need this interface, to explain why they do. > Also, what was the justification for whitelisting > MSR_IA32_ENERGY_PERF_BIAS? That's: tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c Once that thing gets converted to a proper interface too, that MSR goes off the allowlist too. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette