Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4340572pxk; Tue, 8 Sep 2020 18:04:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznAPxiW9S97lXIDX6VUkZW1OSEPOlEbCovYp/Q5KD1PHw/6202x4IGqh5nS4uWyFt39msY X-Received: by 2002:a17:906:8559:: with SMTP id h25mr1177699ejy.536.1599613482098; Tue, 08 Sep 2020 18:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599613482; cv=none; d=google.com; s=arc-20160816; b=kIihUr7tuM9MgwtJR6T+5pet1CWqOpQDnE5TZfiKwpY6Z9v7hmktEuVl3V4tHSQgpL DH6Pu32WCWNneiZTSmtBvb0Tb6B2BjVxBzmoLZr8cVPkRPnaApBu/zBwlo9O6jQIF5ZI hZwJ0VSXvj7BySYhX0I8SU5xbM7Ce4wzzE48aA/nHmMfZK9lUDts+3y+syytdnt62vCe pLmpvZX2L8IAbs5u9wbuUqPUrkv3nxe6KwwUYP2aAe1l6UsQo7niIYGy2DTA+FpE9NOR f0pB2JQZ/J3o/BpQ/A6mS4mqS98NMAyuq28ar7jsN27bKZLuoC3sTj/wA0ojh9aHr6V8 f10w== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=N2USFk5Ih3Ldp80UP6rMDRrkutK8/0LsjjeywAMx4dA=; b=nDA5eGSsWlKIRYfdwhMfn/+E7+n+2X7M2rDEmiC+0VG5A38XXmEa6yc2kutTucus4u OT3tY7CBfZo5it836kKTUt7qzRHmqsjbJEy+LxRy6lPAV9nRzwRPoVwSje/WyjCNlmV9 tp6CsTrIbNYarRsg6JWTG2bJ89VCCYr+2asg5pkMGPsixramAXqxO9HMPfZbA0vX6A56 EcdX2lZ26meW8DTIE8xrRfgSQ/oYjKzRfHCoZxKy2mNy+F7HDExho/iI2YMK3LuYfSPi qeysLu6oa64QgG1qbzdYZTN4A622wal2oYmBgOgDQibK2n2c96cvDv/YYNyG2IXbyOTD xdFA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si456520ejv.219.2020.09.08.18.04.19; Tue, 08 Sep 2020 18:04:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728971AbgIIBCH (ORCPT + 99 others); Tue, 8 Sep 2020 21:02:07 -0400 Received: from mga18.intel.com ([134.134.136.126]:33906 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgIIBCH (ORCPT ); Tue, 8 Sep 2020 21:02:07 -0400 IronPort-SDR: KK7q0g97WbHRhTjZAhbJ5WcOx4KN0HmTfXVMzY+dMDLyM3hYGRHqpdAtyBmcVuBJNxQx4VC8wn OWCw5/fIGQsA== X-IronPort-AV: E=McAfee;i="6000,8403,9738"; a="145965554" X-IronPort-AV: E=Sophos;i="5.76,407,1592895600"; d="scan'208";a="145965554" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 18:02:06 -0700 IronPort-SDR: IouVpf6JesZxkl3cSXVSgH9natnKMBzVzY5mzgu6/JjkWcq1TCGVepYVIL1IRDiiuA2w2JyULj LZd7nhIjmgng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,407,1592895600"; d="scan'208";a="328712504" Received: from monicak-mobl1.gar.corp.intel.com ([10.213.174.160]) by fmsmga004.fm.intel.com with ESMTP; 08 Sep 2020 18:02:05 -0700 Message-ID: Subject: Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX From: Srinivas Pandruvada To: Borislav Petkov , Sultan Alsawaf Cc: "Jason A. Donenfeld" , kitsunyan , "Brown, Len" , X86 ML , LKML , Linus Torvalds Date: Tue, 08 Sep 2020 18:02:05 -0700 In-Reply-To: <20200908193029.GM25236@zn.tnic> References: <20200907094843.1949-1-Jason@zx2c4.com> <20200907100647.GB10657@zn.tnic> <22617e57e541e460fac09db04fdb370f8e96e8ef.camel@linux.intel.com> <20200908172558.GG25236@zn.tnic> <20200908173656.GI25236@zn.tnic> <20200908180112.GK25236@zn.tnic> <20200908191838.GA2014@sultan-box.localdomain> <20200908193029.GM25236@zn.tnic> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-09-08 at 21:30 +0200, Borislav Petkov wrote: > On Tue, Sep 08, 2020 at 12:18:38PM -0700, Sultan Alsawaf wrote: > > I'd like to point out that on Intel's recent 14nm parts, > > undervolting > > is not so much for squeezing every last drop of performance out of > > the > > SoC as it is for necessity. > > > > Sounds to me that this undervolting functionality should be part of > the kernel and happen automatically. I have no clue, though, whether > people who do it, just get lucky and undervolting doesn't cause any > other hardware issues, or there's a real reason for this power > madness > and if not done, power-related failures happen only on some boxes so > they decided to do them on all. > > Or maybe BIOS is nuts, which is not a stretch. > The whole OC is based on experiments to come to correct values. This depends on whole system design not just CPUs. https://www.intel.com/content/www/us/en/gaming/resources/how-to-overclock.html It warns about system stability. > Srinivas, what's the story here? I checked and there is no public spec. There are several mailbox commands with version dependent on the processor. The actual OC mailbox implementation itself is implemented in Linux in intel_turbo_max_3 driver. So that is public. So someone can develop a driver and provide some sysfs to send mailbox commands, but kernel can't validate commands which can cause any security or stability issues. Not sure if this is acceptable standard. I don't think there is any precedent of creating such blind sysfs entries. Thanks, Srinivas