Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5723901yba; Tue, 30 Apr 2019 21:27:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWW/rwoqUrzJDXGvGGz8thDIJT90jQjHVhbR5a33HDfdXJSr3DZVhYs9a8qT+Lii5x7Ur9 X-Received: by 2002:a17:902:364:: with SMTP id 91mr73154678pld.72.1556684843427; Tue, 30 Apr 2019 21:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556684843; cv=none; d=google.com; s=arc-20160816; b=SJ6QBm1ZHTEQPVO+BYB5E9Cs3M4eq/vWkHjk9lEeYihvnxCXevmZDlL8AmyIINvj7s 8H3qfRi6vxdt4u1hfpJq9aW0giQEK3nHL+hIF8Po3YKwsRNTtekSJ11HBMcHeKbVo2iF LnStSfEBA5UhD1cUjaak2FTgGk0hO1+kUCBQwiCqf/DqjhqpnKJ4UnOnTYoJaS4pS5DX 0v/bAAuYz8eSM21NZcSqacw0GaA4eEcH1I09sXqocPfXE6ymmHdXVDMAexxLNxnJLI9R 4x/Lwo9a9HuSozsdyynqSwaNARhVrk2FZ2+wu8ElQriwMZKC7Uzx592FcgMwIJBm/3uk Iszw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=J4b7TkIYUMmkQjs+CQkshNUOKz4889qj9fmJ7q/gBYo=; b=Nhu+SnEtFri1SG5AIqAZSUutqyOiQXcOmCe5KaUV7Wbaqbyz6D4GVR/QwUVI+7FqOH 7OKRjamwmEsjOrIP6jV8rULGgX/IuB5q1/CoOBskNsfoVlQfHQhWp72p0afy27OigsMH 81q5rwP/iA7jUuq/btLaj9gOvRdk925OZ+pKbaVYanB1fTpAzX/kBJO9J5UOu3iuV41y h6mMejit0fCk0V7891LwIDM+4XTFlaSELa3X0jFJC9B1yHFg2tzBp1WzSOqmgAG4NaB7 Ekl5NPhC4K71ezgKGoVG/6Dos73cZoAM8uABzHt8uRdenAep6iHdJq9Y4aSvK+DPailH 4DCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HcWPvHDQ; 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 n25si9791294pgv.454.2019.04.30.21.27.08; Tue, 30 Apr 2019 21:27:23 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HcWPvHDQ; 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 S1726188AbfEAEYk (ORCPT + 99 others); Wed, 1 May 2019 00:24:40 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:45261 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfEAEYh (ORCPT ); Wed, 1 May 2019 00:24:37 -0400 Received: by mail-io1-f66.google.com with SMTP id e8so14059011ioe.12; Tue, 30 Apr 2019 21:24:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :reply-to:organization; bh=J4b7TkIYUMmkQjs+CQkshNUOKz4889qj9fmJ7q/gBYo=; b=HcWPvHDQ7xJf7yrnow7qP+NR98kxvIXAAv9JX7CGw8LUAI74bjKo1TtnDTG9MSZmQJ wqnUAQc5dRB2P49xgr1wFkL9b2VSvHnis5UlXJIsAsuCUsyjz/JIcbSnNMQg0RWV3YZp ncJsAeYZEZfQg2xQqsfflLRtog5X79HHFCqUYqQAbuDIsjZ2nuf+xSWOeYiNOdfW0+TI Ki0cI6C/IRb3v/odIWZOYWaVZjjYNgatGAdyiwp2dPnPxnKMyBmXzRjqFTsLmX040Uqk 1IJHCz1je/4XxU/ZLg9aPXzuO1sBQRz/jn8esKAN+hGVAFRsGfHyhBGTDEDlt+oowgqz s8oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:reply-to:organization; bh=J4b7TkIYUMmkQjs+CQkshNUOKz4889qj9fmJ7q/gBYo=; b=BJ1SKBZvhOOld7VhqFqfoVZNL+3BI+UoBYjnds0apS+MjzRh0Rklq0Pk+JmZwj5VWP c47pkVFP8ngIFnTyFziQIoY40qI28esMc0Puy6gS54LaGKZ/0bY2wbLbqQ9LUh9C1Wff fIvzzU4/z1UcQ+OaMisBJDKXVVtd19bLpnyKRBfhVY/xxTy4aJnSMbEyS47504LgWUjm PW/deE2Llvcl2GQay4qXWDuUh3p59KUR0uUdCvq8t7RdLqCdNaGlC+zsVcDMmfwXjI06 2NMW5tPdgY+dJMjSLZfxjtvjGlEiihWdQ0XCXXGSP5eJTRtyl7HMqWJ1YD6eSOSgYo3U WwZQ== X-Gm-Message-State: APjAAAW1b6Q3+/ztAtblvIvADV3+WdAntHB11ny7c2GTHMi7XrIkutGh wiJYvk4eHq0xNkK/QvfXBRI= X-Received: by 2002:a6b:5909:: with SMTP id n9mr34400029iob.42.1556684676714; Tue, 30 Apr 2019 21:24:36 -0700 (PDT) Received: from nuc8.lan (h69-131-112-51.cntcnh.dsl.dynamic.tds.net. [69.131.112.51]) by smtp.gmail.com with ESMTPSA id b8sm2569728itb.20.2019.04.30.21.24.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 21:24:35 -0700 (PDT) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , linux-doc@vger.kernel.org Subject: [PATCH 02/18] topology: Simplify cputopology.txt formatting and wording Date: Wed, 1 May 2019 00:24:11 -0400 Message-Id: <1feeb124ad50bac8093e78240a6de6dbf5ff3456.1556657368.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1556657368.git.len.brown@intel.com> References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1556657368.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Len Brown Syntax only, no functional or semantic change. Signed-off-by: Len Brown Cc: linux-doc@vger.kernel.org --- Documentation/cputopology.txt | 46 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Documentation/cputopology.txt b/Documentation/cputopology.txt index c6e7e9196a8b..cb61277e2308 100644 --- a/Documentation/cputopology.txt +++ b/Documentation/cputopology.txt @@ -3,79 +3,79 @@ How CPU topology info is exported via sysfs =========================================== Export CPU topology info via sysfs. Items (attributes) are similar -to /proc/cpuinfo output of some architectures: +to /proc/cpuinfo output of some architectures. They reside in +/sys/devices/system/cpu/cpuX/topology/: -1) /sys/devices/system/cpu/cpuX/topology/physical_package_id: +physical_package_id: physical package id of cpuX. Typically corresponds to a physical socket number, but the actual value is architecture and platform dependent. -2) /sys/devices/system/cpu/cpuX/topology/core_id: +core_id: the CPU core ID of cpuX. Typically it is the hardware platform's identifier (rather than the kernel's). The actual value is architecture and platform dependent. -3) /sys/devices/system/cpu/cpuX/topology/book_id: +book_id: the book ID of cpuX. Typically it is the hardware platform's identifier (rather than the kernel's). The actual value is architecture and platform dependent. -4) /sys/devices/system/cpu/cpuX/topology/drawer_id: +drawer_id: the drawer ID of cpuX. Typically it is the hardware platform's identifier (rather than the kernel's). The actual value is architecture and platform dependent. -5) /sys/devices/system/cpu/cpuX/topology/thread_siblings: +thread_siblings: internal kernel map of cpuX's hardware threads within the same core as cpuX. -6) /sys/devices/system/cpu/cpuX/topology/thread_siblings_list: +thread_siblings_list: human-readable list of cpuX's hardware threads within the same core as cpuX. -7) /sys/devices/system/cpu/cpuX/topology/core_siblings: +core_siblings: internal kernel map of cpuX's hardware threads within the same physical_package_id. -8) /sys/devices/system/cpu/cpuX/topology/core_siblings_list: +core_siblings_list: human-readable list of cpuX's hardware threads within the same physical_package_id. -9) /sys/devices/system/cpu/cpuX/topology/book_siblings: +book_siblings: internal kernel map of cpuX's hardware threads within the same book_id. -10) /sys/devices/system/cpu/cpuX/topology/book_siblings_list: +book_siblings_list: human-readable list of cpuX's hardware threads within the same book_id. -11) /sys/devices/system/cpu/cpuX/topology/drawer_siblings: +drawer_siblings: internal kernel map of cpuX's hardware threads within the same drawer_id. -12) /sys/devices/system/cpu/cpuX/topology/drawer_siblings_list: +drawer_siblings_list: human-readable list of cpuX's hardware threads within the same drawer_id. -To implement it in an architecture-neutral way, a new source file, -drivers/base/topology.c, is to export the 6 to 12 attributes. The book -and drawer related sysfs files will only be created if CONFIG_SCHED_BOOK -and CONFIG_SCHED_DRAWER are selected. +Architecture-neutral, drivers/base/topology.c, exports these attributes. +However, the book and drawer related sysfs files will only be created if +CONFIG_SCHED_BOOK and CONFIG_SCHED_DRAWER are selected, respectively. -CONFIG_SCHED_BOOK and CONFIG_DRAWER are currently only used on s390, where -they reflect the cpu and cache hierarchy. +CONFIG_SCHED_BOOK and CONFIG_SCHED_DRAWER are currently only used on s390, +where they reflect the cpu and cache hierarchy. For an architecture to support this feature, it must define some of these macros in include/asm-XXX/topology.h:: @@ -98,10 +98,10 @@ To be consistent on all architectures, include/linux/topology.h provides default definitions for any of the above macros that are not defined by include/asm-XXX/topology.h: -1) physical_package_id: -1 -2) core_id: 0 -3) sibling_cpumask: just the given CPU -4) core_cpumask: just the given CPU +1) topology_physical_package_id: -1 +2) topology_core_id: 0 +3) topology_sibling_cpumask: just the given CPU +4) topology_core_cpumask: just the given CPU For architectures that don't support books (CONFIG_SCHED_BOOK) there are no default definitions for topology_book_id() and topology_book_cpumask(). -- 2.18.0-rc0