Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2585084ybg; Fri, 31 Jul 2020 04:34:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye1HzsTVhOovuOynGLW/H/z2yzr4Y0XR7Mbwj8/WAZTPDfYR65fVhskUC4RMZ7BpWpK5Op X-Received: by 2002:a17:906:3fc4:: with SMTP id k4mr3529283ejj.315.1596195244100; Fri, 31 Jul 2020 04:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596195244; cv=none; d=google.com; s=arc-20160816; b=hbbWBv1dmD9Ru9aV1TxfiwnUmtqwEvW6TsnYHZ3G1ayNdAVNXru3bVDUosvf3vuzqR bNZUWfFmRVqpt53FBzjHt5W7LFBZf8k1p3DVR+esWvuclSgxFjAHH59lNYDu3FePlfFX MS4qKdy1MXb2RFUUj+I8rWXqsiLYLBHOKuuo2bnTPYHB3rU+jygnQo8d+1l3tpPH9Z1r FBA0EANphwFxPdvzJv2eqr/2nngfN6ZrcRcDGJpGMaZTo3WXQ9nWvRhS8s+gziITWMHA rIgNobj5pn1p3C9QDqj3Wr+UgTx6z0EeClWae/7sGzuZbfyk+IR3vCIdHBDuo8OXzD0I /Qng== 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=d8S0jWxSCIwPUu60311IyAS2XUZX1/jTzeMThzmqb5o=; b=DDMZMs3pPYKXnt9GA5l8wDUjS0gC7Y3kBNRI/u5eYpSeb2ay2T3uqn43lYSJ69h0oc W9fkulQ+0xvJMU8x2nF32QGzPoTga7KBEIS38YIm+nP6utQz9145dvhk8YdmB+h71Rfl G8CIe03TabvVQUEKXM+9vVnLSU3Lk7tVLupuWtZTwonNKZ9u/w0MaFCfsCsgkyOzFpPi Lxe4FhSNkdW0RdR3tkMd9PxB6re48RFpxKU+dR3Di8hCsg4tWDuHUHSACTrwKq0/NIHg rVSZPvrj2AWSlF6IcxeFxjULTS34Yw85uce0dq0Ptu0d+WpLx5euBQ36KbcQK8/OUlqW ztCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=j9+9K8UJ; 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 v7si6178713edd.551.2020.07.31.04.33.41; Fri, 31 Jul 2020 04:34:04 -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=j9+9K8UJ; 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 S1732755AbgGaLbR (ORCPT + 99 others); Fri, 31 Jul 2020 07:31:17 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:46921 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732104AbgGaLbQ (ORCPT ); Fri, 31 Jul 2020 07:31:16 -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 4BJ4q64xhRz9sTM; Fri, 31 Jul 2020 21:31:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1596195074; bh=sEHXx5GmyjktVn/nBfOnSByax6uQ2hzqiMlXONEK7HE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=j9+9K8UJvsoOJPGC52wJJ8GBd4ZXcwaQdD4S6QXKl+SpP33BYz+OKTOgncwB/iZtu 0LNW01IfHgVvOx+w8gEc6alSQjNJ5V5TxgzBAznm57vQ2SkKu0SdfqxriJ2r6l/JV4 C2a0u0/P78Yn3f9bp7/4RhsG52eLOQDoizTdx5BoZCHMFMnYtjm4zlMS0KLiyi11tn Fsqcr3rpPQE1YFPQoTrFzcAyG/y5MJ9G25Zn0KyOVtXuMuCtmi9pOxTPWWqaDvosMo sipNLZxyMiDxo4S6hkVJai1hutnkrmhOsz6PK2WIQU/IOjYcMkB8+ZFmkYPoWQoR5v oW5m3k+uPQs9A== 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 07/10] Powerpc/numa: Detect support for coregroup In-Reply-To: <20200731091859.GG14603@linux.vnet.ibm.com> References: <20200727053230.19753-1-srikar@linux.vnet.ibm.com> <20200727053230.19753-8-srikar@linux.vnet.ibm.com> <8736585djw.fsf@mpe.ellerman.id.au> <20200731091859.GG14603@linux.vnet.ibm.com> Date: Fri, 31 Jul 2020 21:31:13 +1000 Message-ID: <87r1sr53b2.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:49:55]: > >> Srikar Dronamraju writes: >> > Add support for grouping cores based on the device-tree classification. >> > - The last domain in the associativity domains always refers to the >> > core. >> > - If primary reference domain happens to be the penultimate domain in >> > the associativity domains device-tree property, then there are no >> > coregroups. However if its not a penultimate domain, then there are >> > coregroups. There can be more than one coregroup. For now we would be >> > interested in the last or the smallest coregroups. >> >> This still doesn't tell me what a coregroup actually represents. >> >> I get that it's a grouping of cores, and that the device tree specifies >> it for us, but grouping based on what? > > We have just abstracted the fact that we are creating a sub-group of cores > within a DIE. We are limiting to one sub-group per core. However this would > allow the firmware the flexibility to vary the grouping. Once the firmware > starts using this group, we could add more code to detect the type of > grouping and adjust the sd domain flags accordingly. OK. That's good info to have in the change log. >> I think the answer is we aren't being told by firmware, it's just a >> grouping based on some opaque performance characteristic and we just >> have to take that as given. >> > > This is partially true. At this time, we dont have firmwares that can > exploit this code. Once the firmwares start using this grouping, we could > add more code to align the grouping to the scheduler topology. > >> But please explain that clearly in the change log and the code comments. >> > > Okay, I will do the needful. Thanks. cheers