Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp386244lqg; Fri, 1 Mar 2024 08:06:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBfW3myJfN0xcG24Y8MPMI7WTtQiAuNzHoPZWzyuWDLwaI5D+oVEF0YQJCT/744N2TN4LlTiU2g8DFU304EcLPQzOEW2tczLnffB2+yA== X-Google-Smtp-Source: AGHT+IHW/Qy1/prvQp4kjBuYgqNMJCWKRHCGFum3AnZsbobTpNKc8kkgJIED2DWt1Q+24YvVZzfN X-Received: by 2002:a05:6402:b6c:b0:566:f5d6:4b4 with SMTP id cb12-20020a0564020b6c00b00566f5d604b4mr250497edb.12.1709309192613; Fri, 01 Mar 2024 08:06:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709309192; cv=pass; d=google.com; s=arc-20160816; b=FR6sOc8wYS2uQ2c/HsiIUWE/U5ciCh6HCjbMq3q6rnSAjHevlMAFNakVnI0yAD/UyV QGHFpy4JFjgfbZ6hxbaVwS6JX0PF1IQux+sgYv3yrcbGZNU8SVUE4N5l0FO9RZFAMKUX gVyDI1SNngK9OaB5wMo0zhsfozaYV+XjlOiigZRNfAuWM9ei/dCmLMvwg29DIyYyzX7Z kB418vuBdl+xNhLmCxPmbcbBjb9187G5YVLkNpqCzvkHQ4uyJIrFQAauK+1Q1SuUFXKh v58nG7FKVdd7uOyUh4Dv0gLLNlrZbm/4/M7wyRXbpikXut9xB+vXc6xjn61dd7tevnIC zeWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=YQSxIxhfhN/VDbJ4/UsfmGG+xb60D6jsscmOpw86JGw=; fh=D6ADdT+oeLO0AeK42qsOoYYUJAZwvbjR6p1xSULOrJQ=; b=Sx0wFy95Bo7Sz3vKM19rXHl4U9WKU0HBeIEr6UsCXu2S+fgkXUa6VxUGQftanFlEku qtHv32v57An1GZWOGbqy4hKccgyDHon39G2SF/kevZ++ptCazqSjJBW+W13ddUez0/SQ OrMYRvyDqlUkR3UIuH9p2dHXhg793kN7z1tJJcRUtWNwVPUAg/ojCYz8Py8xiuXx3/40 F49RGPQrvOVhCI98N2iKzbCpNao4lFpQopt/leRGHMNQPq//H4PBDPekchSsRr1vLq1x Okk3/4zhfwbLYDSLZdvawkyKVU+yLp1uhJTB4GRgU8GCnTwUvq+8+ktooEJovHXwYx8f At2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d29-20020a50cd5d000000b00564902f5ebcsi1568060edj.184.2024.03.01.08.06.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:06:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-88663-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B94331F23D3C for ; Fri, 1 Mar 2024 16:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05FB471721; Fri, 1 Mar 2024 16:06:10 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A8FB3A8DE; Fri, 1 Mar 2024 16:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309169; cv=none; b=VLO0aNPUFtECG2KkVm9Vif6SwtHSMyjozd3PBMA7Ygbnn5l9aXLPiLzo9jZoIP635I5Gb1PvZHUe/LT2VfZSkAIr7NzEUlkCR1kXQByi2CIWCwvGUzUNjcokltDSMkSeTQulsEyQNaA9C3NV2SNs0R0PPgxT3FFlU/lERPNKw/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309169; c=relaxed/simple; bh=+I5q0INsRXMPfcHW7TQCG058hRSgznIpYTjriNmFjAk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kevFHJRcx08rvKNd6F51ovrzhzL1tDpPaYzL1uyp9eo+YvjFoExpavCHCdv0NJhKoeWbQYxQNlCtf1pBRqhu3YqB9OPLFmASv4Zu9OF8Xp83/HwC+vcJGevx/mDLDAVzwFvhEJC3QB179JSaXpdXjJ/puGSixLk79speiX2+GZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 193491FB; Fri, 1 Mar 2024 08:06:43 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.66.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BAD6A3F73F; Fri, 1 Mar 2024 08:06:01 -0800 (PST) Date: Fri, 1 Mar 2024 16:05:52 +0000 From: Mark Rutland To: Doug Anderson Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Misono Tomohiro , Chen-Yu Tsai , Stephen Boyd , Daniel Thompson , Sumit Garg , Frederic Weisbecker , "Guilherme G. Piccoli" , Josh Poimboeuf , Kees Cook , Peter Zijlstra , Thomas Gleixner , Tony Luck , Valentin Schneider , linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first Message-ID: References: <20231207170251.1.Id4817adef610302554b8aa42b090d57270dc119c@changeid> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Doug, On Tue, Feb 27, 2024 at 04:57:31PM -0800, Doug Anderson wrote: > On Mon, Jan 8, 2024 at 4:54 PM Doug Anderson wrote: > > On Thu, Dec 7, 2023 at 5:03 PM Douglas Anderson wrote: > > The sound of crickets is overwhelming. ;-) Does anyone have any > > comments here? Is this a terrible idea? Is this the best idea you've > > heard all year (it's only been 8 days, so maybe)? Is this great but > > the implementation is lacking (at best)? Do you hate that this waits > > for 1 second and wish it waited for 1 ms? 10 ms? 100 ms? 8192 ms? > > > > Aside from the weirdness of a processor being killed while holding the > > console lock, it does seem beneficial to give IRQs at least a little > > time to finish before killing a processor. I don't have any other > > explicit examples, but I could just imagine that things might be a > > little more orderly in such a case... > > I'm still hoping to get some sort of feedback here. If people think > this is a terrible idea then I'll shut up now and leave well enough > alone, but it would be nice to actively decide and get the patch out > of limbo. > > FWIW the serial console dumping issue that originally inspired me to > track this down has been worked around at least well enough to not > spew garbage in my console. See commit 9e957a155005 ("serial: > qcom-geni: Don't cancel/abort if we can't get the port lock"). It's > still a little awkward because we'll be running fully lockless during > panic time, but it seems to work... This is on my list of things to look into, but I haven't had the chance to go through it in detail. From a high level, I think this sounds reasonable; I just want to make sure this doesn't lead to any new surprises... Mark.