Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp879376img; Thu, 28 Feb 2019 09:17:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzUpnMcc85xofXnr6AXGOZhcunOWGvAktfpHGOkdtp9dvsQxx+t1Y42J3aOfs1PFmLLoXad X-Received: by 2002:aa7:82d7:: with SMTP id f23mr658154pfn.114.1551374272076; Thu, 28 Feb 2019 09:17:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551374272; cv=none; d=google.com; s=arc-20160816; b=T3Ot+og92U99iK5tefgylI4zExGiuzcs9REosvcuU0RIx+IYbwtp5vVfKJV8yMkpDo ZA2Irb8WNjRJ2irRbh5IFg4Kn/cJWwfBDhCwgxdTLFku7yMyJHLdWaoo0YPFi0LTFrJa oLZXgmiM0wrrA6r2lHbyerFFFswBzJxNtk1GJjOJKEBCclHtYB8xULjfcE7DmLC7ufg/ mesYGguZU16MIQzEdFdy5XtMLVDgK2c7bx9FZvYjJmMqXnCxzwpEvoocdF7zKczb2NhZ cqJK3ra5RM/0Mg+0ccbeMUshrvSQcnnTRgLU3m1Bf5Dvt0FFqwFJRag+lafulShEdFDk kRyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=KnnpQR0gxcxZFG4JmKjKJF97aHrwdFBLqkL5gz1v6b4=; b=K6MUczkUyemChKSWJBz4PYvLxrAYGc7QYmLVfnjnyuPGpqmuI9kJ9mAgg4/y5RH96y dUHOUPbj6LMLpyiUFcy8haAn4tldpENV//ZimaYEYNpoQ8VO72LSrcds+K3xIQ0jMj4L uN4zFTBKyViM32z/vxXpbFIPrmp8PGxXyXbUMXGqr1XKLofyYB4C/ATnOmULZ+GKdpLg tDIFW//oOFXjYj9kAIj6q8Nxta9MG25LXY9B8WDpXLgoUkNdHv48j4Bx9HsqLmX9DF1/ jk654ribB39IRGPrLopL3ta5zqbTEJZNVLOSpBK1U7Q+9JQhtxIgOii+x7HtJ65I8BQJ b9bA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si16698282pgh.561.2019.02.28.09.17.36; Thu, 28 Feb 2019 09:17:52 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732208AbfB1Pnn (ORCPT + 99 others); Thu, 28 Feb 2019 10:43:43 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46359 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbfB1Pnn (ORCPT ); Thu, 28 Feb 2019 10:43:43 -0500 Received: by mail-ed1-f66.google.com with SMTP id f2so17339322edy.13; Thu, 28 Feb 2019 07:43:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KnnpQR0gxcxZFG4JmKjKJF97aHrwdFBLqkL5gz1v6b4=; b=rPd1O6b0IbhqPLxSXfB895v1/t6TD7UOqDbdj6GYpLVQOmwj3Rt5mpeJwUPq6R6ttl bXFRcwQasYN0+xJkllA4yAyQYFcSabfdCtGbvndhGdicTG4Lqtitf9pj6mN0LRwO5PyY je6Ey7mmewHztICxFzNqhxsghszYXPUZ8UYdA0dFEUvhBTTz8AokIORkGTCb8vocY+R2 +EOXjKFu/xM/YA7AB1EvIDordXG/R3ecItpQKN4kGLGPkNGvFbY8wct2XV35koo3x8ZZ TM8OSQd3rPIwgljFG+Q2TL3qKd6tVE8J5HgTOp+nCW1z125Ej1e/tr/Gw+FV3ovEqTcx oH4w== X-Gm-Message-State: AHQUAuaj9Cnn/aY/vAkNovxQg0XGbcdx5zkMGE3LWSYVjbbAOX0eIAJ4 okC+WOTVDtCURDPsOjUCK5sVVxSNZdSuPRPPsk8= X-Received: by 2002:a17:906:d0cb:: with SMTP id bq11mr5828761ejb.185.1551368621113; Thu, 28 Feb 2019 07:43:41 -0800 (PST) MIME-Version: 1.0 References: <204e9bf2afff8e6cb7a8a39d86038075f1bb4ab8.1551160674.git.len.brown@intel.com> In-Reply-To: From: Len Brown Date: Thu, 28 Feb 2019 10:43:29 -0500 Message-ID: Subject: Re: [PATCH 04/14] x86 topology: Add CPUID.1F multi-die/package support To: Dave Hansen Cc: X86 ML , linux-kernel@vger.kernel.org, Len Brown , linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 2:46 PM Dave Hansen wrote: > > On 2/25/19 10:20 PM, Len Brown wrote: > > -/* leaf 0xb sub-leaf types */ > > +/* extended topology sub-leaf types */ > > #define INVALID_TYPE 0 > > #define SMT_TYPE 1 > > #define CORE_TYPE 2 > > +#define DIE_TYPE 5 > > Looking in the SDM, Vol. 3A "8.9.1 Hierarchical Mapping of Shared > Resources", there are a _couple_ of new levels: Die, Tile and Module. > But, this patch only covers Dies. > > Was there a reason for that? We have software visible modules and tiles in past products, and those were discovered by family/model checks, rather than enumerated. I'm content to let that sleeping dog lay. We don't have software visible modules or die enumerated with this mechanism in any current or about to be current products. When (and if) such products do come along, only then will we know why software *cares* about die and tiles -- and that will be the time to add that support. Per below, I think this series cleanly prepares us for that time. > I wonder if we'll end up with different (better) infrastructure if we do > these all at once instead of hacking them in one at a time. Assuming that "hacking in" is a derogatory term, let me make the case that this patch series cleanly sets the stage for the future. old: thread_siblings: the threads that are in the same core core_siblings: the threads that are in the same package This naming scheme assumed that there would never be a topology level between a core and a package. Though we leave "core_siblings" intact for legacy SW that depends on it, we mark it depreciated. new: core_threads: the threads in the same core die_threads: the threads in the same die package_threads: the threads in the same package So in the future we could always add... dave_threads: the threads in the same dave So I think we are ready for whatever the future may throw at us, while remaining compatible, consistent, and no "hacking in" required. thanks, Len Brown, Intel Open Source Technology Center