Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1998402lqg; Mon, 4 Mar 2024 09:41:51 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWVe0ZPLrJH9qC7xsIS7nPHthbtXJFAHqaTRpJYja0UiHbOKouk0zHJSbDpUgIIRgqR1I1pA9pwihfxfo2ZlLoRd853XSsEIlpXXR2P8A== X-Google-Smtp-Source: AGHT+IGx29gXH5R4UCN0txrg4i/rPFa1jHgrVfW3kSa/iSPoKyMSfRqSoFJht1+rpkxkcU7qQNmm X-Received: by 2002:a05:6a21:99aa:b0:1a1:5000:226d with SMTP id ve42-20020a056a2199aa00b001a15000226dmr2869561pzb.13.1709574110909; Mon, 04 Mar 2024 09:41:50 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jo25-20020a056a00909900b006e5f7e04915si3703914pfb.159.2024.03.04.09.41.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 09:41:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@chromium.org header.s=google header.b=JWAlWxKh; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-91014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 929B8283B1C for ; Mon, 4 Mar 2024 17:41:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B48961662; Mon, 4 Mar 2024 17:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JWAlWxKh" Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCB26612D8 for ; Mon, 4 Mar 2024 17:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709574104; cv=none; b=aG+NGcnXDUQvZH4euRUBsmRKsuShoGi0vrEWudyuNmWOJZcNMUlQwAwo6k/rXcd+HAIu4NTk/f1sXV0Svh5XpqfNpgN5J1h20e5cMippnQT36CFhORqAwB2Wdbz0/GmfON0C/LDAOgkjOyI6nZw4NDfxRzgW9kq8rUwff3ZMowU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709574104; c=relaxed/simple; bh=tfmsGbKyPBL3Ittd+OpakBE0HsGkb62jQroArNWygKo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IZclY7NpaESZ29u47FYQTtcfZxGU1rghhewr18m4AKnt/yRwviATFQrPPWD66X1YrKnvyVscCdoznCUdEXumWRKG6IsDxnGOl70TL7Fr/3M2YXS9Rp8u0Kw65pwzDVEUHjJ8kWQkqXg8lBgItmLWIJyyiXKprsDk4w8WEmcauGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=JWAlWxKh; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-7882d713f6fso37341485a.0 for ; Mon, 04 Mar 2024 09:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709574101; x=1710178901; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tfmsGbKyPBL3Ittd+OpakBE0HsGkb62jQroArNWygKo=; b=JWAlWxKhQQqe6DVlZgMygQiOkn25ZUUpEnGBECt7yNdl0SSNMac2jbFKUlyX16uueu 6FZmJZH8Y8Pm2cjEuiO1TooTt1de/jWjSoJbsBaCJ4ucKWgRNpv1WWjZAUnRvZ4f2oy0 PNC7CwKJkQFG1fSbQhiEdroOPMwuKmsygoflo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709574101; x=1710178901; h=content-transfer-encoding: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=tfmsGbKyPBL3Ittd+OpakBE0HsGkb62jQroArNWygKo=; b=YX01rBpcKtJw6OmUC5h5AiXOBgefYHMDSVtmIrIul3cP3TMFwi82fCZBkOH297kTrI Up/d3Euhli89zkNxB8SQYgWLKactVJghyPgtPozSPpbfQ2Or0u/19lOC75zt6AQAFUj3 1qQczYk3XL5cBQ/OChaOtJGTBtAgqIjUzS727fiX9qMucVeQHgc1aImViFtMs4pGxydX TCLM8XLgwxgn5HrX/WLSd38Jf511yvXccbAIilVgufafbPPMCJY65ZnUSEDunSC2f+Yk dvGV4dxZZsyENb8VyMpCIq62ULpj0oE46frAkP+AkuJ/Kan1xJEF8r+50BCpU6fGTgTw iGYw== X-Forwarded-Encrypted: i=1; AJvYcCW7k3R0qx7UKiGOhLZD5VWcrCD7y4urHPUfvAtuI8RrkpxFEgVKTcfDuiU+etJMd402Q2OP9o/fNsNfnPPTDMPV6qHGFJPKXg6cSbTo X-Gm-Message-State: AOJu0YxbkjMLGgbbUNhjb/HQcvww7Q0qqY0vDe9Phd9rsAq2AKUiLScQ 7oYu05KWducHZ2cjADlpcMXXeeNkZet/UvNpZMx5ySPvE4K7LLOvrCJgYl3XTuMbCdM1haAG7q1 8SXBK X-Received: by 2002:a05:620a:810:b0:788:2a7d:c5a4 with SMTP id s16-20020a05620a081000b007882a7dc5a4mr2845269qks.78.1709574101376; Mon, 04 Mar 2024 09:41:41 -0800 (PST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id x16-20020a05620a0ed000b00787b95c91d3sm4589051qkm.62.2024.03.04.09.41.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 09:41:41 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-512fab8cc6aso8774e87.1 for ; Mon, 04 Mar 2024 09:41:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXBHrTHLv/i4poJlp3hZ3K8oeBas/ju3wl7CtVO6BfTywGVfi58a+oiuNx2mBNdIjeXZN2Q0I/uE+GmvVsjO07nNsl6zBvaBtfsCNld X-Received: by 2002:a05:600c:4f07:b0:412:d6be:a32b with SMTP id l7-20020a05600c4f0700b00412d6bea32bmr2093wmq.6.1709573676220; Mon, 04 Mar 2024 09:34:36 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231207170251.1.Id4817adef610302554b8aa42b090d57270dc119c@changeid> In-Reply-To: From: Doug Anderson Date: Mon, 4 Mar 2024 09:34:19 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: smp: smp_send_stop() and crash_smp_send_stop() should try non-NMI first To: Mark Rutland 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Mar 1, 2024 at 8:06=E2=80=AFAM Mark Rutland = wrote: > > Hi Doug, > > On Tue, Feb 27, 2024 at 04:57:31PM -0800, Doug Anderson wrote: > > On Mon, Jan 8, 2024 at 4:54=E2=80=AFPM Doug Anderson wrote: > > > On Thu, Dec 7, 2023 at 5:03=E2=80=AFPM 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 th= e > > > 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 t= o go > through it in detail. > > From a high level, I think this sounds reasonable; I just want to make su= re > this doesn't lead to any new surprises... Sounds good. For now I'll snooze this for another 2 months and if I haven't heard from you then I'll pester you again. There's no crazy hurry, I was just hoping for some sort of decision one way or the other. For now I'll hold off on changing things to match x86 exactly until I get your take on it too. -Doug