Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6914716rdb; Fri, 15 Dec 2023 11:41:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNbzdGHI/X+HFqRX2xhtYqaVS0PvJJirDljvscOQEJVtqg80SzAJPLJggQdizMvMne7Pdl X-Received: by 2002:a17:90a:dd41:b0:286:6cd8:ef02 with SMTP id u1-20020a17090add4100b002866cd8ef02mr15264036pjv.26.1702669311025; Fri, 15 Dec 2023 11:41:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702669311; cv=none; d=google.com; s=arc-20160816; b=ZhUQWZg4bJKZgV4GaJP/RdQXkeD2eVRHVc30JdhUTIkfSpln1qfDG+ZlEFMbmHk82T FRno92hxANEcYSwwjdk/2XQ9yo3qAmF3sNhnGOOzl4EnUF4XFwpkTS02lMBr8Q5Yxlw0 u6yknbx9incJW7Z3NBPNwSG1WgyNZlUEi/Fy09e6NuLOKismJ89QFFNUJMpIIYVf0MHn J2ytfx79KClAcC8ALMQsXhHgJypW0vxbgVbm7x0BRu4BHWcy6Qce6QWCFM+uyUzOWfzq GbRxLtFE8dXkT/jOe6+YEYAlRwF43CqqPUIMZlukWNQYAcBxiqCOb1pZ3VUa1rztSyaT v06Q== ARC-Message-Signature: i=1; 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=py2PeKKW0Gg3Y7O2QlrezYfuYNsNwRB8EFj8qodJKBQ=; fh=f2MpH3izXbe4ZfgkCUubtrjbOfKk4HAHQdvQASAtYbE=; b=OkLqFEXf+eTf0inqYIJogIAGWEjIi1NTglKiE1Nc/hAMkb9cuDrPrskuqgWGES+B4g 8D0mSm6m+q8c3ERV4Ktz3PSzYPKFUAtCAK1NGs+I4cQWMUgYzBqU3KSq8aDpRsqnXsvo TyzYbQPGotrLuulOlhJf8m1wcwxuhXrlpZ5XMXM6gXK1/68Fg78CkImbsOObvi8DgXd3 wuBLACrBoi0t0nar5vuJ0+G9KKRjK02YuorBB+ApYpt0vB/wCtFiiRp16XlVVGO+JbzI H+YKf30aqY2a/p1qqrQWqwsc2G8uBT6lwYHCOwILyD9fCL1o+7rArV3OBnolbta+ycTq FRaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CdG5taBA; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel+bounces-1573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1573-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. [147.75.48.161]) by mx.google.com with ESMTPS id d5-20020a17090ae28500b0028688bb3d17si4988137pjz.159.2023.12.15.11.41.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 11:41:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CdG5taBA; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel+bounces-1573-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1573-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 93347B24170 for ; Fri, 15 Dec 2023 19:40:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D98C241867; Fri, 15 Dec 2023 19:40:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CdG5taBA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="AkWe3gTm" X-Original-To: linux-kernel@vger.kernel.org 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 76D2046531; Fri, 15 Dec 2023 19:40:30 +0000 (UTC) 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=1702669228; 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=py2PeKKW0Gg3Y7O2QlrezYfuYNsNwRB8EFj8qodJKBQ=; b=CdG5taBAB6NTGzrM1rVvHjEwlby6utivd6CtHCQ/SbU/I0bckLsyLiBKkgFxHtVPownMHz 5T8olK/qGeNpaRlM7L5jERG1xMONRGfJKovMfz/HsRMtryBgfVSSBp146avw0XqPAvs+hd 1VajQ9M8qfvAEi+x7fpa/LbJRNsPoTBneTU2l0pCSv/fG28o4g74Ia0roq11PfKpJym18J 2CJ1VF0FxfTwZppVnajmd6+9Q20FqIdDBs9Zk7N2tnUgdmEbq2b4x4ujKF+vDauHDKUNx2 ktWw7oS5G8SIUH6h9kxMTknyF6WlsYPA+KTBwbzdtkMoMD0gpOTMeFvPV0swhA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702669228; 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=py2PeKKW0Gg3Y7O2QlrezYfuYNsNwRB8EFj8qodJKBQ=; b=AkWe3gTm8O5beIsABX3PYEheunlmtyOLR3tMy+HnIHu9N4zr8/Q64ZQBWBzRCznskC2rHp BwvqYKEXsjJzgQAQ== To: Russell King , linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev, x86@kernel.org, acpica-devel@lists.linuxfoundation.org, linux-csky@vger.kernel.org, linux-doc@vger.kernel.org, linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org Cc: Salil Mehta , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, James Morse Subject: Re: [PATCH RFC v3 21/21] cpumask: Add enabled cpumask for present CPUs that can be brought online In-Reply-To: References: Date: Fri, 15 Dec 2023 20:40:28 +0100 Message-ID: <87le9vmez7.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 Wed, Dec 13 2023 at 12:50, Russell King (Oracle) wrote: > From: James Morse > > The 'offline' file in sysfs shows all offline CPUs, including those > that aren't present. User-space is expected to remove not-present CPUs > from this list to learn which CPUs could be brought online. > > CPUs can be present but not-enabled. These CPUs can't be brought online > until the firmware policy changes, which comes with an ACPI notification > that will register the CPUs. > > With only the offline and present files, user-space is unable to > determine which CPUs it can try to bring online. Add a new CPU mask > that shows this based on all the registered CPUs. > > Signed-off-by: James Morse > Tested-by: Miguel Luis > Tested-by: Vishnu Pajjuri > Tested-by: Jianyong Wu Acked-by: Thomas Gleixner