Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp343998rdb; Thu, 19 Oct 2023 06:17:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGivdNbzHPncDULh/AfHYeItWB/c7oHmAwwBE5LIkDNyOeupMhT5TzOG2cUihAdS3H3FeG6 X-Received: by 2002:a17:90a:ba15:b0:27d:1a75:5b98 with SMTP id s21-20020a17090aba1500b0027d1a755b98mr2962914pjr.12.1697721470028; Thu, 19 Oct 2023 06:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697721470; cv=none; d=google.com; s=arc-20160816; b=Kv8h6vT00LyX9kuShF+pNNVnM5Cp5tI14NJDnLcsLaYMrNBOhQmjolyI2CR9dPwFD1 beORd5jzugAPvawIp0mcvDgl05wYrU+MZ7AH34Eoji9JXvWyDNUb8ClhWgXNthw8UcRU auqM4QSpP4zdSPEYzgfYMqdM8jdefyM949zHsVqou6gcATElh/oegdl0/K33SQfDLncm 4Xus7f03WeO8anyJj5toiYMef+kdXvYEhLaErNfULCNg6Ah4bZ9gi9adk7GHTbwSuRxZ jH5s8Of1m1Cc2RJizu0gdifA+uE5MEo5Lm6vlYnFSLbS1bR/sJ2HLprk8RBxereSbdfD bPlw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EOgzvUQafFoswcAE2D3pCuOjLCzcXDLuWGtEGqOfXfI=; fh=6K8N7jrpEdrPlxfrcCerZedT+cq85qDX6FgcY/2Rmnw=; b=gBm/f5Kbs6WiikzDmBU73mafw5n1V5TheadHQtq8vJkbkh4Kxhg6OGaeHZ/x8ijZ76 7QOUL3mVxpvtDK/1cSDE1+3MWY58JsJ3UqiGiZrpnFDqr+e5zChW/h1g1+wUJoih10ir 7fjownInvC6CnJom7S9mlsLvuRW5n+37WNTvSRdcU9x9Tb8uNoIbLlDfTRbOj9WYayVY n8U/+6hGW829k0JbHYiFqCHwPcQxFGVT/xbVxNBEpOGIHTKJOsDrwNvWU7IoUxO88v1c sd57P0bV9S6pgywHHA2hybb4pF2n1ALr9bZ1N2RTYa3SuDufSYnvAbwo9gDg0lhyWXB4 IPtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gd0mdJLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id go10-20020a17090b03ca00b00273e2f407casi2021417pjb.76.2023.10.19.06.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=gd0mdJLs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9663E81ADCFF; Thu, 19 Oct 2023 06:17:46 -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 S1345828AbjJSNRZ (ORCPT + 99 others); Thu, 19 Oct 2023 09:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233202AbjJSNRX (ORCPT ); Thu, 19 Oct 2023 09:17:23 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5159F for ; Thu, 19 Oct 2023 06:17:22 -0700 (PDT) Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39JDFKRw031740; Thu, 19 Oct 2023 13:17:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : reply-to : references : mime-version : content-type : in-reply-to; s=pp1; bh=EOgzvUQafFoswcAE2D3pCuOjLCzcXDLuWGtEGqOfXfI=; b=gd0mdJLseoT1YebgyINWi1IHUnXeGIwDzvyfySu/O+vBAgiKIBZed5aeDI+Q3DB6zD3+ bd3cWyqBHVMNV6JBYeE8gSLSe86GAT3O6evmwbeDaK9LsnQVv8j1tmu4L/NXA+6HrR8Y 3M4bePQwTxRiOeir7PPXiEB+EhisCdbhyfRRJDV/KfCqnJBeAITUQwYxgVkV+sgVPgti EbkNRHcYne68ahHehkeyomy8tZH7yv6RanVLsuukqC7WE4sp5tG41kUieyh/9kAGeHdR 5vJjcc8WyyXsAucxKFZQ6dBcKTNi8foSHz1mKlap2c5fCSZ2MBg+GzMtXu8cVHMmBF4V zw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tu56003af-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 13:17:04 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39JDFlMx001441; Thu, 19 Oct 2023 13:17:03 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tu5600375-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 13:17:03 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39JBDErr020105; Thu, 19 Oct 2023 13:17:01 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3tr6angxs8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Oct 2023 13:17:01 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39JDGxcC15401710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Oct 2023 13:16:59 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0B47820043; Thu, 19 Oct 2023 13:16:59 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D60320040; Thu, 19 Oct 2023 13:16:56 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by smtpav07.fra02v.mail.ibm.com (Postfix) with SMTP; Thu, 19 Oct 2023 13:16:56 +0000 (GMT) Date: Thu, 19 Oct 2023 18:46:55 +0530 From: Srikar Dronamraju To: Michael Ellerman Cc: linuxppc-dev , Christophe Leroy , Nicholas Piggin , Peter Zijlstra , Rohan McLure , Valentin Schneider , Josh Poimboeuf , Mark Rutland , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/6] powerpc/smp: Disable MC domain for shared processor Message-ID: <20231019131655.GJ2194132@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> <20231018163751.2423181-5-srikar@linux.vnet.ibm.com> <87pm1b5ia7.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <87pm1b5ia7.fsf@mail.lhotse> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: -dcD9fF8egfTbF7mBqOUvkJVRQPDE2J_ X-Proofpoint-GUID: 3bJV3pVYuW0ZlhfUtqPrhT849ube8twE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-19_11,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 impostorscore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 malwarescore=0 mlxscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310190114 X-Spam-Status: No, score=-0.8 required=5.0 tests=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]); Thu, 19 Oct 2023 06:17:46 -0700 (PDT) * Michael Ellerman [2023-10-19 15:48:48]: > Srikar Dronamraju writes: > > Like L2-cache info, coregroup information which is used to determine MC > > sched domains is only present on dedicated LPARs. i.e PowerVM doesn't > > export coregroup information for shared processor LPARs. Hence disable > > creating MC domains on shared LPAR Systems. > > > > Signed-off-by: Srikar Dronamraju > > --- > > arch/powerpc/kernel/smp.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c > > index 498c2d51fc20..29da9262cb17 100644 > > --- a/arch/powerpc/kernel/smp.c > > +++ b/arch/powerpc/kernel/smp.c > > @@ -1046,6 +1046,10 @@ static struct cpumask *cpu_coregroup_mask(int cpu) > > > > static bool has_coregroup_support(void) > > { > > + /* Coregroup identification not available on shared systems */ > > + if (is_shared_processor()) > > + return 0; > > That will catch guests running under KVM too right? Do we want that? > Only dedicated LPARS on PowerVM expose coregroup or Hemisphere information. Currently other systems including KVMs don't expose this information to the OS. > > return coregroup_enabled; > > What does coregroup_enabled mean now? > > I'd rather this was actually checking the presence of something, rather > than just hard coding that shared processor means no coregroup support. > On a shared LPAR, the Hypervisors would like to have the flexibility to schedule LPAR on any core within the DIE without having to further think about the Hemisphere locality of the core. > cheers -- Thanks and Regards Srikar Dronamraju