Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20771334rwd; Thu, 29 Jun 2023 06:56:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4EqGTtaEJWyJmUx1YwIme1I4X5E7P+GbnVzrJ88+YuHi4Ngq4n99DrVtDx2gmavgOoKzxr X-Received: by 2002:a05:6808:18a7:b0:3a1:e282:8405 with SMTP id bi39-20020a05680818a700b003a1e2828405mr14016269oib.13.1688047000800; Thu, 29 Jun 2023 06:56:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688047000; cv=none; d=google.com; s=arc-20160816; b=x+zjEKR+Z58BgDuw+CPx7WA1QOP9MOR+CNPnuKfUxlBWV62nOBsIzoZ8CwRtmKGM4K 2GFtYYLksGM45SmAxMqAFVqtpuvFOmsadMh3ihbbn11tNDao4TOvHvu1Q60GyfhuvzP3 ijKfGilcAp8+fbQYFp9C92wYgylb00w7Wa1TW/4qfJKAmZkTXNsFu8aR135wbRuGqVvz Ub7Zdxcywx60SwmkWZG6azvhSV3mOl2h8AGEuOtEJd/HxSPeNJ5F/G96S7arpTuVNxYa wdPTM7zNWbpPt/3PHO7OIo+mvltvrH9QRLJtTPTfW5byemgSoW8j9imofZuIqblyURWq HIgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=ZwvJ0eEbncN/kOCHI+wZaTlZPHMLkO5x//AAsn1W7tw=; fh=V6fpJFcPB5tq27yn5UlL4pWaGEaZLgFAqhQ/lYhWl8E=; b=cEgi9hipSRhASRTHRqS3dfnvAt2CWaYSobk3/ZkoeXTsEHYrnyIiRdXJBUeghF+d9e dovHgT+1SX/gCkgEGShFr5EcJGT4FC/PAiEtQ4TEYI8mUbCuBp6kioI2Uo+cUHmaqMqb uoQTIJr/dGg/SlSOp+UzS4Gy351KwBGgV8h8xm/yolZ7hVzZNhHGAg+mSZHhp5BizmSm FMJ46CWZg1QKqmth/bIwHTM2j+p2AhHRkr2+tMf36qsU8K7/Qp6YhD7l87RUHPaQUodG BImeWYgMQb2gycD6uF0ytHZgvoLSY4ZKqD96nPm2LCd6dU2iLrBsJEKjMcwTPrbU8EGE 0DrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=f2nihmCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l64-20020a638843000000b0054ff53233f2si11099478pgd.567.2023.06.29.06.56.24; Thu, 29 Jun 2023 06:56:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=f2nihmCB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbjF2Nb7 (ORCPT + 99 others); Thu, 29 Jun 2023 09:31:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjF2Nby (ORCPT ); Thu, 29 Jun 2023 09:31:54 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7E31FCB; Thu, 29 Jun 2023 06:31:53 -0700 (PDT) Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35TDSkeu011219; Thu, 29 Jun 2023 13:31:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=pp1; bh=ZwvJ0eEbncN/kOCHI+wZaTlZPHMLkO5x//AAsn1W7tw=; b=f2nihmCB0lv1o6hd0yn36xLbBfrjudJSsnmBK+uxpj9/AGaa+gMA2O3rfhTEZGhRQ5bo e98bJF4vKIfIqVKrDfSz/3mhrneJplKoD9jgSeeBgbnpw2wK3j6+F/cBlVnPByqNoKwX vgFJo2kpvkPD6WXGjUhyplSOotHQ7IiV90Hg/JrGLL3E7dz8unjOPWdJOvfas0ABzUrG qTQgtc3AmOlvOrdZSOH+0ykRGOT8TVSoz1o9IQjH+aphdwSm4o+CMdfiI7VH1PzmrpVE e7vg7/XbpSguo8arfAb6KYe5JrajatVsbdSI7nr1KRsf8BidBdOzlhrqGwOfMQtIJ0hi sw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rhavhg1q6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jun 2023 13:31:41 +0000 Received: from m0360083.ppops.net (m0360083.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35TDU8dt015383; Thu, 29 Jun 2023 13:31:41 GMT Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rhavhg1nx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jun 2023 13:31:41 +0000 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35T9H6GI002392; Thu, 29 Jun 2023 13:31:38 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma03ams.nl.ibm.com (PPS) with ESMTPS id 3rdr453c4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jun 2023 13:31:38 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35TDVaG662193990 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jun 2023 13:31:36 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02F0520043; Thu, 29 Jun 2023 13:31:36 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C6C8120040; Thu, 29 Jun 2023 13:31:33 +0000 (GMT) Received: from smtpclient.apple (unknown [9.43.91.77]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 29 Jun 2023 13:31:33 +0000 (GMT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: Re: [PATCH v2 0/9] Introduce SMT level and add PowerPC support From: Sachin Sant In-Reply-To: <87edluh6ce.fsf@mail.lhotse> Date: Thu, 29 Jun 2023 19:01:22 +0530 Cc: Laurent Dufour , linuxppc-dev , linux-arch@vger.kernel.org, dave.hansen@linux.intel.com, open list , Ingo Molnar , bp@alien8.de, npiggin@gmail.com, tglx@linutronix.de Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230628100558.43482-1-ldufour@linux.ibm.com> <88E208A6-F4E0-4DE9-8752-C9652B978BC6@linux.ibm.com> <87edluh6ce.fsf@mail.lhotse> To: Michael Ellerman X-Mailer: Apple Mail (2.3731.600.7) X-TM-AS-GCONF: 00 X-Proofpoint-GUID: p9fIrhzuknG-wZ6s0tbFa0qN0XHpWfsu X-Proofpoint-ORIG-GUID: bil4KbMF-Z02xwvfg-W4hlsa2BwW-7Kw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-29_03,2023-06-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306290122 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>=20 >> Without this option but changing SMT level during runtime using >> ppc64_cpu =E2=80=94smt=3D, the SMT level is not retained after >> cpu core add. >=20 > That's because ppc64_cpu is not using the sysfs SMT control file, it's > just onlining/offlining threads manually. >=20 > If you run: > $ ppc64_cpu --smt=3D4=20 >=20 > And then also do: >=20 > $ echo 4 > /sys/devices/system/cpu/smt/control >=20 > It should work as expected? Thanks Michael. Yes this works. The SMT level is preserved after a core add. - Sachin