Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3453765imm; Sun, 14 Oct 2018 21:01:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV63zARfDeqXFVbyiFA6rRNbZQAM76rVi7p3+jH/M9zamQfi9U38zQFM56aqQaqMIX4AY4dg7 X-Received: by 2002:a63:525c:: with SMTP id s28-v6mr14384983pgl.78.1539576114833; Sun, 14 Oct 2018 21:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539576114; cv=none; d=google.com; s=arc-20160816; b=pcowPKqzzr7k20b1W2HfTWxzOVstr/+iLvjiMfo65WCFgHiVlYfDEcG5u4IJq0TSkN c7Nd6S9OqTFhNDogAlTr4Mn+OuFGJKxPcbWmny+UrLT7/GZzE/smyhPLjU3HJ/9XAFHF cClDl8FDsNZg+hIbF3asDUcfImqHzfQodL1S5q139h/5RE+UXdOgBW2F6Jc0Nv1wElNa yMav/4VLzywT1VHLK1KxLkjBVrEj1SzPchz+C+auPnxmMOcK59o26Tk7TvFHof2LjAWq bLDvnr9GZp3iiKo7z4q+EaQNORObTAT0XuaYwWxlU3SsnEg5Ps8nDROTR4v2eWdzoiGR 320A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=eV1japYY8ZbFwKJlapMnvvga/eYIEzZT5MXDtqhwOaE=; b=aL27aOLoCD+Yk9cVcn0vjSA2lHju/7pysTYF91/X8E/P8jzJ2PwcVTuZzozc5I3Jk7 MjWIO2Ze19JyHSjYAchB/miYjNUJUTakwiq2qT1EbisBzaUFDcha0pwvSNZ86BdcJOVg vcZKbvUfwkCgCzSOd0Au9TxEcpDD2ItZQ7x5VVE98rXk4kgeW61dJ91eE8EBin4UQVMz knSmUgFu9BT+NK0nvasO0IPB/dHYPzYTKCdylwkWeUpAUouxzX1xPI644gfiE0PMZfWn 0N7jNBailgK2HZbOEuBdKVpzegUcm2Ysd1YaNUzfH94os5Cf3ZhiMaaFK+RDVy0IV7RK xL3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si9838766plr.343.2018.10.14.21.01.40; Sun, 14 Oct 2018 21:01:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726781AbeJOLof (ORCPT + 99 others); Mon, 15 Oct 2018 07:44:35 -0400 Received: from ozlabs.org ([203.11.71.1]:54989 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726584AbeJOLoe (ORCPT ); Mon, 15 Oct 2018 07:44:34 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 42YPr562wDzB2xb; Mon, 15 Oct 2018 15:01:09 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 425752c63b6f3fed7b5a9cba2b8101a92cf36995 In-Reply-To: <1539235983-25259-2-git-send-email-ego@linux.vnet.ibm.com> To: "Gautham R. Shenoy" , Dave Hansen , "Aneesh Kumar K.V" , Srikar Dronamraju , Benjamin Herrenschmidt , Michael Neuling , Vaidyanathan Srinivasan , Akshay Adiga , Shilpasri G Bhat , "Oliver O'Halloran" , Nicholas Piggin , Murilo Opsfelder Araujo , Anton Blanchard From: Michael Ellerman Cc: "Gautham R. Shenoy" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v10, 1/3] powerpc: Detect the presence of big-cores via "ibm, thread-groups" Message-Id: <42YPr562wDzB2xb@ozlabs.org> Date: Mon, 15 Oct 2018 15:01:09 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-10-11 at 05:33:01 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > On IBM POWER9, the device tree exposes a property array identifed by > "ibm,thread-groups" which will indicate which groups of threads share > a particular set of resources. > > As of today we only have one form of grouping identifying the group of > threads in the core that share the L1 cache, translation cache and > instruction data flow. > > This patch adds helper functions to parse the contents of > "ibm,thread-groups" and populate a per-cpu variable to cache > information about siblings of each CPU that share the L1, traslation > cache and instruction data-flow. > > It also defines a new global variable named "has_big_cores" which > indicates if the cores on this configuration have multiple groups of > threads that share L1 cache. > > For each online CPU, it maintains a cpu_smallcore_mask, which > indicates the online siblings which share the L1-cache with it. > > Signed-off-by: Gautham R. Shenoy Series applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/425752c63b6f3fed7b5a9cba2b8101 cheers