Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp368435ybg; Tue, 28 Jul 2020 08:04:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2z8D8J/2qLY/IWWggDLkn4gvVO1npb1REv3s6l/s5mx2g2aSLEP1fICzTzpk6ilxTMrvz X-Received: by 2002:a05:6402:1845:: with SMTP id v5mr15116958edy.66.1595948677378; Tue, 28 Jul 2020 08:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595948677; cv=none; d=google.com; s=arc-20160816; b=NrCjlyJQ7TyzDEbxTmU40HqLPfkhkPy+IyBZfqkwaLqqZzY5cM7Du0PzZb1v+AvB9h phH0HBzG0FKXRnNQMqRuwSFdX8S9GUMo9ckR/Uf/r/qJzVHAZP9Ir/Cm3IgzF9E9EvdD g7Dg6UE3jnR/paWp+x4iGrKwms0fl8zK6NCxfylXon46cmpPQhwLxrkWkogtjSFiqTPs Bb+zTpjCuUQuA0OiAiLMVb/NrAe1OSJqZmUTal8sHalTpc0lPLQwWmRfNZunGaMLe96d mK3WWWDE2WUo6Bj9KxCxUqLwMYk8XDRA4nrXM4z8xnRShRVBiU0D9T0mb1IX0kKSOJPo 6O3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=KjwNJLVHJ26rdiX0M03vMlpLS8NFwFCxsg4PWJqmD4U=; b=LyJIH7rgOFbL4fRFjKyBiL96WkNq86pWWi3118HMTRfXVc7hkY1FvKfCHkUxq9g1cb adsoriE4dzlNd3lHOSMxzwYRFVTONjyx/eSKniL6Px40tM+MqLu3HM8M5XOOvlyQZNKZ RzkyYVKigG8lP1Z18b+rvvXYoXittN8ssO9mjnGZHIy1fpHwhm+xdkZz+oi8lNPN+RrR rSH/xn95RVd+90R/TncItGBbsXKaYtVHv/c1ktXRWk+yfaNq09ShQKYxT5v+l7f5Cjin rJhhTw3Q1oHC7o0hfnIXiFJKtDmTh8mSC1ZE1JLnwLVJ0JSa5+TJVz6xy+uvhLsmq+0F Yx1w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si7554244eji.614.2020.07.28.08.04.14; Tue, 28 Jul 2020 08:04:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730583AbgG1PDT (ORCPT + 99 others); Tue, 28 Jul 2020 11:03:19 -0400 Received: from foss.arm.com ([217.140.110.172]:36552 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730518AbgG1PDS (ORCPT ); Tue, 28 Jul 2020 11:03:18 -0400 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 D1AA031B; Tue, 28 Jul 2020 08:03:17 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 305F83F718; Tue, 28 Jul 2020 08:03:16 -0700 (PDT) References: <20200727053230.19753-1-srikar@linux.vnet.ibm.com> <20200727053230.19753-10-srikar@linux.vnet.ibm.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Srikar Dronamraju Cc: Michael Ellerman , linuxppc-dev , LKML , Nicholas Piggin , Anton Blanchard , Oliver O'Halloran , Nathan Lynch , Michael Neuling , Gautham R Shenoy , Ingo Molnar , Peter Zijlstra , Jordan Niethe Subject: Re: [PATCH v4 09/10] Powerpc/smp: Create coregroup domain In-reply-to: <20200727053230.19753-10-srikar@linux.vnet.ibm.com> Date: Tue, 28 Jul 2020 16:03:11 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 27/07/20 06:32, Srikar Dronamraju wrote: > Add percpu coregroup maps and masks to create coregroup domain. > If a coregroup doesn't exist, the coregroup domain will be degenerated > in favour of SMT/CACHE domain. > So there's at least one arm64 platform out there with the same "pairs of cores share L2" thing (Ampere eMAG), and that lives quite happily with the default scheduler topology (SMT/MC/DIE). Each pair of core gets its MC domain, and the whole system is covered by DIE. Now arguably it's not a perfect representation; DIE doesn't have SD_SHARE_PKG_RESOURCES so the highest level sd_llc can point to is MC. That will impact all callsites using cpus_share_cache(): in the eMAG case, only pairs of cores will be seen as sharing cache, even though *all* cores share the same L3. I'm trying to paint a picture of what the P9 topology looks like (the one you showcase in your cover letter) to see if there are any similarities; from what I gather in [1], wikichips and your cover letter, with P9 you can have something like this in a single DIE (somewhat unsure about L3 setup; it looks to be distributed?) +---------------------------------------------------------------------+ | L3 | +---------------+-+---------------+-+---------------+-+---------------+ | L2 | | L2 | | L2 | | L2 | +------+-+------+ +------+-+------+ +------+-+------+ +------+-+------+ | L1 | | L1 | | L1 | | L1 | | L1 | | L1 | | L1 | | L1 | +------+ +------+ +------+ +------+ +------+ +------+ +------+ +------+ |4 CPUs| |4 CPUs| |4 CPUs| |4 CPUs| |4 CPUs| |4 CPUs| |4 CPUs| |4 CPUs| +------+ +------+ +------+ +------+ +------+ +------+ +------+ +------+ Which would lead to (ignoring the whole SMT CPU numbering shenanigans) NUMA [ ... DIE [ ] MC [ ] [ ] [ ] [ ] BIGCORE [ ] [ ] [ ] [ ] SMT [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] 00-03 04-07 08-11 12-15 16-19 20-23 24-27 28-31 This however has MC == BIGCORE; what makes it you can have different spans for these two domains? If it's not too much to ask, I'd love to have a P9 topology diagram. [1]: 20200722081822.GG9290@linux.vnet.ibm.com