Received: by 10.213.65.68 with SMTP id h4csp963308imn; Wed, 14 Mar 2018 05:44:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELuMu90a/Li4nL19gX1dvEFH0/VrW6yrXK4cbqvO0qnCzsoWcpbnQ1BtFlYe3rtdJ3KdjxdW X-Received: by 2002:a17:902:b101:: with SMTP id q1-v6mr3977232plr.287.1521031483894; Wed, 14 Mar 2018 05:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521031483; cv=none; d=google.com; s=arc-20160816; b=XVzC+TLmEScun0/ffxbOtq0rh4+1uyuaTa8u++ubex/n7Y8ViZBsHqgLDVwGHb3Jg7 f1d6XYTqNovVBVxZjVv6uBzMLzE6hDovi30rj+42VxaOiZYY1cmk6ucu2Z1u6/kKAawo 8qGrS/b2iCS5l/Q1mBYMpXHuEoy0udHtmXCA+94YDUhWclAaXvrBiw3DgURDa2PpvPot bzozeIoVvNB8BZAfXdMFJReSyIfBiPo3HsuLi5Hv0tHkufymNfOTaGauJIiFp+HkFwv8 xfg2jE0XvExt/+wL3yeds7Uu2HXla4Oagg0/oY4yeFucNo6xxhvbAHdy189JupJTW+4n T/0g== 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=d62H7ILYG8CnOuf9i4iyNnGLgBSW8IIsa9odQduRPdw=; b=HmZl2kfDvI1G2qJS5WdWX20RPXAaJyJXeoG0aG5ONrJ8yNn92bWTKE27YqAraJFsyh /1M8dENG65ZHfM/IAYOooxgCUahyFmmDjmuv4AY2FLYgHlAptEp3X68BDiCsi3iCWo6i OTfTLE34Fueo3zc6cL92Iw9Gv1xV5rV0UkR8/DYzczAZloUoU/ACbz4zO0FNF2U8W8Jz p9Y0VyOcy0ezxOGpKqlZvmVZM0xUMI70MAmZxNd/1UpYrslNuShPYuuzzul9Kl3mHWh2 AClQGSpPIqZfBcdIK9z+MP0rvJQQ10HCDWBEsfF7oCSYjxFtMjHAES2fSS+ftAzGQtFl 5MpA== 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 n15-v6si1900741pll.42.2018.03.14.05.44.12; Wed, 14 Mar 2018 05:44:43 -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 S1751719AbeCNMnK (ORCPT + 99 others); Wed, 14 Mar 2018 08:43:10 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbeCNMnJ (ORCPT ); Wed, 14 Mar 2018 08:43:09 -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 9A05E1596; Wed, 14 Mar 2018 05:43:08 -0700 (PDT) Received: from e105550-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E783C3F487; Wed, 14 Mar 2018 05:43:04 -0700 (PDT) Date: Wed, 14 Mar 2018 12:43:02 +0000 From: Morten Rasmussen To: Brice Goglin Cc: Jeremy Linton , mark.rutland@arm.com, vkilari@codeaurora.org, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, tnowicki@caviumnetworks.com, gregkh@linuxfoundation.org, will.deacon@arm.com, dietmar.eggemann@arm.com, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, ahs3@redhat.com, linux-acpi@vger.kernel.org, palmer@sifive.com, hanjun.guo@linaro.org, sudeep.holla@arm.com, austinwc@codeaurora.org, linux-riscv@lists.infradead.org, john.garry@huawei.com, wangxiongfeng2@huawei.com, linux-arm-kernel@lists.infradead.org, lenb@kernel.org Subject: Re: [PATCH v7 13/13] arm64: topology: divorce MC scheduling domain from core_siblings Message-ID: <20180314124302.GL4589@e105550-lin.cambridge.arm.com> References: <20180228220619.6992-1-jeremy.linton@arm.com> <20180228220619.6992-14-jeremy.linton@arm.com> <20180301155216.GI4589@e105550-lin.cambridge.arm.com> <5d6bf4cf-2f6d-d123-f17f-d47d8e74c16c@arm.com> <20180306160721.GJ4589@e105550-lin.cambridge.arm.com> <8ac3567c-9fd8-4b0c-121c-287a027b5156@arm.com> <20180307130623.GK4589@e105550-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Mar 08, 2018 at 09:41:17PM +0100, Brice Goglin wrote: > > > Is there a good reason for diverging instead of adjusting the > > core_sibling mask? On x86 the core_siblings mask is defined by the last > > level cache span so they don't have this issue. > > No. core_siblings is defined as the list of cores that have the same > physical_package_id (see the doc of sysfs topology files), and LLC can > be smaller than that. > Example with E5v3 with cluster-on-die (two L3 per package, core_siblings > is twice larger than L3 cpumap): > https://www.open-mpi.org/projects/hwloc/lstopo/images/2XeonE5v3.v1.11.png > On AMD EPYC, you even have up to 8 LLC per package. Right, I missed the fact that x86 reports a different cpumask for topology_core_cpumask() which defines the core_siblings exported through sysfs than the mask used to define MC level in the scheduler topology. The sysfs core_siblings is defined by the package_id, while the MC level is defined by the LLC. Thanks for pointing this out. On arm64 MC level and sysfs core_siblings are currently defined using the same mask, but we can't break sysfs, so using different masks is the only option. Morten