Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1787968rdh; Sat, 28 Oct 2023 07:12:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWbAASbE/lCMu9tTKgEr/mxN/pf5qbQjIdIkemoUiV8KYS/M+NUsf67U6q/ENXKTmQ9cyG X-Received: by 2002:a05:6a20:cea4:b0:17d:d70f:a2c3 with SMTP id if36-20020a056a20cea400b0017dd70fa2c3mr6161169pzb.20.1698502345399; Sat, 28 Oct 2023 07:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698502345; cv=none; d=google.com; s=arc-20160816; b=DJxwPuaDyeIkui88sclhmbvgbcLptq/MiHst/q4ixErD/6RJ4I+lDwqRSlG9nbOoor TqdY+UMEgEYPpZ7h8+MjGAT4WMmwbEaulfUOEeNJEyx5Jy7hhDGt9c9pJO8+uSy0nIRD caeD8LTaYnAfR1l2AlSfT4e07BkDOJLsnFyVkbh47ZXHpezKC6j6FKHbrVrm4P/7FNCw lWs1q6jtDfdlm48hX9ZnEI8nigWJEZZRhyrg5Ja6hNCk454FZNjo7JfB7HgQJXwM+I1v +MeauG5vEFUoUrvbsZtr0ONE2pZ/GY1TSaFmeTLOUR7fZsZbJ00aJLr9YMmkPovBJLku rc1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=CWAt/PDpViqk3UG1Vk3j+0hCIjdKt4J31sr7CYkEEWA=; fh=8QDqhbUYqUmo6njZfsgNvzC+8/sB9djjWa/jdu7CcQ8=; b=ZslFjzmw8M2mPVhIKH/IcUmNs9fMzjdSg/IOzgaMEYQF7TjFHfeL5mguHzYeQ1/unx 3iZauBpWLxaeypVS++Uw+IuhA9yaZhfi3rIGTwzNqn6f7ath5T8mTzeZR1/yoPmBMici nB6Wn32o5LGQc7l9KTMRYwfirCJ5z8wIffMnPF01sz1fCS7tJ0hWsu0CWoTx5SH4RWRN R8bY/YfsbNwHMTb2E96qbYZypZYHjlH/aOgQWmLJhQyBVbcZyy7jAP2R0eT8RDOYZcT3 X05EfJZU86yFb0utbEUQeyqX8EkV9WLn6yAuMn/8Im8T/rNIuyW8sR0UB/ewgJSwtUUL QiGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GNY6kXNB; dkim=neutral (no key) header.i=@linutronix.de header.b=NEQPzWuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id fh9-20020a056a00390900b00690b88a9c32si2501015pfb.82.2023.10.28.07.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 07:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=GNY6kXNB; dkim=neutral (no key) header.i=@linutronix.de header.b=NEQPzWuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A003C8096FF1; Sat, 28 Oct 2023 07:12:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbjJ1OMP (ORCPT + 99 others); Sat, 28 Oct 2023 10:12:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjJ1OMO (ORCPT ); Sat, 28 Oct 2023 10:12:14 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC1D3E1 for ; Sat, 28 Oct 2023 07:12:12 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698502331; 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=CWAt/PDpViqk3UG1Vk3j+0hCIjdKt4J31sr7CYkEEWA=; b=GNY6kXNByQkJQe/0Dk5K7kRNpz+qZa+bZR68lQGT6vUrL6kSjnnLbImYBXOqP0+ueebAV5 gsOQnMx6lkcBlUOk5IT2YamImtiO1APlalzZHJb7nCgHJbGRroY5GgrTDgJEgicUztWpYp sx/61YRKSiSjjnTSsDQXfheFy+KmeSW5n3Xn9puHFQrJxRgR4rMTXUBSH9i39JW5b5wNeU QfgBJBA59dmshNBvyqWdkucR5TF11vFr+1+9PGyQF+8R0Dn+2ul24BKCsRGwvgVf0OH5Yn gkJUEjymQKTw+WeNpfZpK0AC6UntzEXXvF1oOc+rX6bU1ajxc2t8qK0QAB5Okg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698502331; 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=CWAt/PDpViqk3UG1Vk3j+0hCIjdKt4J31sr7CYkEEWA=; b=NEQPzWuSx4qqzS4AYxdB3fJkAE2b0tT66TOWNyVlzvm+ClVFz5ErrXG/mXZmfIFd/FbOHY sNPgaHg8ASI15CBw== 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: [PATCHv2 02/13] kernel/cpu: Add support for declaring CPU offlining not supported In-Reply-To: <20231020151242.1814-3-kirill.shutemov@linux.intel.com> References: <20231020151242.1814-1-kirill.shutemov@linux.intel.com> <20231020151242.1814-3-kirill.shutemov@linux.intel.com> Date: Sat, 28 Oct 2023 16:12:10 +0200 Message-ID: <87a5s225vp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 28 Oct 2023 07:12:22 -0700 (PDT) On Fri, Oct 20 2023 at 18:12, Kirill A. Shutemov wrote: Subject: cpu/hotplug: ... > ACPI MADT doesn't allow to offline CPU after it got woke up. ACPI MADT is a table ... This is about the MADT mailbox wakeup method, right? > Currently offlining hotplug prevented based on the confidential is prevented > computing attribute which is set for Intel TDX. But TDX is not > the only possible user of the wake up method. > > Introduce cpu_hotplug_not_supported() that can be called to indicate > that CPU offlining should be disabled. Otherwise the changes look good!