Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2609214ybg; Fri, 31 Jul 2020 05:24:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq4E+GD1jBVN8C9wyrKHUG1bKJLNq4SOzqImjQdCHcFEUBfeWR2PDeHykaIZE5SZODqlxe X-Received: by 2002:a05:6402:13c4:: with SMTP id a4mr3698972edx.108.1596198251904; Fri, 31 Jul 2020 05:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596198251; cv=none; d=google.com; s=arc-20160816; b=0RfIjqainPFuROCBxGp/klWjlsd9CyGiRCAXqdkgFNODbodL0D7LIoBFQLp9rqlamZ EyE/DJAwsam2kNcEliVWiv+ox8B5yd7ysZTDNEktzO5D9BNGmkkb4WiuUaeBPBf4xvka kFF3Ryyfd7Z2c1B7p31biStYjjWUyvTw9K1wyg8YP1PhGR2kAL8htOJ1ERIbqzkjCH9p op7O7Uftwo6Dk5nwSMWKPBgbNcgeFoL++5Zx4EBT7+SCJzUBkxj/9/T52RoOPC5vmtrF aWAKBBZJmrwZvayoDO5Tu98p/DL/Eu9vo7n/zQxteEJTD/iykjIHQ2qHgBxjVqxT7G6Y jS4w== 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:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=11IXm0onvcoXHIKQdUkjf0Nevmun60ee9eTRLtKCGEg=; b=BkGTRY+HiiRFGA+YMvTVJEoxX3wfVNKYtn4hI022ZXvRyiPJR0ysx4Ud4CfPaoBz4D wKpXgJenEdjMrA8urXG4rsLekxys+7MX+sV1dbyAfaFskg9wF/+Zp+ulyRTL4Pp0qQWO DW/NYIlwRsPXsyg2DpgPDDXkh+xMr10DieaPF4RCBf0x+pF11L8I6tXz4/KnmPwreQOB OdKlOswnQkTvsF9+Vu3GXFz7lpdhaSziQau8W8oJ3vmrSSpY1no2VnU3r4uadOjCnHke gQApCoPyR1uaxbyIx+b/Ah3iWZqw/BrLSmkKuTKD4XzS0wVTpS2R0p6i7FIgL59W4cIH RUFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=KbZpEbke; 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 cn25si4920214edb.68.2020.07.31.05.23.49; Fri, 31 Jul 2020 05:24: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; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=KbZpEbke; 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 S2387436AbgGaMWh (ORCPT + 99 others); Fri, 31 Jul 2020 08:22:37 -0400 Received: from ozlabs.org ([203.11.71.1]:45813 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387441AbgGaMWg (ORCPT ); Fri, 31 Jul 2020 08:22:36 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4BJ5yK6H3Dz9sTj; Fri, 31 Jul 2020 22:22:33 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1596198154; bh=Prtm3ZkafGqoaiQ6lU5j4Sn7hFJGfCqYKtzN6e75H/U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KbZpEbke43+mqF8Wrlu3oo7mQEHpU414hdIdx+DUlPlL6Kp3bT3j8rxM15zP+FV0A +cAW3Fg9FIQKplR0VN++e/ezGqL0lJ5JCRpoMiZBi7FXiaAHnRNGRb1KLrw7uNC/rB BDHId0/yzLGFbZj6qbVhsuBpJ1mlRrootLlQBhWtBXCrAb/CcpPEcf92UyzeIcvDbK hBa1e5yT6WZR4kY3u54KU8Fe2Csf/AzNYZhbXAS7eTCnwpG34leJeS57G4qDd8dEtB pavyyUd8Y+BtEivfjjmXio/Em3P7fb/h5bfC6/J0amjIIOUbTHvZ3wbDwlM4bkzeny A1rgxfFm4dRFQ== From: Michael Ellerman To: Srikar Dronamraju 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 06/10] powerpc/smp: Generalize 2nd sched domain In-Reply-To: <20200731092901.GH14603@linux.vnet.ibm.com> References: <20200727053230.19753-1-srikar@linux.vnet.ibm.com> <20200727053230.19753-7-srikar@linux.vnet.ibm.com> <875za45dr2.fsf@mpe.ellerman.id.au> <20200731092901.GH14603@linux.vnet.ibm.com> Date: Fri, 31 Jul 2020 22:22:32 +1000 Message-ID: <87lfiz50xj.fsf@mpe.ellerman.id.au> 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 Srikar Dronamraju writes: > * Michael Ellerman [2020-07-31 17:45:37]: > >> Srikar Dronamraju writes: >> > Currently "CACHE" domain happens to be the 2nd sched domain as per >> > powerpc_topology. This domain will collapse if cpumask of l2-cache is >> > same as SMT domain. However we could generalize this domain such that it >> > could mean either be a "CACHE" domain or a "BIGCORE" domain. >> > >> > While setting up the "CACHE" domain, check if shared_cache is already >> > set. >> >> PeterZ asked for some overview of what you're doing and why, you >> responded to his mail, but I was expecting to see that text incorporated >> here somewhere. >> > > Okay, do you want that as part of the code or documentation dir or the > changelog? I guess a comment is best, as that's most likely to be seen by people looking at the code in future. A little bit of overview in the change log is also good. >> He also asked for some comments, which I would also like to see. >> >> >> I'm also not clear why we want to rename it to "bigcore", that's not a >> commonly understood term, I don't think it's clear to new readers what >> it means. >> >> Leaving it as the shared cache domain, and having a comment mentioning >> that "bigcores" share a cache, would be clearer I think. >> > > Today, Shared cache is equal to Big Core. However in not too distant future, > Shared cache domain and Big Core may not be the same. For example lets > assume that L2 cache were to Shrink per small core with the firmware > exposing the core as a bigcore. Then with the current design, we have a SMT > == SHARED CACHE, and a DIE. We would not have any domain at the publicised 8 > thread level. Keeping the Bigcore as a domain and mapping the shared > cache, (I am resetting the domain name as CACHE if BIGCORE==SHARED_CACHE), > helps us in this scenario. Yeah OK. In that scenario it's not really clear what the 8 thread level domain expresses, if the two "halves" of the bigcore have separate L2s. But presumably there is still some benefit to exposing it. cheers