Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp870725rdb; Fri, 23 Feb 2024 02:43:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVRx5Tz9mFz98FUDRsWhj5pzM2RbKtc/qFDm1HGmF9tSINC7n5EQA6cXhPVFDggLuFWJSHSQ/crcZXkEMaDTJWljufo4W5LOpbzjMOaSg== X-Google-Smtp-Source: AGHT+IGdR+WJfv1ld0FTw5YLabLJG2Co1052Ejqn+VELSxMZK74XzmIuAhui01Je1evhDT1HOGHx X-Received: by 2002:a17:902:db0f:b0:1db:da3d:6fea with SMTP id m15-20020a170902db0f00b001dbda3d6feamr1603713plx.50.1708685031784; Fri, 23 Feb 2024 02:43:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708685031; cv=pass; d=google.com; s=arc-20160816; b=NiyWxLrbR/3l0+ilGXpKKraTDc7fqDGgbpvmZPqJA3h5C3KBldDwPrgKr9e0Y31m3M 1nz1RsEjL0TKN4xVZIpCcM6jiogQcSQcRAcoFwepxeisiHNlKAegUVNpXG2NZ+eM8GXe njGvV3DeRgXopVJeYFBp+mHFdlxuJBKrMnV560ubGmc9x7gOlIEs56m+P+lL7NoCkBXj 3uWaSK+sdzIa6vZmxWd2KMsNn6I8fqqueft0rC+Yeg+qvNfY9GnCkx8xt3MtiTW7FL2t +JCpKXTnl+Lr6cvlgI59t2J6pUUulUV7w94dL9krdcNeqIKi1OOQ+qwqArjndco5M4wn YMgg== 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=rCkSqOHXuNZNZ4qVAhXnw7igAzpOyBDOC7OEqD/cJhc=; fh=8QDqhbUYqUmo6njZfsgNvzC+8/sB9djjWa/jdu7CcQ8=; b=MfTtIUUab5LtPCqxZPGLMUys/okx4Gge6dmoPsJgonuJfqO4nF/St6MNhPsUGywPLA qCIW2XIbh7w3ANuyNUOuXqLTMnTgq8ItJnmTDaaKmDUNCVuiYOrsndFiC8CD30pIdPWq 7JTCsHzJ1IrUu9n1xFw2UGdyydpCgSbmUr1YOO7QWhpTyFt+y0QQeJPJfWMWEYKylC8J vJkeA+A6YBxWTLxpfDs+j+VuH7QkUTXlxKwxG0aFtsVY6NX15LDmxpbKLH/OPyLbqYKQ 6/EvIHuVfriQu/wbh4SG2doAjkIUYE7SUA+daq3iKLyi2SnEG0coZlFsR8BpNsyhnT9M 4HOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U11EX3Gs; dkim=neutral (no key) header.i=@linutronix.de; 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-78127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mc11-20020a1709032b0b00b001d9e8a8809bsi7249356plb.600.2024.02.23.02.43.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 02:43:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=U11EX3Gs; dkim=neutral (no key) header.i=@linutronix.de; 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-78127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78127-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AD17CB251D5 for ; Fri, 23 Feb 2024 10:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E16B5D473; Fri, 23 Feb 2024 10:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="U11EX3Gs"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zbZmICsw" 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 1011A5CDC2 for ; Fri, 23 Feb 2024 10:28:30 +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=1708684113; cv=none; b=lfXnyxDRTalH48D4+MJNLIkG1H79WImXTR0ZSCudI6UpJq+/Ge2na/aTDlJGXrZc+82Ir8bwNIiZZNAtTNoJBPJ0CPKZLRMNHaN8qcvwmhgeJ6ca1aUdzsH5nlaykkY7Dt5IvH+UrqN+iQQ4DXy2y1sLq/oxBEf1MAKm55DPtLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708684113; c=relaxed/simple; bh=cl3yxDrq//HdjpH4tGpYeRfOCYCkzMKRoLj++ITknVc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=HidrOPxTwtx707EowETc9lgfxRje3KuJzINFl6MA4S9PIKOF4bAzuPO7IpRLdAI8qnMkcn75ZTJQ2P0HL5omCYY6bnV0cAp6kjvdfba0HgpL1RmlGqw37EkhKyZeZgUOnPNr5007Qou33m7H36veP0RKi62C/HBrmxMxPfoLWFA= 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=U11EX3Gs; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zbZmICsw; 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=1708684109; 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=rCkSqOHXuNZNZ4qVAhXnw7igAzpOyBDOC7OEqD/cJhc=; b=U11EX3Gs7FK3ddaIS5hLCrLHSqX9h8fgsM12+dEprj9QStdLmwDUXgmjR6ptTQ6s+nm5aC KQp49Cg6YVxaAjH/FggpkbntKzvEAHfW6bH19BZzDvAuGvdzB+03XUxRqSvmR2KFlIjX7S 9Gfe8CkA4zwjNMOqiV5srnkr6hVd+9ayY9O3C8Cr80aK7dmjLqlS7hfTJ3Kiz3MKioJmpV BVSQrfb1dVuIo4kNHW7DeWpx9slJcF2TTTOtc0uEfH+u41wdotKzFo8PbmsAjdMlivK7zy kO1sbtUrK1bWMfz5VVUTE1/DrhsAVFxnaShTHZvnWn6cl1vs9bvbTe9exxnfgg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708684109; 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=rCkSqOHXuNZNZ4qVAhXnw7igAzpOyBDOC7OEqD/cJhc=; b=zbZmICswW00KhN+dV6Wcm66nBj+5YEQ3qEg6CAYuhnU5gj+g/sB9sxUv6UKb+ibV6/Tyl+ xLqpn93b+a658eBw== 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 13/16] x86/acpi: Do not attempt to bring up secondary CPUs in kexec case In-Reply-To: <20240212104448.2589568-14-kirill.shutemov@linux.intel.com> References: <20240212104448.2589568-1-kirill.shutemov@linux.intel.com> <20240212104448.2589568-14-kirill.shutemov@linux.intel.com> Date: Fri, 23 Feb 2024 11:28:28 +0100 Message-ID: <87msrrcw4z.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: > ACPI MADT doesn't allow to offline a CPU after it was onlined. This > limits kexec: the second kernel won't be able to use more than one CPU. > > To prevent a kexec kernel from onlining secondary CPUs invalidate the > mailbox address in the ACPI MADT wakeup structure which prevents a > kexec kernel to use it. > > This is safe as the booting kernel has the mailbox address cached > already and acpi_wakeup_cpu() uses the cached value to bring up the > secondary CPUs. > > Note: This is a Linux specific convention and not covered by the > ACPI specification. > > Signed-off-by: Kirill A. Shutemov > Reviewed-by: Kai Huang > Reviewed-by: Kuppuswamy Sathyanarayanan Reviewed-by: Thomas Gleixner