Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp864859rdb; Fri, 23 Feb 2024 02:26:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVsqLpkOY7UJBkGN1TLMpAC+AgMalsb2fuvjLu9qnHCBt7jbcnT9PgXiuAhlOE5f1J3mwibJJ7NPkODavabzbn06f7ozF9p78kfCD+DLw== X-Google-Smtp-Source: AGHT+IGFdx3VoyD1mkmCQ/ZD3h4tZkDo3rQg1JcNS/WfR+U4VGI2hjT4Blgn8jDprfTOAA9cG8pl X-Received: by 2002:a05:6102:c8f:b0:470:3eff:bdd5 with SMTP id f15-20020a0561020c8f00b004703effbdd5mr1347661vst.27.1708684013114; Fri, 23 Feb 2024 02:26:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708684013; cv=pass; d=google.com; s=arc-20160816; b=pgioQ4UOWgFarR/sWlTjbqr2ZeH7uqZY3i4xFVe6ApY+do2gxYAvbzf9Bp37xfnnnO REvqPB8vxo02+7EQx4rHdwdr2njejy2ZXYdj17x4wb11xa5zxXEq0EAQBKnDRUsSdbQc vW66gJBzvO/BMeY9Mh5+gXvlG1BivAobdmppKARzevxZ2JppGvSAsvlZFyL6un0a3y41 tZxU2NYVFH7lPWVZklms517p3CLc1gofpliFqqvHgSaAHwt4+G2WQgcQF9/GLi8Pf+mm NHNR39mJfVOqnGFqW2aXlAgI66T00mFwSIQShmSMKUNqY5nnps3tnQ4EGNFLKjRiHpT3 nTdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Gj+c+z0QQUx5LZDDvpBGXmu7oB3+rGMorguEN/YL7Wk=; fh=8QDqhbUYqUmo6njZfsgNvzC+8/sB9djjWa/jdu7CcQ8=; b=hyexCLp7rBk1zp2GNCuDPzx/TyJVZLdlIpZ8V4c2sHNUyg60hZkTilrQa4uzNnW1Jd GC2aAit2eggEtyfNCd0Hyec0GaPUxx8UlN8mOXrNHxoUZMpRac/CrrJIxwf8XN3+3yTK XSDqcm+FQKewAzlX8zXxGlQvDAIk8K3Qedh5cbpecGDBNo0QD2GhBRVgPUwEfDTa+vOl tmonSquoZxL/fn4rel8dUEcIBfDK3NA9zLAesR5sTkRFxUvJoSdleO2sM93TDDSlp+hk USwe1kKHsLawW+h2xb//J4ms33SP+Whf/z3/fYhua1bxBIY27erezDOVffTw8iqSI2MM 0Z3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IKYZ2AI4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=rUaZd31h; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-78123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x22-20020a05620a0ed600b007856e7734e9si14691120qkm.366.2024.02.23.02.26.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 02:26:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=IKYZ2AI4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=rUaZd31h; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-78123-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78123-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B15851C21465 for ; Fri, 23 Feb 2024 10:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B5BB5CDFD; Fri, 23 Feb 2024 10:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="IKYZ2AI4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rUaZd31h" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3DA95D493 for ; Fri, 23 Feb 2024 10:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684004; cv=none; b=pDy6sbbAlu3hISZ7nNkCigqKJGyBxJu1xBPTsI444g07XQKbbAyO2m04S4b2wlCYkf/npkrbcDrvaZhnR+eX6fbH/1enKPNObumxJ/tlkgXU60Gm9rH0XXMrZvODp+GHVUOvAKb5Cclsy6U7D7c4w1tX3QrJBLPej+I1R4/u1DQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684004; c=relaxed/simple; bh=Gj+c+z0QQUx5LZDDvpBGXmu7oB3+rGMorguEN/YL7Wk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ZJZQHnKFPQphxLuRpitKewluc2+V0IuSwwbgeyApzXa34vpdxdCYJATpygGHC34erSeeGu6g0I9qraapVNw62T00KmY5+OlF6T7RVqZ/OZs98dou5B5cpKxjE4F7ReLrNn3wwCM8Paqv1fI9SAP+gat66UuTtiWdWKhJTFNtv8E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=IKYZ2AI4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rUaZd31h; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708684001; 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: in-reply-to:in-reply-to:references:references; bh=Gj+c+z0QQUx5LZDDvpBGXmu7oB3+rGMorguEN/YL7Wk=; b=IKYZ2AI4bvKLy/sS5aIpSZ8CRBJ/Jfmo6Ol8+942g7pqPZIBzVOhKmgHw+CGuqf2E7Lzo4 zgmkkqe8bnmI+s04OV5U6Wz3UvVq2BJ7v2bWlMtRxMLEBSGwXauh6C4Y/oSHe7HZ6cdZim Hixfjs+7Zl4tGPcODF7UMnRjbkJ1RqnICoMniYA2d4iVLAxuBdAHbNn1y6MH5WZae69ql8 L2Ww4a3DeOOgdtHBc+Re0+dPOhNljA1FZlMelOYZdczVa+B700oxbXCnUPaUTnXM51Yab6 PfN0wIKGvC6nPfAWgAl0Xe52jeukQrdntphGe2YL6xjt0DuGOae5Ycp41mV66Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708684001; 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: in-reply-to:in-reply-to:references:references; bh=Gj+c+z0QQUx5LZDDvpBGXmu7oB3+rGMorguEN/YL7Wk=; b=rUaZd31hVYdpyiWcibb+qKArRGWOQggoYnF9LYPkfghbBc+YFSS1n0Qc3uviJD1OloQhjj 28b9Uksre55OI+CQ== To: "Kirill A. Shutemov" , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Baoquan He , kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [PATCHv7 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback In-Reply-To: <20240212104448.2589568-15-kirill.shutemov@linux.intel.com> References: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> <20240212104448.2589568-15-kirill.shutemov@linux.intel.com> Date: Fri, 23 Feb 2024 11:26:40 +0100 Message-ID: <87sf1jcw7z.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Mon, Feb 12 2024 at 12:44, Kirill A. Shutemov wrote: > If the helper is defined, it is called instead of halt() to stop the CPU > at the end of stop_this_cpu() and on crash CPU shutdown. > > ACPI MADT will use it to hand over the CPU to BIOS in order to be able > to wake it up again after kexec. > > Signed-off-by: Kirill A. Shutemov > Acked-by: Kai Huang Reviewed-by: Thomas Gleixner