Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1121576rdg; Fri, 13 Oct 2023 10:48:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyhAqpQY5jZlVD4s6Q4obHVUoc1YdW6u+SJoQeqcM0YEbxffIQow1y7P1Z9j1nAO1y+pEU X-Received: by 2002:a05:6808:13d1:b0:3af:68f9:86de with SMTP id d17-20020a05680813d100b003af68f986demr37635576oiw.25.1697219331620; Fri, 13 Oct 2023 10:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697219331; cv=none; d=google.com; s=arc-20160816; b=iEhHaYZugRa9qmXYKuLNvJRMsdkoleoHBDyCnVKCUdXVnjyGaW2SaSNDP9MN1eeCxI Hp1NbHEmt1+lrPzsE6jlqs2BjnhwvVsXnLLKwVragxioYPGst+9S054bFLI9XUNo5gQz kA1buxnJETve5V/Q76vD2E0QbmnNTl7Vp1TSaQJ1Vs4XwqePvGJR/HUZc4m8feWL0Kjt k0qVzMBlb9O1LR1q2/ww7OUEGuDfAuTOZfUkDwgEqyLnr99gJSdrPMof6CvEp/ERIjYt t3GXBZnjgu05AsXcO+z+5rOPv+wTG6RqXhh0+lJ5xtfU+VPUQpWHR1YzuwNDBhPb0TsP 4pKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xDPc1YioSb3KUnMIDBSq84//2Atay2Wv50Tb3yT+Q0Q=; fh=rJDrAbGp3NovgTYTB8Gcf16QgEP13HDxFvS7q/tjRcg=; b=oHT2PxjN16Ix+fvlKfw+WWkyojJX8Ge8Pu99W/GKOOPKMDMGOGcY2KmCrwhmuRV4Ig F2r6gnRwW0c+un28RV5UZEzaUyeIfOkLcrpbm/cQBs5dok4S/ZMn5QNJkBX+1aVxrdVF 60zl0npA6gyLIsIiP269Wi3NkCwANsx8YxVM18k/joF5VrxAFyhVzMPN/Te5XRBS0ewg mWpofXqQ0kQKudcw1ZZG8CAi3bU52jP1sja6eYSEjUMC3Nb7YHWjuebws14a2a9qsc3E lnA5IGC72f72iOVmG8i7Cb8NlrcjBDFk/AkCQhrJ7rIdicRK0x2qC5M+fGT4ckCXSKTe txdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IAbL9s0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id 18-20020a630a12000000b0056a36ac322fsi4818089pgk.514.2023.10.13.10.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 10:48:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IAbL9s0o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3E42E839BAEB; Fri, 13 Oct 2023 10:48:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbjJMRsm (ORCPT + 99 others); Fri, 13 Oct 2023 13:48:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjJMRsl (ORCPT ); Fri, 13 Oct 2023 13:48:41 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF266BB for ; Fri, 13 Oct 2023 10:48:39 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9936b3d0286so396160766b.0 for ; Fri, 13 Oct 2023 10:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697219318; x=1697824118; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xDPc1YioSb3KUnMIDBSq84//2Atay2Wv50Tb3yT+Q0Q=; b=IAbL9s0oSv63uxy7HvVk3Km1zT9yzKFxA0KQ7u+5D03v0pmqDREYJkThecWgqY3Zgl x2yqhITBSI9ZPs9KddFdnh/25aA+KwrGugwWGpeFV89iDtRGiJtNo06G87MT8FJjxRcI 4hRXDu2psyCmGUXRZr2x0l3K7Suz6Me7Z0hJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697219318; x=1697824118; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xDPc1YioSb3KUnMIDBSq84//2Atay2Wv50Tb3yT+Q0Q=; b=FjbzUXZTs+XZ71ud+4q+EuORK3swjYjb+KRyD18vNxl4ICy2fIX1mMxTVqeDGcwFVh WAfAtVzKxBZueha1awvGD5wJ0Bm3BWFkWjisvw8epdKEqpbMxOHB/UWXmxYY8/cJzLJm CHa9Jp0sILMgBu1UZSaEGoladm77dyCkbv94Ra0InRTbbsADA1sC4hdNbiGuYiXdYWw+ 991x+aWqlpxaBZJC7iCrnBZpBcaMfur/wY1vPxvNpgAPGyx2NXxgViGiB+guSSJRKxbj ++tVYP4o6srNqs3Ijmyp7ht+XteyiSXJVCvI7ndZva8GTtle8IrEsMS9GWicyV0fVzJt PiaA== X-Gm-Message-State: AOJu0YySGlXGqbvx9g4G/McMugr16pq7WfC2C+vf6/3G/aFjeQE2QSa/ nSl/mbgfvp3q9C17MD48voeQmlbVq9NVVS9Y/cuBaQ== X-Received: by 2002:a17:906:10a:b0:9a1:cbe4:d029 with SMTP id 10-20020a170906010a00b009a1cbe4d029mr28246808eje.74.1697219317955; Fri, 13 Oct 2023 10:48:37 -0700 (PDT) Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com. [209.85.208.41]) by smtp.gmail.com with ESMTPSA id si5-20020a170906cec500b009b97d9ae329sm12656675ejb.198.2023.10.13.10.48.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 10:48:37 -0700 (PDT) Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-536b39daec1so3989864a12.2 for ; Fri, 13 Oct 2023 10:48:37 -0700 (PDT) X-Received: by 2002:a17:907:7702:b0:9ae:5523:3f84 with SMTP id kw2-20020a170907770200b009ae55233f84mr22085726ejc.72.1697219316989; Fri, 13 Oct 2023 10:48:36 -0700 (PDT) MIME-Version: 1.0 References: <9787bd09-91b3-4a79-9ca9-e7199c925f36@leemhuis.info> In-Reply-To: <9787bd09-91b3-4a79-9ca9-e7199c925f36@leemhuis.info> From: Linus Torvalds Date: Fri, 13 Oct 2023 10:48:19 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [regression] some Dell systems hang at shutdown due to "x86/smp: Put CPUs into INIT on shutdown if possible" (was Fwd: Kernel 6.5 hangs on shutdown) To: Linux regressions mailing list Cc: Thomas Gleixner , Yanjun Yang , Linux Kernel Mailing List , Bagas Sanjaya , "Borislav Petkov (AMD)" , Ashok Raj , Ingo Molnar , Dave Hansen , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 10:48:49 -0700 (PDT) On Fri, 13 Oct 2023 at 05:05, Linux regression tracking (Thorsten Leemhuis) wrote: > > Thomas, turns out that bisection result was slightly wrong: a recheck > confirmed that the regression is actually caused by 45e34c8af58f23 > ("x86/smp: Put CPUs into INIT on shutdown if possible") [v6.5-rc1] of > yours. See https://bugzilla.kernel.org/show_bug.cgi?id=217995 for details. That commit does look pretty dangerous. If *anything* is done through SMI after the code does that smp_park_other_cpus_in_init() sequence, I wouldn't be surprised in the least if the machine is hung. That's made worse since it looks like the shutdown sequence isn't necessarily run on the boot CPU, so the boot CPU itself may be in INIT, and any SMI quite possibly ends up treating that CPU specially. Who knows what SMI does, but the fact that the affected machines seem to be mainly from one particular manufacturer does tend to imply it's something like that. And the code does do a fair amount *after* shutting down cpu's. Not just things like calling x86_platform.iommu_shutdown(), but also things like possibly the tboot shutdown sequence (which almost *certainly* is some SMI thing). I dunno. Thomas - I htink the argument for that commit was fairly theoretical, and reverting it seems the obvious thing, unless you have some idea of what might be wrong. Linus