Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3823249pxu; Wed, 9 Dec 2020 01:11:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUAaYTmruYA+PGIyWlOVXk3bZdCqsQBFC2ubzUOcDbtKrJ7IW4mjtlWqEh508ywCprKZyu X-Received: by 2002:aa7:db01:: with SMTP id t1mr1072078eds.185.1607505080596; Wed, 09 Dec 2020 01:11:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607505080; cv=none; d=google.com; s=arc-20160816; b=pIoJSeIxWQrKJW6ifvYVCAkcXBHZlYx3bv3yxYoEGrh4TA6y1T+bzloOI10OFoLnRz eE7imx7tukrkjsNRVeEBNXHAlx4vldRpG/6l8pPIG1ZnTgYrjcVKDMqQq7d2rCJxNLdw CRuoymqe1R2j2HGOCgEICJTvSNJtc9b8ezF/bJ+8XgiZmGMuj4yROs8tHvQLoqGOOWyR 0keMo6Luo+ulAJ4PXpaoidTcToTrOprtYUg8IGR7PshRS2SLs6umoM8UTJbmP5S+PWZw 3RxFw5y0n3XvLgU2m5CaWsaidHDaeeurlQDCT0HjS9lkqN4t+JPi4NuqfYXn93Dn47Mw HjmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=uPZLZFucs64QrPM+4R1abkgq6sji18ilojIc6tWxqoE=; b=ZQvrspS6FNxU6qL4zytFZhoGT+9Z9AzCyjIJJ9ZRfUnGgalVLBskt6vnpqFpiWkWAg NPI1uwxdss8hmlpkJeDzgVvh+6HP58+lRRvu9icqkqRrG402iQ2eM+oIe6EXgaP5cX80 Qq89UDJKrrRPpmJP7ecTMgCrnus3ZQoOuHVoRHFH+TRZSjf4ZNPOYNzQTjS/9CM1ZX9F fql+7owbm329Evu/Qxyt5uNg9aZtcm+cGS/2qK6RgPfzE7Ek7SVUdbiPoKYQ98i+Rt6N RizNousa7YDZpQ3+dHXT7bH7Buj1z2NB7KLYesUX6fO2M7X9oxhItTwxR461Mn+Ciemb VbJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="DVkZknj/"; 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 h8si475632edl.562.2020.12.09.01.10.57; Wed, 09 Dec 2020 01:11:20 -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="DVkZknj/"; 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 S1728838AbgLIJIQ (ORCPT + 99 others); Wed, 9 Dec 2020 04:08:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35786 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgLIJIN (ORCPT ); Wed, 9 Dec 2020 04:08:13 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B9934lq036376; Wed, 9 Dec 2020 04:07:20 -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=uPZLZFucs64QrPM+4R1abkgq6sji18ilojIc6tWxqoE=; b=DVkZknj/c0Hg6F1+Hx7X2BE1YnFeGUKXAGLiIjaejGwitzlMz8PNJGtHwKjmWMomd/hd +fN11w9hdXzgjhqBetEjM914LUBPkDnE6q2y+9TzriBTeLkpL5yJDjf9XwyKA/UuwciA KMr+RbXmYjmdkuGqAGGp/REsHtH5LPFlZqHZe8hEP0XRDIXRpq54YPCkaKKsoCLBCif2 mA/2dqZB0AtDhXPtQnjbhWgvQPIm55ZdjPhiVgKJ7w3jH+vKSt+ClKguV1kqi8hquC1h 802z7DGc6ZDcuYZejOialXhNJeTsIFJSCePFXEWLZJM4sjMxaN7qg7NH+5/CcMXyVIqT Eg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 35apm07tna-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Dec 2020 04:07:20 -0500 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0B993ODE038125; Wed, 9 Dec 2020 04:07:19 -0500 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 35apm07tmp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Dec 2020 04:07:19 -0500 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0B98xPj9028195; Wed, 9 Dec 2020 09:07:18 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma01wdc.us.ibm.com with ESMTP id 3581u9bmf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Dec 2020 09:07:18 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0B997H1p19792284 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Dec 2020 09:07:17 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7044D136051; Wed, 9 Dec 2020 09:07:17 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EB88513605D; Wed, 9 Dec 2020 09:07:16 +0000 (GMT) Received: from sofia.ibm.com (unknown [9.199.49.37]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 9 Dec 2020 09:07:16 +0000 (GMT) Received: by sofia.ibm.com (Postfix, from userid 1000) id C63D82E35A0; Wed, 9 Dec 2020 14:37:09 +0530 (IST) Date: Wed, 9 Dec 2020 14:37:09 +0530 From: Gautham R Shenoy To: Srikar Dronamraju Cc: Gautham R Shenoy , 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 3/3] powerpc/cacheinfo: Print correct cache-sibling map/list for L2 cache Message-ID: <20201209090709.GB13125@in.ibm.com> Reply-To: ego@linux.vnet.ibm.com References: <1607057327-29822-1-git-send-email-ego@linux.vnet.ibm.com> <1607057327-29822-4-git-send-email-ego@linux.vnet.ibm.com> <20201207131138.GJ528281@linux.vnet.ibm.com> <20201208175647.GC14206@in.ibm.com> <20201209083921.GL528281@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209083921.GL528281@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343,18.0.737 definitions=2020-12-09_07:2020-12-08,2020-12-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012090060 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 02:09:21PM +0530, Srikar Dronamraju wrote: > * Gautham R Shenoy [2020-12-08 23:26:47]: > > > > The drawback of this is even if cpus 0,2,4,6 are released L1 cache will not > > > be released. Is this as expected? > > > > cacheinfo populates the cache->shared_cpu_map on the basis of which > > CPUs share the common device-tree node for a particular cache. There > > is one l1-cache object in the device-tree for a CPU node corresponding > > to a big-core. That the L1 is further split between the threads of the > > core is shown using ibm,thread-groups. > > > > Yes. > > > The ideal thing would be to add a "group_leader" field to "struct > > cache" so that we can create separate cache objects , one per thread > > group. I will take a stab at this in the v2. > > > > I am not saying this needs to be done immediately. We could add a TODO and > get it done later. Your patch is not making it worse. Its just that there is > still something more left to be done. Yeah, it needs to be fixed but it may not be a 5.11 target. For now I will fix this patch to take care of the build errors on !PPC64 !SMT configs. I will post a separate series for making cacheinfo.c aware of thread-groups at the time of construction of the cache-chain. > > -- > Thanks and Regards > Srikar Dronamraju