Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp981161pxj; Thu, 27 May 2021 16:55:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbwnIb+1GqfE0PqiQ+mBU6sahvg0It/2rFDFvwoJKPxThOeDn36DIelVXaXxfhvo7XbPLV X-Received: by 2002:a05:6402:1256:: with SMTP id l22mr6968617edw.207.1622159752418; Thu, 27 May 2021 16:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622159752; cv=none; d=google.com; s=arc-20160816; b=CvnlM4RhMhV7vAcmqAnmJHnG0gyp43nRuiLCHJ98/OG9thFg2UFL/fa0xq60U32xYb 7XidZUnOTnXanr02SO78GRmUfIX2hhA3bt1/tyhreoppVmq7ckpgvPIUcSy++QxWsSg2 2bWU9FEeRn86M+tCLjymUe6rPf2++sysnKS0me3heFmvn9/kwC+siXYXO12uCvxwq2P7 IrseOm3LmgXwPLdBIsXmVtfygou8FgorQD7W3rKk25omBTHXP/TQGfmaiTteOS4Zmwuc 78tjt3k70s623BhTV1D4KLc32svc/w5ggmfwyA0f4su4psGuGzQwIJMiK4hXAJsBJwTg Brqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3McnNCepB5hW/fju+vVEoOY+HqLuey0+yRIpnzxlez8=; b=KTX7Fb7U1Yl3MB8MbQBR4NUQzFfGbZ+u6jbddGb59FLB6GqTZCzLV4r0m7lpyDRYo7 5jCcwbnIYi7ohkZBDga6BFqgQVzpUgWmPL++ixCfRbqJhN88wWJ5joKTO4q0C2OUp52v 6ahEOq/DRpGDW0xenu2qcEBhXIi2KSmmL+dBYFKH726EE9k58IwT5uMLaI1+2AFgsrSC P4XcEljajEhXOBN0RYc7NVyI3ZldzZEOo2vpL0KuuDW3z/AgNwbaVdv/REGkeaCJNF9T lfcis26Hv8Oa82vyMWLxqKOZUGOm2qBZFR/MpPrsoJ7Jc15PGrIejYpl2Af/A/wbejh5 rHHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BQ3DtOWZ; 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 m18si3478354ejb.612.2021.05.27.16.55.27; Thu, 27 May 2021 16:55:52 -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=BQ3DtOWZ; 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 S237032AbhE0TDp (ORCPT + 99 others); Thu, 27 May 2021 15:03:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236140AbhE0TDN (ORCPT ); Thu, 27 May 2021 15:03:13 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA5CC061761; Thu, 27 May 2021 12:01:39 -0700 (PDT) Received: from zn.tnic (p200300ec2f0f02007e50b358e2406320.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:200:7e50:b358:e240:6320]) (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 05AE51EC01DF; Thu, 27 May 2021 21:01:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622142097; 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=3McnNCepB5hW/fju+vVEoOY+HqLuey0+yRIpnzxlez8=; b=BQ3DtOWZmcw2ASN1yYM0XjgySvZ2JuWGx5TB1e7aQFx3lFDZzauJQ4xr5m/3soSaMkrG+b K23V3prSqm1wCykboY6Z/V1DuQinqBcdQLVtaKwS2Y9YC5hiHJcZc8LNXiKz/obMfIyyN9 iEZpMgNjNzwUhFOuvcmv0r1jG2MYTnI= Date: Thu, 27 May 2021 21:01:35 +0200 From: Borislav Petkov To: Srinivas Pandruvada Cc: Borislav Petkov , James Feeney , linux-smp@vger.kernel.org, Jens Axboe , lkml , Zhang Rui , x86-ml Subject: Re: [PATCH] x86/thermal: Fix LVT thermal setup for SMI delivery mode Message-ID: References: <373464e3-b8a0-0fe0-b890-41df0eecf090@nurealm.net> <1f6c70f4-6680-d6ea-465a-548dc7698317@nurealm.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 11:09:59AM -0700, Srinivas Pandruvada wrote: > My guess is that system is booting hot sometimes. SMM started fan or > some cooling and set a temperature threshold. It is waiting for thermal > interrupt for temperature threshold, which it never got. Are you saying that that replication of lvtthmr_init to the APs in intel_init_thermal() is absolutely needed on those SMI machines running hot? That thing: * If BIOS takes over the thermal interrupt and sets its interrupt * delivery mode to SMI (not fixed), it restores the value that the * BIOS has programmed on AP based on BSP's info we saved since BIOS * is always setting the same value for all threads/cores. ? Me moving that lvtthmr_init read later would replicate the wrong value because we'd soft-disable the APIC and thus the core would lockup waiting... The other interesting thing is that the core would always lockup when trying to IPI another core to remote-flush the TLBs. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette