Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp866732rdb; Fri, 23 Feb 2024 02:32:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIE1sAS098hXecCTcMWuWCaya1wsvuQk3A1OHo46JcgLCX8DZyO5oHclLs4QLplPSMvwyGUcjiQKnBx2neqm3hvu+m2nggLR60ht7JRg== X-Google-Smtp-Source: AGHT+IGVsWxwWaViTwvpeB4wxGh1LItQNYbzhAqARW/QU/I+khzHOdpsAHC0C6zJRdqmYM0NUFsy X-Received: by 2002:a17:902:ea06:b0:1db:e7dc:3031 with SMTP id s6-20020a170902ea0600b001dbe7dc3031mr1758914plg.2.1708684320530; Fri, 23 Feb 2024 02:32:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708684320; cv=pass; d=google.com; s=arc-20160816; b=qFUari2iNMdrns9PGsz69g5EEMJRPLx4dd6Hq/tz3jyclamJt8Cn9vZ9x7jrwnT7+B 1/B/8KaaBxwITXySIuI1mMo6hCvjdJv554VwSyO+TRJtfwgEodwXB5V+hbswbk/6bS35 PVz5Ev7l+0MT9JPGmKR0o6IjWOD/vVwXPGEmP+D8EZVpbzyExRRQeWMd/Z4/lY+jnYsy ETCCBUuVjC3P9ZfGErQZ74ihaqeRJfDG+dUZwATDF/1CWdgAl+0dEZjT+gDgKEonxe+c slweFfkxOMyq55QmiycMIk3c+24tSMoEww9Y29gosIc7XMBYhazrgKxN5MmlpkpxWlkH yPkQ== 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=jkLLuHQoX7Qx5Fy5qJpixZOVOxqV9iRWh6D0pLconUY=; fh=8QDqhbUYqUmo6njZfsgNvzC+8/sB9djjWa/jdu7CcQ8=; b=BR/0mLJO2bRhM/FgjJkC/jdbvLaZK4CWM1klnJkNH+1Pi8hoMXWD/kLEjhVEqAChTj ICpQsC8PffxRsdRpDWiFYLgtILdaTZ4pQCCSMk1YjM6CsMnRNC+YI9mwviRwvT6Rp1J2 taNSJE8o5MDT+6J36vxHEFj5tYxsxxM0ohWBG/o/IdlkKYbbAOVqfyKuhLlihkn+JMUf JNJVylhUlINSLZJ2JHu5h1OAreUt2iB6KbXyeCn1Jizfx0nUGOndzPk2if9b6153Ag8O GRzpt4tffVIE2u0shpodLxgpdP5haj7BBBMzk6h1dwL2/WBivZn8gfcLx07g2ws/YD6T XWdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YiVSVT26; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-78134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l9-20020a170902f68900b001db8cd7492asi12030298plg.86.2024.02.23.02.32.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 02:32:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78134-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=pass header.i=@linutronix.de header.s=2020 header.b=YiVSVT26; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-78134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78134-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3A86E2850DF for ; Fri, 23 Feb 2024 10:32:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3E2861678; Fri, 23 Feb 2024 10:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YiVSVT26"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="09ZIG2ZH" 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 62C3660EF5 for ; Fri, 23 Feb 2024 10:31:15 +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=1708684278; cv=none; b=GVBHp726z+N+4LWxyfGqzChwoblYTqAkBJsLGz4cwjQvtBzzRIEeSboSiRQfKa+ebs4i618ZDUg6TZ/HcUs683HwJKd4TmP9JcjUT48wvxjV+sNJw4z6GQekvC15JzeWjoBIrFSUY0aaIOL+SAZGWs+RnNTDy5vevzr59/5FQpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684278; c=relaxed/simple; bh=jkLLuHQoX7Qx5Fy5qJpixZOVOxqV9iRWh6D0pLconUY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=bxtn1PWTaKUVreKhD6Ei9hwiI99e93mdblOiqevJ3LnwT9tHzFWghRspzFeywCJMFn6NNK30IXk0/GvGtYO5+dNI04obysTpjUbF88hLGA/Gz+G54klnwpevMa/psOmi9NlFD9Os05wr0kNjT1eeOus1fAojE7HtxJglm2CwTbI= 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=YiVSVT26; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=09ZIG2ZH; 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=1708684273; 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=jkLLuHQoX7Qx5Fy5qJpixZOVOxqV9iRWh6D0pLconUY=; b=YiVSVT263F5FBqEISJkPVpVsZcbfVYxujjjgmA68+1aW2JPWI88DfN/lemthMtK9Xk+BYk MgST4jZJNVsyNLdN4eVZOV+0A5SRkDYOTuZBmumyXO8//S4D7zAoBbMHxmutSMB6IyzpKP 6cVUOYz1ScR4VuG/JeY+rJdfXl2Qx31iV/xfxnEoxFVON5ouD7AcLPZQ8RKmL+tcbOMWwk sLbKA9+9jJ5h22X1l0RdrMHbw8GbGhf3bivax/n/FQMPz/PCwW6apOB3mN6s/QXtukML1X yEIrYNmzz4LTBTjEwg+YsGUCkssgiC9EjzW1yV3N8Q6Wd5gEgzTwXYlVsO1PxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708684273; 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=jkLLuHQoX7Qx5Fy5qJpixZOVOxqV9iRWh6D0pLconUY=; b=09ZIG2ZHx8YiIlTpa2V0EoiX45d9E+RxpvYkjsbD254Oww6TUCvu2V8tVDb1bx9jIP0dka Sl0WEcqgpr8YkrCg== 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 16/16] x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method In-Reply-To: <20240212104448.2589568-17-kirill.shutemov@linux.intel.com> References: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> <20240212104448.2589568-17-kirill.shutemov@linux.intel.com> Date: Fri, 23 Feb 2024 11:31:12 +0100 Message-ID: <87jzmvcw0f.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: > MADT Multiprocessor Wakeup structure version 1 brings support of CPU > offlining: BIOS provides a reset vector where the CPU has to jump to > for offlining itself. The new TEST mailbox command can be used to test > whether the CPU offlined itself which means the BIOS has control over > the CPU and can online it again via the ACPI MADT wakeup method. > > Add CPU offling support for the ACPI MADT wakeup method by implementing > custom cpu_die(), play_dead() and stop_this_cpu() SMP operations. > > CPU offlining makes is possible to hand over secondary CPUs over kexec, > not limiting the second kernel to a single CPU. > > The change conforms to the approved ACPI spec change proposal. See the > Link. > > Signed-off-by: Kirill A. Shutemov > Link: https://lore.kernel.org/all/13356251.uLZWGnKmhe@kreacher > Acked-by: Kai Huang > Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Thomas Gleixner