Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2954728yba; Mon, 6 May 2019 14:30:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqoQW2LlsVXEvL9BTX+wqsKfaOveW2pVINbc/gk8D1YVruoVXF9ng6AW2ICOq/MPIbe928 X-Received: by 2002:a63:2118:: with SMTP id h24mr35567124pgh.320.1557178205601; Mon, 06 May 2019 14:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557178205; cv=none; d=google.com; s=arc-20160816; b=h6kLtooYPg6JqXbGMsh2DU87sw1uvT0/XaicebI4FnI1azGHrqrI68AEV8TkJD8AQu NC9ZsMHsOveuRSlASlz0/bP1nff3WtUCD5G4nootV38sw/0dAuhi0nKGMUNimluBJFIB QmVmkdOg3USk/egPYSLmJFoVn7TuQZPQkmVtxRPRr+pSZRRI/py3AGESF+k5Ehm7ts8O 7RWSocCdWxwV3GlbDs5katlYprCAI5cqGLHIW+B/InN+BRbkdJYEXYbRTpkTSCndlxvS 2AAEg89kyjqm/yGjFaHuTJ5odzE4oNJT9hmggwGmtiNg36M97A0eeuIYGMo3f5zuMVnd qjgw== 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=rdHrKPcaifTNjqYOOFutoPsp0JG+CciXHPd7K/8Z6CDgA8Je2NK7TXZf35QD3EEg5b n0Rygyrf6eqZrJBkhMSxtU6zw7tNW9L5gtZENaaBeCb5JhdByocIuZkXS2VJ6+0U4S4O H1q4AT5hPTaKt1eXP690o81cQ3zVvL1yCZgiIrwSMapsa1nc3E3ZrG0AF4aZswghiRqZ 0WJ2/X/dkO0jFkPc7hlOd4hgxhHwPfepjdfNtT7xWjcLBiHKfoHTMxvcgmd4zYjWzmMP QzeHfKe8HZLQGy89JosCj9mEGy3as1ASzlyBkTuvjgzeco4pxjqdxe8F9R690l/745rs zTUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="TfnqLI/g"; 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 r14si18548114pgf.45.2019.05.06.14.29.50; Mon, 06 May 2019 14:30:05 -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="TfnqLI/g"; 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 S1726695AbfEFV2W (ORCPT + 99 others); Mon, 6 May 2019 17:28:22 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:50833 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbfEFV03 (ORCPT ); Mon, 6 May 2019 17:26:29 -0400 Received: by mail-it1-f194.google.com with SMTP id q14so22926884itk.0; Mon, 06 May 2019 14:26:28 -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=TfnqLI/gfafDJAAfARIlMixQXHLS+dWQOrTiFQIiYeTYGcsSY4vi6Q8/Ac7AeAjEIB maQzFGEIT+hm1sLge7BtMVhs7Tl6a6lA6gMLLEl1tPh9h/H+wmeg48WI3QrY5QpbQD8F kI9Eu25zbMPNMOaAGCkt/gW7xqYpY02qyVEU9CPwoffVWi11yqx8BFixUjnW51LUd5Xb iGr/UOyy0iH3QzkZceOJaDEsjd9dyokBMV7Lhpn1wCcaweR826dGlQt1bo7uebivryIE DY6UwYOp9ehreKTYhcz9wClaHFwBw9q79mHD6b7XhjDclFwWZjxJInaG+7JnmR385JYi QNFg== 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=NQd5ewNwLyfBvODFIApZ5AT7kB24Ucktd+Lvr7alZBKh6mwih06Zm6pQaJWFVL6LHQ zJQ4lwQY1TqterWp7isPHVw1L0S7umScx/66cRVXBrDHv+HDYSXCbE636JhCiFvo1K4v VtrtqmJURi44ie9Lgw0AUYCokSCh5wi/D2uek+3ObjCcDV1cctWdGkhny7qgjF0Nr4BY 0LPkjB2WUFf7w1S/sFY8WIbDeLZG7jahMKOqwOn8uOnvfuWi0aAm/QRdwdfINmzH9+9t yTaQjK0njimEZdnReg+1ZGUwDlWe6oBxctKyvnQomV1B+Q6XrcUwUwk7i/d1yl+xAw3N YO4g== X-Gm-Message-State: APjAAAX016KwbC93rY3wcv/dl3ulp8zcgq/V7GM08U2CCB676Dxc9a7p iLMLIcQCjwlZQhepxwI0j1E= X-Received: by 2002:a05:6638:29a:: with SMTP id c26mr19070954jaq.140.1557177987475; Mon, 06 May 2019 14:26:27 -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 v25sm4268009ioh.81.2019.05.06.14.26.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 14:26:26 -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/22] topology: Simplify cputopology.txt formatting and wording Date: Mon, 6 May 2019 17:25:57 -0400 Message-Id: <1feeb124ad50bac8093e78240a6de6dbf5ff3456.1557177585.git.len.brown@intel.com> X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.git.len.brown@intel.com> References: <6f53f0e494d743c79e18f6e3a98085711e6ddd0c.1557177585.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