Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp602512ybz; Wed, 15 Apr 2020 14:57:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+ciUhKE2nYrpNx62GDBgehSQJuDaw9+CuaR77LAVhCg+SDRxRk5fFS4KBLVtjs3UY3NTf X-Received: by 2002:a17:907:11de:: with SMTP id va30mr6966350ejb.121.1586987870550; Wed, 15 Apr 2020 14:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987870; cv=none; d=google.com; s=arc-20160816; b=IpZjecTQmGkRe6y8PURyQzabaWAQDCnIBTF4kaKh8dmyKZX8k910qG15rt0uvHO/sm 6Rlv8Jp2uxwAu5buPLHIwaULQ2L81aaNXBZuioH+ICnht9e+chNiJbT6qnaD9VuyXC4M HHW4769kAN7F7oZFyHUm0lvVGbPNOwSy389+RhdUNYsMmZihxAqzM0HsFAkWGEx2y8Nm H6tQEWkfe4ODap5Vy/kNSPiGh7Hijl4DdcbDlTrlwiUUqiJM1l6Id5h8DXZdgnaelhxA u0iYICp4gmqe7X4rCf21pUUjAAx/NS8sDHDM2cJhpszLM9JPLuJmfZt1A3QlQqcgWDcN G+4A== 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=UNh3DPdO0mXrjXJtA+BgHd9xOElijHoig6nFm9BpPbw=; b=A4zGbgQeHaHQuRq8uW1Rcu7b6zNHQm/zteSk1SZVbtgcAWHoJhCqAtQOwUgHnnlBGF ulltsA0qJJa3DHlV/ffxRSNoKLsNegXSuR4CuBBsRCYq38uD0FUG1CZ1alq2u78nYw1e QWHrPnIgfYGf/jPqtzE3M/rZ7OYa4ilj7SE1ZVsSlzmfUg/5VYmYo/NbiiVDcIV2+EW0 xTM8jP9BKRjq2kmZyd4eF75E3zLF1chaELpOms/4C10WwKLUKOEET8yrmaaGmuYrASdF ZZiLiGar1Olijbtulb5FOyoNfVSBtAom+YpWNc2Q4UJGNXVuYPfitpexnFHJrHnODXz/ cgVQ== 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 dk22si6020729edb.525.2020.04.15.14.57.27; Wed, 15 Apr 2020 14:57:50 -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 S2440970AbgDNVvd (ORCPT + 99 others); Tue, 14 Apr 2020 17:51:33 -0400 Received: from mga06.intel.com ([134.134.136.31]:57796 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440819AbgDNVv0 (ORCPT ); Tue, 14 Apr 2020 17:51:26 -0400 IronPort-SDR: vZU0oqJXCsEvUa/EtJCIfj1Vo16Ek2XpihzCVrTLA5s+3D5jzjjEnwZEWC0X1sxp8F9MnKNLzI hFXw4GXDwwjQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 14:51:24 -0700 IronPort-SDR: ij8iqHgZZGRON/acdZ34Z8oe1de2h0YuaZUoV5nkBqf5XAAASINM7Rc6Fba1Xl8axQDbfmFBtB EdajjSl5EfwQ== X-IronPort-AV: E=Sophos;i="5.72,384,1580803200"; d="scan'208";a="271529999" Received: from spandruv-mobl.amr.corp.intel.com ([10.134.69.31]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 14:51:23 -0700 Message-ID: Subject: Re: [PATCH 3/3] x86/mce/therm_throt: allow disabling the thermal vector altogether From: Srinivas Pandruvada To: "Jason A. Donenfeld" Cc: Borislav Petkov , LKML , linux-edac@vger.kernel.org, X86 ML , Arnd Bergmann , bberg@redhat.com, Tony Luck Date: Tue, 14 Apr 2020 14:51:22 -0700 In-Reply-To: References: <20200407063345.4484-1-Jason@zx2c4.com> <20200407063345.4484-3-Jason@zx2c4.com> <0e189a4fe1e69b08afc859ce83623a0e5ea0c08b.camel@linux.intel.com> <4b75ec34ccff5abdc0b1c04a5ac39455ddd4f49b.camel@linux.intel.com> <20200414202328.GK31763@zn.tnic> <81359df9983fb70bd40ddb3be9090e5521294529.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 Tue, 2020-04-14 at 15:07 -0600, Jason A. Donenfeld wrote: > On Tue, Apr 14, 2020 at 2:49 PM Srinivas Pandruvada > wrote: > > On Tue, 2020-04-14 at 22:23 +0200, Borislav Petkov wrote: > > > + Tony. > > > > > > On Tue, Apr 14, 2020 at 01:41:08PM -0600, Jason A. Donenfeld > > > wrote: > > > > 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. > > > > > > I don't mind making the already existing option selectable and > > > leaving > > > it default y, i.e., keeping the current situation by default. And > > > people > > > who want to disable it, can then do so. > > > > > > I do mind to having yet another config option though. No thanks - > > > they're already too many. > > > > > > So it should be an all or nothing thing. > > > > > > Poking quickly at that and > > > drivers/thermal/intel/x86_pkg_temp_thermal.c, > > > all those things do is report trip points. therm_throt reports > > > how > > > long > > > the hw throttled due to hitting a trip point, etc. > > > > > > IINM, of course so please correct me if I'm missing anything. > > > > > > But if not and this all is only for reporting and doesn't have > > > any > > > detrimental effects on the hardware when missing from the system, > > > then I > > > guess we could make CONFIG_X86_THERMAL_VECTOR user-selectable. > > > > We can make user selectable > > > > These drivers are used for reporting only. > > User space can select a trip temperature via x86_pkg_temp and get > > notification via uevent to start additional cooling system > > (additional > > I didn't see any uevent stuff. Is this part of out-of-tree modules or > proprietary code that's hooking into those EXPORT_SYMBOL (non-GPL) > exports? This is not out of tree. This is x86_pkg_temp driver as part of thermal subsystem, and thermal_zone_device_update() user space governor issues uevent. But those are different modifiable thresholds not the high/low temperature thresholds. > > > fans, liquid coooling etc), so that processor don't have to go self > > throttling mode. Self throttling depending on processor series and > > firmware can be very aggressive. > > In client systems thermald will set a temperature and starts power > > control once it reaches passive temperature limit. But it can > > function > > without x86_pkg_temp also, so even if user disables thermal > > reporting > > it can still function. > > The 2/3 patch may be interesting as well to you. This removes the > expensive work queue management stuff if the option is deselected, > since all those workqueues do is print messages to kmsg, while > retaining the rest of the infra.