Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp289245rdb; Thu, 19 Oct 2023 04:51:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFuGA74xSKGWshA2votm+YBn/71KDwBfAtRzbnGq0AyLcepxjBjWtKdCfEH7h44DjJjyIMK X-Received: by 2002:a05:6a21:3e01:b0:17a:7a3:22b0 with SMTP id bk1-20020a056a213e0100b0017a07a322b0mr1715270pzc.39.1697716278343; Thu, 19 Oct 2023 04:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697716278; cv=none; d=google.com; s=arc-20160816; b=YBrKpyc4CsGhZCjfMp/Gvr+hsnsqdqyP6u7oqWXdZe3o+/m1TjNGjdjV/PcqtKclpO ruqpVJmCELVaOg1inz6OEYy6To60FOgySex5cyVXEj5wfKbkaZizKGInji8IYemY0eqk uo7oL/QRdQPDRKDVIneatCENb9K6WCdUv44lFUEQH0QdCV3QTEjJozYB/58otACbdN7u w/dUoJICkxOKm4K54q/4e4d+PTGpxrcWVGpFXxjmPW5lPix5acI1DFLEaysaK7Nd29Z3 hjhjCoos9dCF4+nTwZ3CSyr53+g4MIwdRHAhNbCHkRU+e0XiLwe6LCPet5senvknaUu/ sWhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=QVNmT0LMj8mt5yv4FZ1LFFQtgL5o7wdHisErTaVs4hE=; fh=YGIv/N6YWyRSvdmO/z17shmFjf1QDa3tBL09+Y700G8=; b=WxgTts87o+OlxvKMEnQLTi20nykM/guGvQcG+3XxEuIsCLYkzFk/bCwEOdBSDUuW4f 0ZyGuAfOtTHbklGLP3nhTYvs8YIz4Bcpe24W6Ma9zSq84dD2cCzlf2oG/zFiq0WMbQ4A tMjmQdhrtgsoCb2wVJLMn82u+oVXwuMzNf5CRRm4d7UPSrcqYKe+qnQsrSgut+9NxnTX Vs8gRv29tvDJMFwMSux0qgtlCVTH1zJ1ArD2//KShhBXNSbptUkfuBmU3n8pZ2v/84BR okTaRwhrgmBbHm8kR3YNB3gvHU+wYuirc89b+n20bO/xYxzcD4XIKZ6kLBPpRQJkWhl/ rrGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Rmar2YgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d12-20020a170902cecc00b001c62e2ce6a7si2052685plg.445.2023.10.19.04.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 04:51:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=Rmar2YgE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id C1FD081A73D0; Thu, 19 Oct 2023 04:51:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233144AbjJSLu5 (ORCPT + 99 others); Thu, 19 Oct 2023 07:50:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbjJSLu4 (ORCPT ); Thu, 19 Oct 2023 07:50:56 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34C8BE for ; Thu, 19 Oct 2023 04:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1697716249; bh=QVNmT0LMj8mt5yv4FZ1LFFQtgL5o7wdHisErTaVs4hE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Rmar2YgEngG8pbe1XRhd/jpc3FiE/6WmFa6NDuRcLlK6yAxHuJMH6qD9lDSfW+6az 3wWovzJWSHUNxe5sHAgGmOT7F7cZuePWOnfokLxsY1ulLzAzVBPjEFMECw4Gr0ETwZ 1YZ+aboGXQFo+H+gnshFjMoIqfZvlNiezc8WFyFrDnHNlkNlhBb2OoPS7AfRacnTkC EDBqTflVoGwLTRmbNUZvlk7eA3PX/PAuTHG5Ke4fwRxANfX/nr2KMKjmbQZSbvLstA w7axDAUvC56hYILjiXhau9N65HeHs/V7qlBFnwopA+nPzAWUB9wgnYbKg9wfy07EcJ Ao+1wEY0JMulw== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SB5dM5p59z4xZm; Thu, 19 Oct 2023 22:50:47 +1100 (AEDT) From: Michael Ellerman To: Peter Zijlstra 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 2/6] powerpc/smp: Enable Asym packing for cores on shared processor In-Reply-To: <20231019074828.GM33217@noisy.programming.kicks-ass.net> References: <20231018163751.2423181-1-srikar@linux.vnet.ibm.com> <20231018163751.2423181-3-srikar@linux.vnet.ibm.com> <87v8b35ir3.fsf@mail.lhotse> <20231019074828.GM33217@noisy.programming.kicks-ass.net> Date: Thu, 19 Oct 2023 22:50:43 +1100 Message-ID: <87h6mm6dbg.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 04:51:14 -0700 (PDT) Peter Zijlstra writes: > On Thu, Oct 19, 2023 at 03:38:40PM +1100, Michael Ellerman wrote: >> Srikar Dronamraju writes: >> > If there are shared processor LPARs, underlying Hypervisor can have more >> > virtual cores to handle than actual physical cores. >> > >> > Starting with Power 9, a core has 2 nearly independent thread groups. >> >> You need to be clearer here that you're talking about "big cores", not >> SMT4 cores as seen on bare metal systems. > > What is a 'big core' ? I'm thinking big.LITTLE, but I didn't think Power > went that route (yet?).. help? No it's not big.LITTLE :) It means we have two SMT4 cores glued together that behave as a single SMT8 core, a system is either in "big core" mode or it's not, it's never heterogeneous. If you grep for "big_core" there's some code in the kernel for dealing with it, though it's probably not very illuminating. Possibly we should switch to using the "thread group" terminology, so that it doesn't confuse folks about big.LITTLE. Also the device tree property that we use to discover if we're using big cores is called ibm,thread-groups. cheers