Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4545941ybb; Tue, 14 Apr 2020 09:20:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJoFmjM3ZR/+NqpUsEfWkmh3bB74XU+c2uz4ZM1gcf7oJoUnyv34OIBIOCMWo/4fwP02PjI X-Received: by 2002:a50:e007:: with SMTP id e7mr21125178edl.361.1586881231298; Tue, 14 Apr 2020 09:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586881231; cv=none; d=google.com; s=arc-20160816; b=ZxCp69XBul8Mizs4EBVU9TpqMu6v3FIAahnLErDBYOjUvLD1ccMXdYwSU9r1HZ86zC 6Oqekh1/25gn3HEYOkGEzuZJyjPVujQaxc9PzfD+OUg/0x4r7SeHsI+bsQ71V56s5QWx 4rsgQRWukeT8yrC/aW+s53GlkwBnor9caSwBN7gOnJPmOjidgCnQ0EHCaNQtYVXK/lFj RX/WWGe+v2RICEE3K93ZfXm0X/8RzoESpMK07z1qNNxRtrvJ0R2wN6c2CcSOHujN8/gU sPuwh3P5X9vE/K48UkaqENA98MtN8mt2VLp2PmNNi6THJ5rPh3Y35CPdCRTNlD1L7FAG RMuw== 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=IIM875deK0Dxt2gA6lVd1j5EBRAQw4vpSMFFSGrW/BQ=; b=kJv+UkWtp75QKuN2a2U2u2iUNuQ3Zwgx1TsimcmytvS+cBki1ULsCVkWwAa1kapPow vbtLrhBHE/JQdVNBwKCxeF++k07mW8n+IfFCleSHUG0xYsjtWDAvxSm6A0fqAT4G1jAJ Jn7XadlMPlDMv5MlroIP9DAiFkiO9YBps1hGfmSGWVAU4HNQalLgn8cixAC9k+iT+F2z 86qsVzLrwPYEb/++3l4TZwkgLLs7cUpUKGB99ov8eNm3S///Dvny4lHAHnyLbb6GfHAu 22/WzIcs6rOUv281hWzN2TO49ZYvRUMxtUHIppqnxalwf3T8vJUxqb8wX6faKi2+Vi4p NyNA== 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 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 gj19si7557901ejb.297.2020.04.14.09.20.08; Tue, 14 Apr 2020 09:20:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2404528AbgDNOpX (ORCPT + 99 others); Tue, 14 Apr 2020 10:45:23 -0400 Received: from mga01.intel.com ([192.55.52.88]:13080 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404517AbgDNOpV (ORCPT ); Tue, 14 Apr 2020 10:45:21 -0400 IronPort-SDR: aYmMNxt+SQouH7In8pYnsmuMCVp/GRiN0NcSbdoz5ETFgXng21i1OXhFOIHJJ13hkkHrolyqkd 7UH1IQ3Mu+JA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 07:45:16 -0700 IronPort-SDR: PobXDpZNf0jtNRkWrmz39i7ngBS/sjvnT/2SR1sUU6i3DDm9UZChQ8gK20Ek7t3sMQHiHYzgOD uY8zsXymYUog== X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="253216826" Received: from spandruv-mobl.amr.corp.intel.com ([10.251.11.11]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 07:45:15 -0700 Message-ID: <4b75ec34ccff5abdc0b1c04a5ac39455ddd4f49b.camel@linux.intel.com> Subject: Re: [PATCH 3/3] x86/mce/therm_throt: allow disabling the thermal vector altogether From: Srinivas Pandruvada To: "Jason A. Donenfeld" Cc: LKML , linux-edac@vger.kernel.org, X86 ML , Arnd Bergmann , bberg@redhat.com, bp@suse.de Date: Tue, 14 Apr 2020 07:45:14 -0700 In-Reply-To: References: <20200407063345.4484-1-Jason@zx2c4.com> <20200407063345.4484-3-Jason@zx2c4.com> <0e189a4fe1e69b08afc859ce83623a0e5ea0c08b.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-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 Mon, 2020-04-13 at 22:21 -0600, Jason A. Donenfeld wrote: > On Mon, Apr 13, 2020 at 9:38 PM Srinivas Pandruvada > wrote: > > On Tue, 2020-04-07 at 00:33 -0600, Jason A. Donenfeld wrote: > > > The thermal IRQ handler uses 1.21% CPU on my system when it's hot > > > from > > > compiling things. Indeed looking at /proc/interrupts reveals > > > quite a > > > lot > > I am curious why you are hitting threshold frequently? > > What is rdmsr 0x1a2 > > 5640000 You are getting too many interrupts at 95C. You should look at your cooling system. > > > > of events coming in. Beyond logging them, the existing drivers on > > > the > > > system don't appear to do very much that I'm interested in. So, > > > add a > > > way to disable this entirely so that I can regain precious CPU > > > cycles. > > It is showing amount of time system is running in a constrained > > environment. Lots of real time and HPC folks really care about > > this. > > Which is why this patch adds an option, not a full removal or > something. Real time and HPC people can keep their expensive > interrupt. Other people with different varieties of system > disable > it. Generally compile time flag is not desirable. If it is what required then we should have boot time flag something in lines of existing "int_pln_enable" option. Thanks, Srinivas