Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2525990ybg; Fri, 31 Jul 2020 02:21:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5GZwpz/gUCIkQASqHRUxXxjRX5nNDKOaukLmYfQK9Gixf8gv/DWYvrmQqh8o87BodeACY X-Received: by 2002:aa7:db10:: with SMTP id t16mr2810758eds.196.1596187271789; Fri, 31 Jul 2020 02:21:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596187271; cv=none; d=google.com; s=arc-20160816; b=kCT3nRIBRPaj4aALVwsKXb/EnsXzx67WgT+14oIgCCV7GY5QSMVKZucmowDx/GknBo r9xtMpNguliF8TCcOdzVjLDweFj/W7YqPtbrWFKhsHmn3nMWlMApi+fHGIdz+iWRVDpX ApmIKDmV69vRdxvSIAipKVVAlELDQdu+6HFgUtuMw2DnIK6+7cRFDdEXHtCVOGVoHzAF TrF0ojxL+VcmCOfDHYYxzL8bzA85PJk6daz/CDIpnY9fu7USDjiwvcgrlbeiTz8Bt9hb DWCGLVH0NIs8TfxmBzXZ5PPSWjSAcPixUSEe+ls52FtgvqmX4cuyZXG85CIK/XvxAsRX TkPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=7sL0R8BhVScHOHNFHd4zl5xnNRTbKXuEYW7/QfBp/Vo=; b=0n3X277fNhtZkxsuKpblxvIFsLxOexrTK+fCbmlanBUlhcl3uKb5rU86Z1tcpC9DeX J5cTS0lGp8A/XPUrKTXYpVvQPmWi7hCVJJqpLeEXwz3Bv/iVvB3m/YPNG6Dbr5QcEc+x oah3E6GXUb9oK01QkrhYjlpIckSrrfcnrKBPFvbSwENIB9Nd7a6uwLBUzr5BB9AAv5AJ n4aDfKK3Vlp4md1uPEjwPRhZ3V1ZgGaLI/1icaLRYeuj/jkgz5QzjngUHvTngEY1D+j3 /2FPWy/lfNKsXYiRv/nOX6NCwPMvuhM6PcrHEcng2+99Z8d3mDufp88/bX43zL3A4X+U 3uoA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 r15si2138716ejr.55.2020.07.31.02.20.49; Fri, 31 Jul 2020 02:21:11 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732195AbgGaJTW (ORCPT + 99 others); Fri, 31 Jul 2020 05:19:22 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35638 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731991AbgGaJTW (ORCPT ); Fri, 31 Jul 2020 05:19:22 -0400 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 06V92TAr083266; Fri, 31 Jul 2020 05:19:08 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 32ma2psb0m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jul 2020 05:19:07 -0400 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 06V9IfRR126224; Fri, 31 Jul 2020 05:19:07 -0400 Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com with ESMTP id 32ma2psayc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jul 2020 05:19:07 -0400 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06V9Exfp001391; Fri, 31 Jul 2020 09:19:04 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma02fra.de.ibm.com with ESMTP id 32gcq0vbv6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Jul 2020 09:19:04 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06V9HaPP64946670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 31 Jul 2020 09:17:37 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 771ADAE04D; Fri, 31 Jul 2020 09:19:02 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 31C24AE045; Fri, 31 Jul 2020 09:19:00 +0000 (GMT) Received: from linux.vnet.ibm.com (unknown [9.126.150.29]) by d06av26.portsmouth.uk.ibm.com (Postfix) with SMTP; Fri, 31 Jul 2020 09:19:00 +0000 (GMT) Date: Fri, 31 Jul 2020 14:48:59 +0530 From: Srikar Dronamraju To: Michael Ellerman Cc: linuxppc-dev , LKML , Nicholas Piggin , Anton Blanchard , "Oliver O'Halloran" , Nathan Lynch , Michael Neuling , Gautham R Shenoy , Ingo Molnar , Peter Zijlstra , Valentin Schneider , Jordan Niethe Subject: Re: [PATCH v4 07/10] Powerpc/numa: Detect support for coregroup Message-ID: <20200731091859.GG14603@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20200727053230.19753-1-srikar@linux.vnet.ibm.com> <20200727053230.19753-8-srikar@linux.vnet.ibm.com> <8736585djw.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <8736585djw.fsf@mpe.ellerman.id.au> User-Agent: Mutt/1.10.1 (2018-07-13) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-31_02:2020-07-31,2020-07-31 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=971 lowpriorityscore=0 impostorscore=0 mlxscore=0 suspectscore=0 bulkscore=0 spamscore=0 clxscore=1015 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007310063 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Michael Ellerman [2020-07-31 17:49:55]: > Srikar Dronamraju writes: > > Add support for grouping cores based on the device-tree classification. > > - The last domain in the associativity domains always refers to the > > core. > > - If primary reference domain happens to be the penultimate domain in > > the associativity domains device-tree property, then there are no > > coregroups. However if its not a penultimate domain, then there are > > coregroups. There can be more than one coregroup. For now we would be > > interested in the last or the smallest coregroups. > > This still doesn't tell me what a coregroup actually represents. > > I get that it's a grouping of cores, and that the device tree specifies > it for us, but grouping based on what? > We have just abstracted the fact that we are creating a sub-group of cores within a DIE. We are limiting to one sub-group per core. However this would allow the firmware the flexibility to vary the grouping. Once the firmware starts using this group, we could add more code to detect the type of grouping and adjust the sd domain flags accordingly. > I think the answer is we aren't being told by firmware, it's just a > grouping based on some opaque performance characteristic and we just > have to take that as given. > This is partially true. At this time, we dont have firmwares that can exploit this code. Once the firmwares start using this grouping, we could add more code to align the grouping to the scheduler topology. > But please explain that clearly in the change log and the code comments. > Okay, I will do the needful. > cheers > -- Thanks and Regards Srikar Dronamraju