Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp346207pxu; Thu, 3 Dec 2020 01:33:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRgwxIlTGNiv3Mp7QkvO4XAczOMvEbHqrp/iWF+pmKGxYC+uXcj+etsQr9nOOPN5yQjF+s X-Received: by 2002:a17:906:eb5b:: with SMTP id mc27mr1676393ejb.163.1606988030802; Thu, 03 Dec 2020 01:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606988030; cv=none; d=google.com; s=arc-20160816; b=MenC9d+y2k6p7cUxVL0kruq2GwjXH19VomeCQW9IpZiCBLePAhibM2jPQ3GwT0zK67 UxBTsU9uDQJXphx2Wn1jMpgsoxjvIJ52pR4nUs8W442UOGvy0aI2b2CO/+7auN90OUmd imWP42lOi8EbydgzrWGjKN+t19QgSmGL6e35n3iAAEZJ9CfylG6Ibz0eXgLyv+uq8dJG wF63yCm77Suiy//aHrNX9Ci3iQ332DHkBC3a/dHcv5UhIXCKlyOUU0ZxQurLtTr1FsdA XDV8UgEmvMuoOeFCdkDu/JASbWSq1pxDHnNSobayLnGfmf/k/UcWxLaPA2EB2IJJ1eYm MfEQ== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=nPpnyaz1GEljl9uGWL8SuA2DDESrqim+Vy6HGJodTj4=; b=haghsJRBLdmWGp+CzpK7k79BuHE0K5LbjyaLqspCSo9JmgRmEYhPgFa1Zxco8/2hwq dwUTedIaT2zlLuF0XfMHp1NU1UP+j6cQ202zBwUD7DSOmyMWDaLZqmaeHuFtKubhHda7 x62xIKFTzCUFiJolQ+ynCoca6ZdcTGT0M1OxnbFxD4v4xcQvjrv7g7l61qpJ4gMYA/6u Gib7hY6P3wm9sdGLzN3YjOi1jgGXs7Te/dTrBu4Sh4/DOyYnF2mBSgl8CF1ytlpLMEhV Iul9u+v9l2tLJRVTREc8/jDY5Rjy7C6gv3gjlEMbid7sxxxMa7ejoEB0qFhY3AhCm3CH BWBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XmupRTV7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si594467edk.307.2020.12.03.01.33.27; Thu, 03 Dec 2020 01:33:50 -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=@infradead.org header.s=casper.20170209 header.b=XmupRTV7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388464AbgLCJ3q (ORCPT + 99 others); Thu, 3 Dec 2020 04:29:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387563AbgLCJ3q (ORCPT ); Thu, 3 Dec 2020 04:29:46 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD0B1C061A4D; Thu, 3 Dec 2020 01:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nPpnyaz1GEljl9uGWL8SuA2DDESrqim+Vy6HGJodTj4=; b=XmupRTV7OXHj8VFbLDWnXPpvgb dPDdEIVY87RODwlYICw+qFu8hnscminzKjB30tkNhXXv3gg3WZN7+vJ0TLLqCE2YKszzSmh8yb2kR Teaxbn82e7S/yRylXlf/yTTvVCqGWwdCJAxcqtOemF/waiWJGz7xQARzLTSZNpE/wmcPrqqKIEDDD XOpRiauX/TD/Po3KOhaijVSUmSAIq3u94ubsLSsVcUVo6Ku6WTXRdJgygVoGmVseKSA9tdEdkSmvN p+LckFXqi6UdG/hxqCt6wv8NuPbBSFofqDpgxQNs+SjRiClRD+yj7rHNZLFpObm69w+m+46BZrKIb RCbjx6wg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkkuf-0003ld-FU; Thu, 03 Dec 2020 09:28:34 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8B87030018A; Thu, 3 Dec 2020 10:28:31 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 53C4E201BAA75; Thu, 3 Dec 2020 10:28:31 +0100 (CET) Date: Thu, 3 Dec 2020 10:28:31 +0100 From: Peter Zijlstra To: Valentin Schneider Cc: Barry Song , catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, lenb@kernel.org, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linuxarm@huawei.com, xuwei5@huawei.com, prime.zeng@hisilicon.com Subject: Re: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters Message-ID: <20201203092831.GH2414@hirez.programming.kicks-ass.net> References: <20201201025944.18260-1-song.bao.hua@hisilicon.com> <20201201025944.18260-3-song.bao.hua@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 04:04:04PM +0000, Valentin Schneider wrote: > > Gating this behind this new config only leveraged by arm64 doesn't make it > very generic. Note that powerpc also has this newish "CACHE" level which > seems to overlap in function with your "CLUSTER" one (both are arch > specific, though). > > I think what you are after here is an SD_SHARE_PKG_RESOURCES domain walk, > i.e. scan CPUs by increasing cache "distance". We already have it in some > form, as we scan SMT & LLC domains; AFAICT LLC always maps to MC, except > for said powerpc's CACHE thingie. There's some intel chips with a smaller L2, but I don't think we ever bothered. There's also the extended topology stuff from Intel: SMT, Core, Module, Tile, Die, of which we've only partially used Die I think. Whatever we do, it might make sense to not all use different names. Also, I think Mel said he was cooking something for select_idle_balance(). Also, I've previously posted patches that fold all the iterations into one, so it might make sense to revisit some of that if Mel also already didn.t