Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3926183rdg; Wed, 18 Oct 2023 09:42:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuqFAVi5dWq4Luxlw/ijWEQwCwPgOCR1hZHXhzuBFHQrAUcINTz8kcc5XJiQzDgqfG8uk+ X-Received: by 2002:a17:902:c945:b0:1c5:9c73:c91c with SMTP id i5-20020a170902c94500b001c59c73c91cmr6915264pla.48.1697647328795; Wed, 18 Oct 2023 09:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697647328; cv=none; d=google.com; s=arc-20160816; b=EGAf4AoCcxGraxCDJ0eW5GWcGpBeztMua6SpyHqGurcBZkWuA/CbqOvS5F0CQrw3Im fMrcPHor+VZ34BDDRruaCFDmsTavpnHR1cxUNCr3EGqSNGAbJwjcejDc9FpZDtU1/tfS paWZnOy2BANi6bVGepiag0eCc0Dolr4PwFM2vb5ox5g/ldlSCuoqlO6+u2UfDpTaSjt0 5Cw+xws4XG1319XgE88vTZKUrcOI6TiKYbBKgrupEpGSB15GiL4QQUgD8DUwBtOsWfZu FMxjeaWa9GpRoGJeOdQ5vZr8BsLGXlMLJ2X74aUcZSMad9D/iu/s1c0yy02+EA/rya/T 9Zlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uAIq4/vuEObOnAZD/9l5hQWukpNM2dLh+BCegFXmcLk=; fh=RbaF5Xol8My4C3wH02KaqJ9tyA90t14QgqabD1SxeaQ=; b=BIlrKI/pPjUpxJa8hIlwPyhrCZOybsR9SFte6hrXLtOKYPglipOATHEdr3Se9Xjc1p V+MOUoDHelWwX2cvLdDoMEy57V3uOWDS2ev/U19mgcAV1UWjEnUk8cMcXsfdGaStA0yG HV0UUNbT9XSUmIkcrnt+IWwypbC43jy75cqfWs10xkW4RpE19TDkt5NY09/N5cr7nxzI A2QGBVp9RSHoX/IunLnnV34BAlzJ/AQZ02GlQE8nc9vHznIGv+a3VV1T5cbMyIVFim8g swXJ/WnQJ9R8JTWbtPaHYgO7vXwarGfkjbwWPS/deC6WzXdS3RGFxPCndCczyxMf7ICN Bgxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=bv1QuYkp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q3-20020a17090311c300b001c9d96cbd97si253051plh.66.2023.10.18.09.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 09:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=bv1QuYkp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 6784181B802A; Wed, 18 Oct 2023 09:42:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbjJRQl7 (ORCPT + 99 others); Wed, 18 Oct 2023 12:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjJRQlw (ORCPT ); Wed, 18 Oct 2023 12:41:52 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4F1FA for ; Wed, 18 Oct 2023 09:41:50 -0700 (PDT) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39IGc4cp031828; Wed, 18 Oct 2023 16:41:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=uAIq4/vuEObOnAZD/9l5hQWukpNM2dLh+BCegFXmcLk=; b=bv1QuYkp8eG0Tev8wNTGPjxNunQDbygtuslV+p8EuIt+f8wm2hbTeYKRczfR46Uhucqk hTY16DWRt4LTpUHZCfhdT39Qspk/b1xk6hQ9JjqWL8lhNXR/88fHy2ehu+i2Y4MMd7px eNDfTtz5cif1GRbvmF1tJIGQybHtFCzBqgJJ9ACLMXJ54hNHoatZ2DH+oxTYWadBcgo5 nBUG3hKdAPmRZr50AGyJVT6N/vhakhneTFbTerAIP+KUalebqRHZxWhVLTChPSA4qNsD 3RNiOOY2wuH2uoz6pHJz/DMDJB5WY4wsKy0t+yr7efZ8zavHhJz4MTWiL5+UjbLHioIv Dw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ttjn41460-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 16:41:33 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39IGe1w7009596; Wed, 18 Oct 2023 16:40:01 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ttjn40we9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 16:40:00 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39IFc7Ni027154; Wed, 18 Oct 2023 16:38:23 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3tr6tkhvnw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Oct 2023 16:38:23 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39IGcLOV44892584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Oct 2023 16:38:21 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3FC320040; Wed, 18 Oct 2023 16:38:20 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6259820049; Wed, 18 Oct 2023 16:38:18 +0000 (GMT) Received: from sapthagiri.in.ibm.com (unknown [9.43.47.66]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 18 Oct 2023 16:38:18 +0000 (GMT) From: Srikar Dronamraju To: Michael Ellerman Cc: linuxppc-dev , Srikar Dronamraju , Christophe Leroy , Nicholas Piggin , Peter Zijlstra , Rohan McLure , Valentin Schneider , Josh Poimboeuf , Mark Rutland , linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] powerpc/smp: Disable MC domain for shared processor Date: Wed, 18 Oct 2023 22:07:44 +0530 Message-ID: <20231018163751.2423181-5-srikar@linux.vnet.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: a4Ym7-iAwiJUDTUxcA8fqJOVR_pkTpgR X-Proofpoint-GUID: 2Ml_aGUVkwGNY6quFC6n5sR7BPyBfFGX 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-18_15,2023-10-18_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 mlxscore=0 malwarescore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310180135 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 09:42:05 -0700 (PDT) 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; + return coregroup_enabled; } -- 2.31.1