Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143188pxb; Wed, 10 Feb 2021 00:45:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsSsKjeXi9DxXmv5+iTbMqnuqLnv6WUrLE5X2AD4sOaGCoBrGH9pUS+AZK+A+hkC1yS6pF X-Received: by 2002:a17:906:bc99:: with SMTP id lv25mr1891125ejb.15.1612946718099; Wed, 10 Feb 2021 00:45:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946718; cv=none; d=google.com; s=arc-20160816; b=hOrQh0oAbYVRcBtryLZIyuDUST3pLHFbYqjAGD4yjCT1oDC6W+ICLDic8kI18KqTgn yCy7nT5379Zs9Bfcj77dx70NLnVsJSpjXUGe/0FkpmE2dIX1iswrToAQOxxKaAeTbQhC 5TEVCH+YX4n6llTyJ6wEm+/wnd8T28pOu+GkOM6wfI2HSYo2zX9nnsXaRJcEUZaP8RQt 31uuRABAn+6s8MLypm+X2zRzc+Wv4Zg4H/UbWJTwRHmf5L9QVDnvEs/WjR1agFDVAZkN e8AEjLPJgYwR3G6bDu3nAEkrOaBdD7NMX+sPePnw2KiyXYQm8IxbCkELawuuOP9QiLG4 /x7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=y3+x3sZzfjZbRLo0keAbiblQakTQ1YAkfrUq7k/BDqM=; b=W6EJlYAxhOn7Ai5tOsSww37n+8YB73l20NgYqMLN6Ns9wN+WtgHDmayUqqiinRGmrh o6aU/Jm7xURdhYbPDl1s6/zbCpUjKCFVs5WM0uwR/0/8qvyMbyc5RNUYH8lsBMHBYVBU 8zdG7oMXUtqyQSFTp6IxKL1KdtJkC51OCeLiIw2ujXaP5OECpMXMmMAWd2oE/ESsr3Ua kf+V0+ZJnYzNWvnxO/dG7xOjCQKuwMoG2xCLtKdZeCHKvLeHknJQYv+Etkit1oD4jbAc 8XSBtg8vkSnEohHbrm7VMKtsgFaE0CSKz0Izjygk2r4awgih/3pCmSP9Vp5Qk10W0aea zbvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WtCgZvqe; 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 j4si867921ejm.600.2021.02.10.00.44.54; Wed, 10 Feb 2021 00:45:18 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=WtCgZvqe; 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 S233719AbhBJIME (ORCPT + 99 others); Wed, 10 Feb 2021 03:12:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233692AbhBJILh (ORCPT ); Wed, 10 Feb 2021 03:11:37 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CCD2C061574 for ; Wed, 10 Feb 2021 00:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=y3+x3sZzfjZbRLo0keAbiblQakTQ1YAkfrUq7k/BDqM=; b=WtCgZvqezwm2Y+j5p5s1zs+PUI HoVEgrcIOzGyRPN1iF2GPUu4PFi9HgO6fJSKB2JQvxlzzrwd3p4G4HY7OYgu7C1IjQD8lTXPfIwJx q8VwJ4J5Hq8WbQLOE/veno4JyhYhZfg6bVDcGzRG7hjdq5bryK1og2j4oiyVdJiNWm7Y4nWWXYx6v 6p3V6b82qtyL8wrVmfRrhsEFablIedqsBoTkLsqPtqI94/r4KbxiIikTPdX4CS8nQpBfvdDmqq1LC 8Qaue4uynqWtkIhbGZ1W5reOpKQwF86BRM52y1IjhTms34PHksOLfSDzDfOWPo+rZ1vGMv+lwie/B JwSaTJYA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l9ka4-008YhV-HN; Wed, 10 Feb 2021 08:10:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A96FA300446; Wed, 10 Feb 2021 09:10:35 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 96C13201D19B1; Wed, 10 Feb 2021 09:10:35 +0100 (CET) Date: Wed, 10 Feb 2021 09:10:35 +0100 From: Peter Zijlstra To: "Luck, Tony" Cc: "Schofield, Alison" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Dave Hansen , Tim Chen , "H. Peter Anvin" , David Rientjes , Igor Mammedov , Prarit Bhargava , "brice.goglin@gmail.com" Subject: Re: [PATCH] x86, sched: Allow NUMA nodes to share an LLC on Intel platforms Message-ID: References: <20210209223943.9834-1-alison.schofield@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 09, 2021 at 11:09:27PM +0000, Luck, Tony wrote: > > +#define X86_BUG_NUMA_SHARES_LLC X86_BUG(25) /* CPU may enumerate an LLC shared by multiple NUMA nodes */ > > During internal review I wondered why this is a "BUG" rather than a "FEATURE" bit. > > Apparently, the suggestion for "BUG" came from earlier community discussions. > > Historically it may have seemed reasonable to say that a cache cannot span > NUMA domains. But with more and more things moving off the motherboard > and into the socket, this doesn't seem too weird now. If you look at the details this SNC LLC span doesn't behave quite right either. It really isn't a regular cache, but behaves a bit like a mash-up of the s390 book caches and a normal LLC. Did anybody play with adding the book domain to these SNC configurations? Can we detect SNC other than by this quirk?