Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp149815ybz; Wed, 15 Apr 2020 06:14:52 -0700 (PDT) X-Google-Smtp-Source: APiQypIaUpOUweh0DsSjq+RiurxUgpx/R2gXXrxmVBf+ePRYsUnARj5QSXEbOiHHgwbDTwQlaSaG X-Received: by 2002:a50:baa6:: with SMTP id x35mr10556555ede.54.1586956492400; Wed, 15 Apr 2020 06:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586956492; cv=none; d=google.com; s=arc-20160816; b=QKaX4u0F+KQMPm1f2iG9SoXLBZR72dj0YQpzuzXdqbJBs7JAFZGaW/OTC+H9XAR9wK 9V0gh7mHK9THABW+za9HYMIsSJ7cQwTzyifLyWwx4HS2rmGQXaMZ27nIwgG8QpmN2E2U 8BqYQdm+7nfahbg+FbxYnBMvo+ZBhX2e3qX4moVdO6N2U10XtUYTrSqKeUEOljYmioHN DzqSoMY723V/7vD+fS8EKt3fm2zLHoPDZDUtJFvNy/l+OCP38g6n1W4VImTsy89P/BkT 8xi9Cojtze9sFbghsNtJaXevdCa/8ONqdtTvm8P90oM1J/gx0IwXJh6tsiA8XNp/BXAL DByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hbLXmb01AxD6O95YTrxd9cyZPXjygh36WyQAZJKjrAU=; b=hDBCEG3hI5CllDJZFfIXXkTHcgwjqwTdmMM3SZ+TzNUFqlRyk4IWV+OkhrNn4eC6qj GQy0vRNGAqo6fTHX5Gqm4+TTyZaP56Bko2oPNGe8kZdxClzlpQmXjEUznNABVchJMNhm JOLQip/l83UBRyjxCvb/vasZxTlwFOmTifHHGgJYDqL3UXkaeJ5mXqMlQm5gSO4d2FZ0 loJbWkJ+hDQU+9SHrfPqC4hJgXo5dKuQ3fA5bLGSUbvo/O/n6/3WbiGg/Ou8vP/JRQtg B1QmLxLqSLMH35lqNTXp7ogDf3caMeBiPVXAboaDp52nE/XBS/2EFAuLLGz2Q5oGqv2M 4CZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ueL7pC5Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si10359767edf.315.2020.04.15.06.14.28; Wed, 15 Apr 2020 06:14:52 -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; dkim=pass header.i=@zx2c4.com header.s=mail header.b=ueL7pC5Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505098AbgDNTla (ORCPT + 99 others); Tue, 14 Apr 2020 15:41:30 -0400 Received: from mail.zx2c4.com ([192.95.5.64]:38323 "EHLO mail.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2504949AbgDNTl1 (ORCPT ); Tue, 14 Apr 2020 15:41:27 -0400 Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTP id e19eaa70; Tue, 14 Apr 2020 19:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=mail; bh=h/aE5SG6wxx7pSOie0SLEE7AeHU=; b=ueL7pC 5QY12n2HfHdvyvsYLpUVOW4X2stzK6kd4Z1g0X2SRgYM0vQwjlaUR8Wrs2zH4/AJ dyh9G7LCTMREU+GFZDVnKVQldKIZ6Qg/JxLm9Nw6f+9TnfncYuiQe6Yj2rMpJeDE h6BDJpdhCloK6DbabBkJOT0RuKX9mHE/bnZrpB7zu88Cz8K00KGV+rH8iujAmJXI FJYgIOIzD05lhSBzQWRsE6COyU4LMD9tpUOIEQ/BryOSslHi5Z9KRPisuzHSYx8K CICUxlFKLqTUXN8kWxvYiSS+B/HNv/hZb4tU71GyDwFpyLvGp7X6fHACD+2z5mfT dcwcMvD7E2oJkHRw== Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e6fd408d (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 14 Apr 2020 19:31:28 +0000 (UTC) Received: by mail-il1-f170.google.com with SMTP id i2so902523ils.12; Tue, 14 Apr 2020 12:41:20 -0700 (PDT) X-Gm-Message-State: AGi0Pubd6kI6GaWTYl2jUWdsoQugfsqQWrYJIqvqc2YZ28P9C1Of3ZP/ orMKLthdb7etz4naXK6Of4rDKHfQkLtmo2xtVes= X-Received: by 2002:a92:c7a3:: with SMTP id f3mr1922827ilk.207.1586893279635; Tue, 14 Apr 2020 12:41:19 -0700 (PDT) MIME-Version: 1.0 References: <20200407063345.4484-1-Jason@zx2c4.com> <20200407063345.4484-3-Jason@zx2c4.com> <0e189a4fe1e69b08afc859ce83623a0e5ea0c08b.camel@linux.intel.com> <4b75ec34ccff5abdc0b1c04a5ac39455ddd4f49b.camel@linux.intel.com> In-Reply-To: <4b75ec34ccff5abdc0b1c04a5ac39455ddd4f49b.camel@linux.intel.com> From: "Jason A. Donenfeld" Date: Tue, 14 Apr 2020 13:41:08 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] x86/mce/therm_throt: allow disabling the thermal vector altogether To: Srinivas Pandruvada Cc: LKML , linux-edac@vger.kernel.org, X86 ML , Arnd Bergmann , bberg@redhat.com, bp@suse.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 8:45 AM Srinivas Pandruvada wrote: > > 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. Generally it is desirable, and extremely common too. This thermal code -- which mostly functions to print some messages into kmsg -- is very verbose. This is not something I want to compile into smaller systems. This is the reason why kconfig has options in the first place. I'm not sure yet-another boottime flag makes sense for this.