Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp184144rdb; Thu, 19 Oct 2023 00:51:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcDVx7QT5tVtKAE80jYtnmCnISv983VtM3gNXF34+vJpJdWgFUErLPQOlJ1Q6uyM6ccu+T X-Received: by 2002:a17:902:ce90:b0:1ca:28f3:568e with SMTP id f16-20020a170902ce9000b001ca28f3568emr1728379plg.51.1697701877473; Thu, 19 Oct 2023 00:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697701877; cv=none; d=google.com; s=arc-20160816; b=uf7a6odeZORfrTiWK2y3fwDY7YxTZh7iuSPwL2fcbERzxyFmcGzn9bMehUrXgKO/dV SRl9X1G3oVPa/GHHSbw86DFRb2eFPjE2PsN+elb5ffDyaYU3owvwbIrK3KucehogVUwd jW1LpAw4vYbdMjv9adr1cHSjPPz0GxHOqwb1S/YGvPxjZhtnIWFFPzUNVd6Paqb9a200 pGpGL+RkHKgeQIRX3PM6S9aTua+hpdY7P3D9+pBhyMpQMbLRuYiNF3RtoszI6wNjEF3r WidthWPxxSZSGtu1DOW2SRuvQxHhr4P7itdOMw8DQfrBX8Tcf3uKChbHhjaXqJ6aghG2 LMYA== 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=Tj2sfG6o4PVcITUMHLw1E1ngyDfKo6Oj8GiFjy0BgNw=; fh=W0NAgMUSAebq3zrBW8121W1Dtz485uzMX09lkUjksxE=; b=f5pyn1uN04QfqPmWXbSd35b90Ev7pdwAkMUZGBI6XVXev8CO0oylNTR5xqzdu3mzwG 9GjFQOByBkxKaPzsWvC1pjJgC+T9n4Moj6eIO8Gb8BwX3U+Z5LWtZlr+qAugZHODJgxn P4UUnZDGtpPogDF3Tf4SecLUfhb1pxhK0dBKmE6V3z6U9KapvnXsJ1wMxlDy2W2yZqmC w/s+tgTgM8EgYZY+AP71InFECqOhkrfWeyqT63rJAeP/TKz2yjqnGBKPqM4PQa8G2Hm4 eGFcYmVp2sf/+lX5QPoKjSDlpG5aPtLMyXP2Fd+1VOqmrWWZVfToGHiptm/+CDtHWxBR 2r4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MGwUCsFG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n2-20020a170902d2c200b001b89613687bsi1592268plc.439.2023.10.19.00.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 00:51:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MGwUCsFG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1BD1380FCE26; Thu, 19 Oct 2023 00:51:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344861AbjJSHvH (ORCPT + 99 others); Thu, 19 Oct 2023 03:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232829AbjJSHvG (ORCPT ); Thu, 19 Oct 2023 03:51:06 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F217109 for ; Thu, 19 Oct 2023 00:51:04 -0700 (PDT) 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=Tj2sfG6o4PVcITUMHLw1E1ngyDfKo6Oj8GiFjy0BgNw=; b=MGwUCsFGHsUm4NlLV//62krFjB xxzTXL7q1nbTETm+09oFZdCY9Yn2LcPZ+/ybOPkIRt3oaCtB2X1rcv4uFs8IFhwJGkI/80lZ9xFZw IPdTLSUPa18/8IokSQZ5sWEbBgRFdPNldOBrMk6bsLDjFmkLgtdeyjWXVlwe5VonYLw8Wn/2GGWjl POg1CQmY3qtF8ec3kT7YGz/dNxWJUK7lIQatOtmtxAbdBxz/yPV8jmJayrFRfKKKue0RV63n38eip N1I16yGqj/UhG8efHYI12PM/yQpAPw4S5C0JzlfAwYYfGN+S7lGtQsNZ/jRrydziVa0ynelt9Y+z6 84BSry3A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qtNnr-005qil-7D; Thu, 19 Oct 2023 07:50:47 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id DDC6F300392; Thu, 19 Oct 2023 09:50:46 +0200 (CEST) Date: Thu, 19 Oct 2023 09:50:46 +0200 From: Peter Zijlstra To: Michael Ellerman Cc: Srikar Dronamraju , linuxppc-dev , Christophe Leroy , Nicholas Piggin , Rohan McLure , Valentin Schneider , Josh Poimboeuf , Mark Rutland , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/6] powerpc/smp: Disable MC domain for shared processor Message-ID: <20231019075046.GN33217@noisy.programming.kicks-ass.net> References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> <20231018163751.2423181-5-srikar@linux.vnet.ibm.com> <87pm1b5ia7.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pm1b5ia7.fsf@mail.lhotse> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 00:51:15 -0700 (PDT) On Thu, Oct 19, 2023 at 03:48:48PM +1100, Michael Ellerman wrote: > Srikar Dronamraju writes: > > Like L2-cache info, coregroup information which is used to determine MC > > sched domains is only present on dedicated LPARs. i.e PowerVM doesn't > > export coregroup information for shared processor LPARs. Hence disable > > creating MC domains on shared LPAR Systems. > > > > Signed-off-by: Srikar Dronamraju > > --- > > arch/powerpc/kernel/smp.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c > > index 498c2d51fc20..29da9262cb17 100644 > > --- a/arch/powerpc/kernel/smp.c > > +++ b/arch/powerpc/kernel/smp.c > > @@ -1046,6 +1046,10 @@ static struct cpumask *cpu_coregroup_mask(int cpu) > > > > static bool has_coregroup_support(void) > > { > > + /* Coregroup identification not available on shared systems */ > > + if (is_shared_processor()) > > + return 0; > > That will catch guests running under KVM too right? Do we want that? Some KVM people use vcpu pinning and pass-through topology things, slice-of-hardware or something like that. In that scenario you actively do want this. I'm fairly clueless on when this is_shared_processor() gets to be true, so that might already be dealt with..