Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp875635pxj; Thu, 27 May 2021 13:49:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3ZLEz+Chbet/2986BefFvFSRL8QQFw49pYheUvkvbAiAvxIPOAEe9hbR7NpuaJXFQ7XDv X-Received: by 2002:a05:6602:14d3:: with SMTP id b19mr4401286iow.154.1622148554023; Thu, 27 May 2021 13:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622148554; cv=none; d=google.com; s=arc-20160816; b=f6fLEZ3kItBgQaQ2I3L9q7416nlI5VhjH9d8Oi3z6pDEzBStJvA94u0FThT/q4bSiA CCk5LvuTrdybjKODAn+v7kJegPep56nbx6sLpzirFAAY5UPP9iulmkfM3KB8zdbPfDfQ cHPnkPCr+WAA1oWmRIbYx++bEzrpmwW5UYbOdupOH0DRIaRNVa9QjbWlwdT0kFUxgm4X QwgDHaqImwSwGG61NlOp4oBqaMm4eWWHGcxVzpqeBBfBVYxTdpY9bE8EJn+7apVEzFHI 7nTQIUaPdxWYPCBSIN40E76JLLbJpMz8Reyt7vDF2svJ40miFMhUg+k8ZCoEcx9anIRU GxDg== 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=SAOBNM/TdWmKVJtnca/J3NIttsNpU6/kPggS1hONNPM=; b=gqLW6uKE0lH6NMAn9ukqTdbUFY54QTof2BtYzkf4zpxwJ7ALp5qDksV4Mlj7s0EcER zbSYZced0zr8NGQDfiItkxXgls7NKAWNUM0sFTE0i4c/2csV5cr3RkNwXZdYv7dUAyTt nEXdMYPyzEeHp/i9jIp/xO1Je7VpiLv0ByrQ+QH0QsaBVqx+HJ+qOji8Oj4OU9HjSLxU i/KHjLinP+0FcPenq5g5WLqHZnpgFiEzUeyxWDopSaQmfd7fMsyBWl67JiOw0Y54u79J WCxwcDo0yTlgDacBKxd18RhbZOUKH+0gUwi311Q6rq5hCZ4b7xF7wgEYVXOkAsdxfYw6 qwJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=GsE0NG9O; 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 a14si4029272ilm.103.2021.05.27.13.49.00; Thu, 27 May 2021 13:49:14 -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=GsE0NG9O; 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 S234438AbhE0L6h (ORCPT + 99 others); Thu, 27 May 2021 07:58:37 -0400 Received: from mail.skyhub.de ([5.9.137.197]:56776 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234393AbhE0L6f (ORCPT ); Thu, 27 May 2021 07:58:35 -0400 Received: from zn.tnic (p200300ec2f0f02008ae29220a5f6f448.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:200:8ae2:9220:a5f6:f448]) (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 861A71EC01DF; Thu, 27 May 2021 13:57:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622116621; 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=SAOBNM/TdWmKVJtnca/J3NIttsNpU6/kPggS1hONNPM=; b=GsE0NG9O3hlWuFbsWHM/CwAt4dnpyz2PFFcBKTeq7CqvKMbQeUTY+v1qFEbNpbGTRRdEod MWAUBleTu3okjBk+5hSi2XkUrnzX4PEXZbxajJ7k5eyaBXrAusPeZ71pAeYeNkGk5xw5O9 mrjU1eBI12dis2KgeEhc8QCVJL3SyyE= Date: Thu, 27 May 2021 13:56:59 +0200 From: Borislav Petkov To: Thomas Gleixner Cc: James Feeney , linux-smp@vger.kernel.org, Jens Axboe , lkml , Zhang Rui , Srinivas Pandruvada , 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> <87h7io8kh5.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87h7io8kh5.ffs@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 01:49:42PM +0200, Thomas Gleixner wrote: > That works, but TBH, it's a hack.... Yeah, it restores to the previous behavior. > What I really fail to understand is how disabling that LVT entry makes > the machine lock up. The observation is is that on James' box, *sometimes* - not always - it would softlockup on CPU0 without this early LVT thermal read. I can try to reproduce on the box I have here, lemme see... > Also if disabling this entry is causing the BIOS/SMM gunk to go south, then > disabling CONFIG_X86_THERMAL_VECTOR should have the same effect. > > Which made me look at other places like lapic_suspend/resume which does > the save/restore Kconfig conditional as well. The fact that it doesn't reproduce always shows that there's something else at play too. As I said in the commit message: "Those soft lockups are not 100% reproducible and the reason for that can only be speculated as no one tells you what SMM does." -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette