From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34AEDC3DA64 for ; Wed, 31 Jul 2024 10:28:41 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=yuEGRxPn; dkim=fail reason="signature verification failed" header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=1jxQraHY; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WYpGb68XPz3dBX for ; Wed, 31 Jul 2024 20:28:39 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=yuEGRxPn; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=1jxQraHY; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linutronix.de (client-ip=2a0a:51c0:0:12e:550::1; helo=galois.linutronix.de; envelope-from=tglx@linutronix.de; receiver=lists.ozlabs.org) Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WYpFp5xfHz3cQq for ; Wed, 31 Jul 2024 20:27:58 +1000 (AEST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1722421668; 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=+2WiS37JbmCxNlGKN1CAx63Qz/WDKprgYFwCmASZdTs=; b=yuEGRxPnuDJr/wvzoTRwB8tWCsiYJd1IrUYwualwZPB0NanY9Fz1kyE2FQ83eK8irtFHJg nrrbZXe+2gZOgU63dY4TRxdgWvmAkZqUKIl5rbPpxoDq+LBo2x21gQ60e+4UFj7g4/2TBj K6EFEyjuko13nUTbew+usImvUOB0sIE2BFaVMkzsdfUyPA2M94XqBowTR+4P1jbv9e9dmB RFQDOS2rLdMkQmL77x625cvGHyvRHson48b39y01txtg5uCUVSOOIDDbcj4VgbJUKHTrL3 LQQfDDrR6eM4/8uMvg6sHIvxubRFRLTBWDioFWWZh/uNlUJZlLNbvaVeoHHpbQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1722421668; 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=+2WiS37JbmCxNlGKN1CAx63Qz/WDKprgYFwCmASZdTs=; b=1jxQraHYtD4qSM38HL7PNqHpM032iKDVgHeii9Bsvxh9UYzxKL2leZzOLohHaNN2ye5G9t P7ipU/OtrhYQYxAA== To: "Nysal Jan K.A." , Michael Ellerman Subject: Re: [PATCH v2 1/2] cpu/SMT: Enable SMT only if a core is online In-Reply-To: <20240731030126.956210-2-nysal@linux.ibm.com> References: <20240731030126.956210-1-nysal@linux.ibm.com> <20240731030126.956210-2-nysal@linux.ibm.com> Date: Wed, 31 Jul 2024 12:27:47 +0200 Message-ID: <87r0b96el8.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tyrel Datwyler , Eric DeVolder , Stephen Rothwell , Peter Zijlstra , Nicholas Piggin , linux-kernel@vger.kernel.org, Christophe Leroy , Laurent Dufour , Pawan Gupta , "Nysal Jan K.A" , "Naveen N. Rao" , Sourabh Jain , Michal Suchanek , linuxppc-dev@lists.ozlabs.org, Ard Biesheuvel Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Jul 31 2024 at 08:31, Nysal Jan K. A. wrote: > If the user has decided to offline certain cores, enabling SMT should > not online CPUs in those cores. This patch fixes the issue and changes > the behaviour as described, by introducing an arch specific function > topology_is_core_online(). It is currently implemented only for PowerPC. > > Fixes: 73c58e7e1412 ("powerpc: Add HOTPLUG_SMT support") > Reported-by: Tyrel Datwyler > Closes: https://groups.google.com/g/powerpc-utils-devel/c/wrwVzAAnRlI/m/5KJSoqP4BAAJ > Signed-off-by: Nysal Jan K.A Assuming this goes through the PPC tree: Reviewed-by: Thomas Gleixner Michael: If I should route it through my tree, let me know. Thanks, tglx