Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2250758rdh; Sun, 29 Oct 2023 07:25:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFM8Oxm7Zyvr2Lw5iv8PpxkfACUvnas22X4T1oPBX0xcMQjalVMCjYRu1qT32JQoxc3iCzS X-Received: by 2002:a05:6a20:7f92:b0:157:64e4:4260 with SMTP id d18-20020a056a207f9200b0015764e44260mr12307927pzj.9.1698589508709; Sun, 29 Oct 2023 07:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698589508; cv=none; d=google.com; s=arc-20160816; b=xrIGzCi9gmuholT5EvhnjWESc+cMA82Iw35jm/+/377dbRi92b3dKDNEpL3bdYiAc7 QZpod9+n9J4tqEDnsFIJ44Y8IxAGKyBhFMf640/SZeFepaszPTjP4/KjTHwQX0XQtAsy 7R2Zs8u7m/cG1DZSC5Qd5VVPq/4bSwmPOOkD7nTHFO/hhZGyBVV1fPPIpVsGKtqn8YZx +j7F25/jdPMe/3GUX7Dv8+vH/dlg0AAK4PoT1yT1aJ6Pt92NjBsTOmI+GJXuDdBNi832 zTBhmwdk//a5p2+hEpU51zF6YaYS/rqlJxGv7TAXgFs7XmaWSqHf6fsVg95qspYHUffZ BJfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9bNyKZ3lEju+y3xxeeV8KkF2HvMTgAbY6eA1IX4h9gc=; fh=XmidgA7Vj/OIXTPx2PV4CE0dFJUjRrD6Zcb9kp20om4=; b=IG9LPAgBAoPis1ytAVcOP4mAWQ9y7HVuT/a3xN0t5udGRiDttxIkpF7PVczGyOL4or uztlRt0F+WPwuFtpkt69BDyUQz5+qZLhhdqwa0452JcWRbOCpZu2rYWisbOtVH1tdG0L PbezUB3i1I/TJ54v34BIqr/nuCt7qG0nbVLH+hbWF0tE8oY2gbRCgci2pbpZ4n4GAUC5 HaH0+vcrqu3NXd66itMpKHMbG2HWCOWkwjBUQSwmgQrzI6QXI7hPXjygH7ZEOIrUg6q4 NiD4C/3raBKNSQtbzOGxjzJwQUf/gbt2uo2y9OeB1CyrYfSDHCHv38qoxgV5dO/o6nCR rQfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MpJcOv8y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w71-20020a63824a000000b005ab45ee3e7esi3589564pgd.299.2023.10.29.07.25.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 07:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MpJcOv8y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7A86A805A8A2; Sun, 29 Oct 2023 07:25:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230148AbjJ2OXu (ORCPT + 99 others); Sun, 29 Oct 2023 10:23:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjJ2OXt (ORCPT ); Sun, 29 Oct 2023 10:23:49 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E515CB0 for ; Sun, 29 Oct 2023 07:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698589427; x=1730125427; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=TRjASw0YiznO3WvwpwfHDnA6Y5I6mL2iMy28CyYTpIQ=; b=MpJcOv8y/WXaJ3ckx7J5oloERjoc7gMaOBONHZp1TJgEWdAKQoXIRT57 4hdAbpq8vE4XffFBY7G/d0sc/XNlOLUzyXNReTPbrD43kSk5iGcjK/0Yq xVHVGQPjUVCcWnUv9p7FtjbIcmWOSLWT54MHTkT9TeOdEdz4WBBjQrITp EJrGh4ID5EdeVuKW4n0cMKNZP/56LpSSJnt+lmymjbVI7RD3pQVbj3UwP 7KRdpGoE+kfACNbKRwQLapBX4tT4pTZZcyabnlol2uCJOspZRr3pJaKh7 PNhpCcMaETxMiNSA9f4ArDmpSbbJGWRh2Gbq7dg8QFvd1cCco7Cype0aG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="391817803" X-IronPort-AV: E=Sophos;i="6.03,261,1694761200"; d="scan'208";a="391817803" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2023 07:23:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,261,1694761200"; d="scan'208";a="1289679" Received: from aafra-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.32.230]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2023 07:23:27 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id B5C9B10A29C; Sun, 29 Oct 2023 17:23:37 +0300 (+03) Date: Sun, 29 Oct 2023 17:23:37 +0300 From: "Kirill A. Shutemov" To: Thomas Gleixner Cc: Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "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 Subject: Re: [PATCHv2 02/13] kernel/cpu: Add support for declaring CPU offlining not supported Message-ID: <20231029142337.54cvg7cuwlmr3bzc@box> References: <20231020151242.1814-1-kirill.shutemov@linux.intel.com> <20231020151242.1814-3-kirill.shutemov@linux.intel.com> <87a5s225vp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87a5s225vp.ffs@tglx> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 pete.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 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 07:25:06 -0700 (PDT) On Sat, Oct 28, 2023 at 04:12:10PM +0200, Thomas Gleixner wrote: > 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! Thanks! Thomas, could you take a look if the last patch in the series is sane? -- Kiryl Shutsemau / Kirill A. Shutemov