Received: by 10.192.165.148 with SMTP id m20csp1966716imm; Thu, 3 May 2018 08:13:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfesC8UHnhtDMaoDaaIE16LvmjQEutj+Z7XoywR1HOtx6YzTRNC7j66JtRwmZDXdbKUwbZ X-Received: by 10.98.223.205 with SMTP id d74mr23516200pfl.114.1525360414800; Thu, 03 May 2018 08:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525360414; cv=none; d=google.com; s=arc-20160816; b=xozdrXHaT4sp+l6BzySG8upkIqgtN0GJQVVlh8OWsnsRuAuygAsLW1jZgfgWeU8NSV ir5usaU+JQy0VBWwtRs9Soc2ZiL8PR75/zOlRfUVnXwMwixfZLMsD4pitC9v2UA3Ds14 hvqLD7FcARel8Q62oQGkEhQxtXFGcKqAESm+v96uglW/R3NZ6/1mmqpCfqGcWV1nZHdy Su5cqOhnBawUKDhz86MdLj2gWGTvCe5nOfNkMq7Xahq2zbwIumOC2od49ieSjB/aaD7q PrsCTKdpQD6MfWcelfgBBNDoNI872zVJqtn2nxVhnM3MHEwxd6miArHou8zFeZI2D3zz nlkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=kFhlqmjAN8XThnq4kv75WoxmejmVQnN0zA/GJBOW98s=; b=cutl/wozGdEOyz3klNQda6WYmRU7fbzjXKfUKc4Rz0PyP3clayCoR/t5nYs8NqZyoO 84HwRqH8vwSkPp+Xt8eY+5k7hoTJpdmq+Sv+kyP4TuNMxkMC6oVkEEvaeVKi8Q8HR8b+ me+ukRRRa02BL6GrYRlz4TCGhvdYky8wqmhrpU6YHdjhY6fq14ElOYfh2OFNLidhvLtx s9bEkIbUn5Yhkz6nnsTKuWdZICMeuDfh16/lKF+r0o5YVm5lDF9zpOELzVsI2+pBoeW8 nv+JAWfaNyE3anVkphcvG/mwctyHmHdlX1ozR1w1lAY5//ujp2oX42QQdm9MdXzEG4zJ axFA== 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 p91-v6si13753252plb.457.2018.05.03.08.13.19; Thu, 03 May 2018 08:13:34 -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 S1751301AbeECPNE (ORCPT + 99 others); Thu, 3 May 2018 11:13:04 -0400 Received: from foss.arm.com ([217.140.101.70]:43392 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751262AbeECPNC (ORCPT ); Thu, 3 May 2018 11:13:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 981CF1435; Thu, 3 May 2018 08:13:01 -0700 (PDT) Received: from work-enc (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 764B73F587; Thu, 3 May 2018 08:12:57 -0700 (PDT) Date: Thu, 3 May 2018 16:12:55 +0100 From: Morten Rasmussen To: Jeremy Linton Cc: linux-acpi@vger.kernel.org, Sudeep.Holla@arm.com, linux-arm-kernel@lists.infradead.org, Lorenzo.Pieralisi@arm.com, hanjun.guo@linaro.org, rjw@rjwysocki.net, Will.Deacon@arm.com, Catalin.Marinas@arm.com, gregkh@linuxfoundation.org, Mark.Rutland@arm.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, wangxiongfeng2@huawei.com, vkilari@codeaurora.org, ahs3@redhat.com, Dietmar.Eggemann@arm.com, palmer@sifive.com, lenb@kernel.org, john.garry@huawei.com, austinwc@codeaurora.org, tnowicki@caviumnetworks.com, jhugo@qti.qualcomm.com, timur@qti.qualcomm.com, ard.biesheuvel@linaro.org Subject: Re: [PATCH v8 13/13] arm64: topology: divorce MC scheduling domain from core_siblings Message-ID: <20180503151255.GB28409@work-enc> References: <20180425233121.13270-1-jeremy.linton@arm.com> <20180425233121.13270-14-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425233121.13270-14-jeremy.linton@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 06:31:21PM -0500, Jeremy Linton wrote: > Now that we have an accurate view of the physical topology > we need to represent it correctly to the scheduler. Generally MC > should equal the LLC in the system, but there are a number of > special cases that need to be dealt with. > > In the case of NUMA in socket, we need to assure that the sched > domain we build for the MC layer isn't larger than the DIE above it. > Similarly for LLC's that might exist in cross socket interconnect or > directory hardware we need to assure that MC is shrunk to the socket > or NUMA node. > > This patch builds a sibling mask for the LLC, and then picks the > smallest of LLC, socket siblings, or NUMA node siblings, which > gives us the behavior described above. This is ever so slightly > different than the similar alternative where we look for a cache > layer less than or equal to the socket/NUMA siblings. > > The logic to pick the MC layer affects all arm64 machines, but > only changes the behavior for DT/MPIDR systems if the NUMA domain > is smaller than the core siblings (generally set to the cluster). > Potentially this fixes a possible bug in DT systems, but really > it only affects ACPI systems where the core siblings is correctly > set to the socket siblings. Thus all currently available ACPI > systems should have MC equal to LLC, including the NUMA in socket > machines where the LLC is partitioned between the NUMA nodes. > > Signed-off-by: Jeremy Linton This patch looks good to me. Acked-by: Morten Rasmussen