Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp942253imm; Wed, 6 Jun 2018 08:09:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuWTyjfJlJpKNP163bArFbQDQ01di3vq7vK36Pu/etlnk87hoHaVi6hoaMdqj/cjO5PNuP X-Received: by 2002:a62:6941:: with SMTP id e62-v6mr2847084pfc.56.1528297765754; Wed, 06 Jun 2018 08:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528297765; cv=none; d=google.com; s=arc-20160816; b=gL+hZmpZEztKaagXyADcj0ACV+JHFpNPj0XfiSn9ur1t7yc2wABPbfg9O9P7eFoOYN ZswvbgAFWsZx+cXY0rwvjhMeHpZhBYsSEb55AGB8bZHVGsQJCcEv2V+BbV20LX3GF8HI rRTc6QPX8W6PbnxXxu3XBzGVc4K3GiPZ72e4mvKvux60C7p+wu7cjhqRrl1LAAaISIOk QYxM+D44u61qSp/g/jUuMXp4PcnE+K1SmuJmSjlgK2zS2o3deATerj3LjZmneCo3uk9X YDhtlptVRoBok98XQ/OMtHlHP56NEqCtDWo+uS54oZaCiH25OSxJNk/HaSlmAp0qlenW T4pg== 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=p1Z1scHQkV/vKd6/9zUy5HlPWU1NX0C+DK7K0IMTBsU=; b=nmlxB6FKLQj2cmO8yMJEdoajzkrnvVforfvYqTouk/MPnXXhoSI4LigKLE/eclXqNS xjExLDPoOyfFTP3bVfDI75iVefTSRaoMsOmWYavrEPa4Z4okenGy9aTCGRH3oBFb/Mbt iovpJhre1v8di5s/kwJqzNPfG7udGxfgrSlV+PU2M4v+acaPOmUIjByLuLp2xsI1ZwHi 1QRZ/h76OGqDz5FnxXMzU25MM+9LBcUXHw7Df2V3S1lq/m5oe7mFj3HRd2XD97eFOJdr s/CeLc18ARSjyc6diqyfjOGJ7TA0PltssiY+21PXNPeB81qJme78Gb/xkUB9FtUKHW8k rAIA== 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 q24-v6si10926953pgv.658.2018.06.06.08.08.46; Wed, 06 Jun 2018 08:09:25 -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 S1752174AbeFFPHv (ORCPT + 99 others); Wed, 6 Jun 2018 11:07:51 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:41590 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbeFFPHu (ORCPT ); Wed, 6 Jun 2018 11:07:50 -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 377F780D; Wed, 6 Jun 2018 08:07:50 -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 6C75E3F5A0; Wed, 6 Jun 2018 08:07:48 -0700 (PDT) Date: Wed, 6 Jun 2018 16:07:45 +0100 From: Morten Rasmussen To: Jeremy Linton 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 Subject: Re: [PATCH] arm64: topology: Avoid checking numa mask for scheduler MC selection Message-ID: <20180606150745.GC8461@e105550-lin.cambridge.arm.com> References: <20180605190837.493505-1-jeremy.linton@arm.com> <20180606144444.GB8461@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 Wed, Jun 06, 2018 at 09:53:39AM -0500, Jeremy Linton wrote: > 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. Agreed, it seems that another architecture has recently merged support for that: 1340ccfa9a9a