Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp981875iob; Fri, 13 May 2022 18:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCWFexjCrtRU1UR4tufMXvlSdXwnyeC1OVVf7J8L5sxCbTbuU16E/p9OYkwxwx+qa346z+ X-Received: by 2002:a05:600c:2113:b0:394:54ff:415c with SMTP id u19-20020a05600c211300b0039454ff415cmr16846242wml.7.1652491815802; Fri, 13 May 2022 18:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652491815; cv=none; d=google.com; s=arc-20160816; b=MWbBuDBnDKpkDPEX8Ipkj0r4y6RroY7mL/YNn8PGMbZM6Rw8b9PzQmeCphCrvBRB1n 5V3fzhI6iPnH1uZ+TApEwUV3eQJU3ZgNFi20+C0s4+OTJ6fSP1gd5bBpvsSbO3ws+H/W Mfpjyue96xrN1a0q0FnkzqyoA6o4prmGOnV0aSsfe/tMMaGmORMpnxFrkFro2fHvLU2n xJ9mx8uJ3LUAFnfKxSbGicnqdTy1CGeWzIFMnkTv/YMW6/zH0Dq+QI8uSJisULa/EbT4 a1+NYaxRF4QKWSryiABaMh+kfXTwtR/NksfC15kCA07urV9fLoJbhFEJkJrTlkQE1woN vnUg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I/WF1Q3kJC98i258lFjrutRQDAjoKepMJZpWZLSRevY=; b=RYYydjxyYcZy/NftdhyMpyCMG5Yifk+3cXDblAGlnMTj3pUpfOttXqTSRuTmn7JvqW SMGQhvsXmsu21/rzV1l60wl8dSZVmOVd8eAOV6xqaQtau3ZZ7RgEbCSZIxb8ol3LYDzZ FznEQHAjknwY1ytezGRMEFjLf9795bZ4wVC7PmfHwKOfOs+LLZoxxX1riijUPeHcDQaq Xz518wOaE21HxXenAZCo3fGFA/5mm6xvNHCy1+mialYRXz8GiwKYKwA47xmKt+ogrOB2 F4o36aVI01J80iKmt8rpH7MU8JXdOxgte5FZYWjX8QA1qNG3SWAM1sJHFIDaKnAGDek1 C4zA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n1-20020a05600c294100b00393fbee2363si3567743wmd.179.2022.05.13.18.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 18:30:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84D343F89C4; Fri, 13 May 2022 16:58:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378586AbiEMIrF (ORCPT + 99 others); Fri, 13 May 2022 04:47:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378581AbiEMIrD (ORCPT ); Fri, 13 May 2022 04:47:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 965E356C17 for ; Fri, 13 May 2022 01:47:02 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E75D113E; Fri, 13 May 2022 01:47:02 -0700 (PDT) Received: from bogus (unknown [10.57.65.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 82A563F73D; Fri, 13 May 2022 01:47:00 -0700 (PDT) Date: Fri, 13 May 2022 09:46:54 +0100 From: Sudeep Holla To: =?utf-8?B?546L5pOO?= Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Sudeep Holla , "linux-kernel@vger.kernel.org" , "dietmar.eggemann@arm.com" Subject: Re: [PATCH V2] arch_topology: support parsing cluster_id from DT Message-ID: <20220513084654.woxpjvtmtxx7cpik@bogus> References: <1652262776-3056-1-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, May 13, 2022 at 08:30:10AM +0000, 王擎 wrote: > > >> From: Wang Qing > >> > >> Use nested cluster structures in DT to support describing multi-level > >> cluster topologies and increase the parsing of nested cluster. > >> > >> Notice: the clusters describing in DT currently are not physical > >> boundaries, since changing "cluster" to "socket" is too involved and error > >> prone, this patch will not have any effect on one-level cluster topo, but > >> can support the mutil-level cluster topo to support CLUSTER_SCHED. > > > >Sorry the socket/package_id is broken. If we are playing with cluster_id > >which is now wrongly presented as package_id, you are forced to fix that > >too. We don't want to break that in a different way or leave that as is > >since the cluster_id and package ids now show up as same now. Earlier the > >cluster_id was -1. > > > >I had a look when I started reviewing your patch. Assuming we don't need > >nested cluster support yet, I have some patches(not built or tested > >unfortunately yet). Let me know your thoughts. If you think you still > >need support for some kind of nested cluster, build that on top of this. > >Also I haven't bothered about sched domains as this purely relates to > >topology and how this is mapped to sched domain is orthogonal. > > > >If anything is broken, that needs to be fixed separately there. I see the > >idea here is correct and would like to push the patches once I build/test > >and get some review/more testing. > > > >Regards, > >Sudeep > > You have to modify all DTS(rename "cluster" to "socket"), otherwise, > new package_id = -1 and new cluster_id = old package_id. > Nope. I am handling absence of socket nodes and that is a must for backward compatibility with existing DT. > This will affect MC and CLS useage, do you have any plans about this? > I don't have much knowledge on scheduler domains and I will defer that to the experts. I am just trying to get the topology read from DT correct and to align with PPTT. Though LLC is not yet considered but that is not part of cpu-map. I am trying to get only the /cpu-map part of topology correct at first. We(you, me or anyone interested) can get the LLC part updated after that. -- Regards, Sudeep