Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3199777pxu; Tue, 15 Dec 2020 00:47:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaiNnvRUvr1kjHAH/gqzxGEBMRLawLokiAbWrFqoTJoe/LuRJTeta7MAAhrFZXjZctYt8V X-Received: by 2002:a17:906:3a84:: with SMTP id y4mr25932625ejd.425.1608022031078; Tue, 15 Dec 2020 00:47:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608022031; cv=none; d=google.com; s=arc-20160816; b=BLqqAQgfaXCXiwEjULdTb9YCjjpkZSnkhqx2qw6WZEJ9qk5+nKWQ2UYVdT96GoGueT BGXAIpITRpgMhxyTixmijq53EGyeYJpG6dkPtr2Xp68WKE2+HdhVq0lmdWcyAxEjbn6p BSLW41Ab2JM2nGmLhQkoD3FHaBE9QaoBORbY4UY3vmtxoZQXLrWHx32Kbu/Tt9wdVErO rkPV0RoJhN1xF3q4rnexVEfu8V5oww7NgTmKYLnTOI3Q7tEkPuazafj9m5BUu6TB7pld jEdTsmVO6ePpjDiC2U7A8cDn50dRakL+t42XpdhUTLerRULGdJXrjVuAqO01Ewy6AJGT y3pw== 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=3eizvgFfLu8kHBNlSsAuKsp1GTZViZsgYbZfkqUgLBs=; b=u5hiIne5Nb4XVYDDqeljBN7Gl9duMrDpRDStR12HDfPshFHSzmKpZpnHnkpijlZaw8 ZtF6wTRhGRhRUMkSdn+hKZiI414+SJzzG3KwSC9A4dQ/ydcA0LFOO8OaOyuJOKsl+TBJ hMUIdRL8vbkEAVW4C0vlxxf8mOBTeA7L8wZ6pB3WfDnCO94griVoFwmjw9WOoB6+vEKp UMzA09Py2LpaLTwO67S5RbxcbWlYVBD7XY9/lbqVBuohtm0kOwc360A83Gk3FIwR9okH 1hfqGMaCiUh43hlO6cJxozaTRRG2HlKpv7Zrhjjuhg6fTzPEaE1X3Jht7cYOjp5cz6Tu iTRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="oAu4Xz/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz11si560724ejb.341.2020.12.15.00.46.47; Tue, 15 Dec 2020 00:47:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="oAu4Xz/A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726985AbgLOIoy (ORCPT + 99 others); Tue, 15 Dec 2020 03:44:54 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40172 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726176AbgLOIoq (ORCPT ); Tue, 15 Dec 2020 03:44:46 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0BF8XUQc180122; Tue, 15 Dec 2020 03:43:51 -0500 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=3eizvgFfLu8kHBNlSsAuKsp1GTZViZsgYbZfkqUgLBs=; b=oAu4Xz/ASBg+tn05SYsqFJdOnHNkGwR9lkzpbyqPgZEFH4jtZulpPQVpui2hG4JrcCED a7wYOxYCpv/I73dWCNN84fuksmZkHceXZRseXa5Dhrp9BvD4Q9VRelfleVFdCUnnAbue iSgQzoFI1VOWSyBPuBOgrL24PAFyDBlpzej5AeQtVbpB7xCX/d9CRlhqmwPspEAO+oKZ wb/PMQ2STpE00oxbsI2TW6YTb/dENEOnyCOSQFEODKBjOiRx0AGVelQ+2uWZeZ7lgush c9ObUhQjOL+27bAEy/Vz0EfDtVpRqhhyzZmv28EHlPykAn9PKCFQUl2UKgppLd/jg2Hn YQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 35en9f7e3q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Dec 2020 03:43:51 -0500 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0BF8XgYP180938; Tue, 15 Dec 2020 03:43:50 -0500 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 35en9f7e2t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Dec 2020 03:43:50 -0500 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0BF8gPKL009216; Tue, 15 Dec 2020 08:43:47 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 35cng89jfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Dec 2020 08:43:47 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0BF8hjTs27918652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Dec 2020 08:43:45 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4CC4211C050; Tue, 15 Dec 2020 08:43:45 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 300F611C066; Tue, 15 Dec 2020 08:43:43 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av25.portsmouth.uk.ibm.com (Postfix) with SMTP; Tue, 15 Dec 2020 08:43:43 +0000 (GMT) Date: Tue, 15 Dec 2020 14:13:42 +0530 From: Srikar Dronamraju To: "Gautham R. Shenoy" Cc: Anton Blanchard , Vaidyanathan Srinivasan , Michael Ellerman , Michael Neuling , Nicholas Piggin , Nathan Lynch , Peter Zijlstra , Valentin Schneider , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/5] powerpc/smp: Add support detecting thread-groups sharing L2 cache Message-ID: <20201215084342.GD1239129@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <1607596739-32439-1-git-send-email-ego@linux.vnet.ibm.com> <1607596739-32439-5-git-send-email-ego@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1607596739-32439-5-git-send-email-ego@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-15_04:2020-12-11,2020-12-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 spamscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012150059 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Gautham R. Shenoy [2020-12-10 16:08:58]: > From: "Gautham R. Shenoy" > > On POWER systems, groups of threads within a core sharing the L2-cache > can be indicated by the "ibm,thread-groups" property array with the > identifier "2". > > This patch adds support for detecting this, and when present, populate > the populating the cpu_l2_cache_mask of every CPU to the core-siblings > which share L2 with the CPU as specified in the by the > "ibm,thread-groups" property array. > > On a platform with the following "ibm,thread-group" configuration > 00000001 00000002 00000004 00000000 > 00000002 00000004 00000006 00000001 > 00000003 00000005 00000007 00000002 > 00000002 00000004 00000000 00000002 > 00000004 00000006 00000001 00000003 > 00000005 00000007 > Looks good to me. Reviewed-by: Srikar Dronamraju -- Thanks and Regards Srikar Dronamraju