Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp923905imm; Wed, 6 Jun 2018 07:55:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIebn/UK1ovdos0PhwhemGaaRwSq4xQeHVYAJHiQaDjhHVedirDCkBoFCegfSYutszBdHPm X-Received: by 2002:a65:45c2:: with SMTP id m2-v6mr2803463pgr.189.1528296951987; Wed, 06 Jun 2018 07:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528296951; cv=none; d=google.com; s=arc-20160816; b=q9fvrf7qsthHBgMMIZS+yy5K5OHdjCp9YMnqh4dyUR/75H4W5jhwc4cmfh6c9Dt5Vq qTn26fQyCBYpdM3dhH9QopWFX7tZIhBrbFyQblwpXXfJt6DCD7bfLyAHdd4WXaaN+/Dz T9t+b1QXEFQrfdX9TJgDR/KG5YfXL9Wg/RX98K43Qi/8ER4Vssa6IJ9tnV9QuQXWdf89 Bsac6oFZW4znTO3glTpI0A9ex8i+ocu2ok6XaU6CExhYfT8LSEaWqoifPQZkxlBYlyBY +tktbPJ0owfP8DdMPuMuNZFkFuyEQpxmgqPE1gVoov3RW5BHO0+j4qnWJ9q4+vrTox1W AUgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=PVBuTCKcEBe+m3yZTlGX0C9fOvaHmXM+gECD6Pg8PTs=; b=Zhq9nn1urYFMDlRQCRuGs05q9VzhBSYWowLBGpgHidgHNnxFnrVRFjUf4X1SYgyMOO uHbDck88AF7d6ZjeUf1ZcdXFBbZUYg9IdK8mMZHgfb3aIawAVrFCuQDi1LizRepc29h1 Hspr4eyYyTnacTnCy1iPN8WM8EukbJFNZUulcEsQnjrA65DZqNrTWALhVKZDRgUDFBtO sKVnNXymRPsBN+73UJoZUZgwhFD19760jZNgh2qgzIx6eJrn/ZXKpwwK2zaluT0INfh8 UFSpEJsUJPab00lLNUnZUovlIlilVA/RA/S1/I+Y4RawqBO9riYFYKJqggBJ7Xdh8Lhu kjgA== 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 f1-v6si53063570plf.453.2018.06.06.07.55.37; Wed, 06 Jun 2018 07:55:51 -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 S1752175AbeFFOxm (ORCPT + 99 others); Wed, 6 Jun 2018 10:53:42 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41372 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957AbeFFOxk (ORCPT ); Wed, 6 Jun 2018 10:53:40 -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 3BCE280D; Wed, 6 Jun 2018 07:53:40 -0700 (PDT) Received: from [192.168.100.244] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A4E993F5A0; Wed, 6 Jun 2018 07:53:39 -0700 (PDT) Subject: Re: [PATCH] arm64: topology: Avoid checking numa mask for scheduler MC selection To: Morten Rasmussen Cc: Sudeep.Holla@arm.com, Will.Deacon@arm.com, Catalin.Marinas@arm.com, Robin.Murphy@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org, linux-acpi@vger.kernel.org, ard.biesheuvel@linaro.org References: <20180605190837.493505-1-jeremy.linton@arm.com> <20180606144444.GB8461@e105550-lin.cambridge.arm.com> From: Jeremy Linton Message-ID: Date: Wed, 6 Jun 2018 09:53:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180606144444.GB8461@e105550-lin.cambridge.arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/06/2018 09:44 AM, Morten Rasmussen wrote: > On Tue, Jun 05, 2018 at 02:08:37PM -0500, Jeremy Linton wrote: >> The numa mask subset check has problems if !CONFIG_NUMA, over hotplug >> operations or during early boot. Lets disable the NUMA siblings checks >> for the time being, as NUMA in socket machines have LLC's that will >> assure that the scheduler topology isn't "borken". > > Could we add an explanation why the numa node mask check is needed in > the first place. > > IIUC, we have the check in case the LLC is shared across numa nodes as > this would cause core_siblings > cpumask_of_node() which breaks the > scheduler topology. Yes, that sounds like a good idea, my comments probably assume that the reader has been part of these conversations. > > While sharing LLC across numa nodes seems quite unusual, I think it is > allowed by ACPI. Those systems might already be broken before, so might > not change anything. It is just worth noting why the check should be > added back later. Right, there isn't anything in ACPI that dictates a system topology restriction like this. Given that other architectures have built machines with large directory caches that span numa nodes the check was a safety measure.