From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6448C28CF8 for ; Mon, 15 Oct 2018 04:38:58 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5457D20842 for ; Mon, 15 Oct 2018 04:38:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5457D20842 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42YQgh4SFYzF3VL for ; Mon, 15 Oct 2018 15:38:56 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42YPr61f2WzF31s for ; Mon, 15 Oct 2018 15:01:10 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au 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 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) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Gautham R. Shenoy" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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