Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3093272imj; Mon, 18 Feb 2019 19:43:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ1f/UhN6Zq6PpbkSJLRtsdumixBXO5ncm7l/vBig5ZIScb75Hd0NKMgvuwRbeqgKij9dR1 X-Received: by 2002:a63:3703:: with SMTP id e3mr21699028pga.348.1550547824149; Mon, 18 Feb 2019 19:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550547824; cv=none; d=google.com; s=arc-20160816; b=Kriw9QshIr1Uya/BNK9G0z0hIP7A/EVVmghXtANvi1jbmsqwJ4sm0RJJXezOxMjhBW E9kwebeFBg8ZkShD6Cya41SCZY3QlhP1iwdj2AeL981O6jD1gr2M4pEtkprXV14y2XcW RLBJRvq1ULzLmJiUgdGZLO4kPZMN5C7RCmQZ0WpnOnaP02Dx6o3yVqW+pAdU0lggj0il 1NgdRsjBs/i5cpXWEPbWOq55bxhMEIipU/EySXw2NVX3ARiFHUHwavFv5UeLvr9Xl3K7 xwGRVZV/TCdNT1UIpHiieeATwhFoVHEClEu1roO6ZTaNpRY0TIofZa2N/q7sARqCmXez iCrA== 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=mixtgFOHJ8rVnEdEHA1KmScKmbK09f7UjWOhOlQYjQ4=; b=mEIRS71E/Eek0tBKAMS2JY3HH35qOW5JmwJs/lgaBZR5arCuhxtGOkyrTuwCbRt1bQ mM2gF01Ty2O7e5u15O8V8CzlMqsABJ9JK0cIYZErc0j9gf/UPY7Gh7e5xU+QaMImlvyt 2biVVaL+csQ8PFiJh2cNduTaKzwSPWVse4EVSsVfeIfgtxkVd1JJu2393rXHBaaygQj9 kJxsmC0gKqfwTjGKJaFHpxDgAtlKbcgMbCjCjx9RDiEIXVgGpe/6kKgru81DGXCkNz32 c/Cn9dUQDHyJd3dOFyXo4zwXPd8Bt8nK7dsx8Fx23g5mqlMDA1SMgHlbLlWTh8T8i3CK hOFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=u+9RKvrL; 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 33si15157753ply.312.2019.02.18.19.43.29; Mon, 18 Feb 2019 19:43:44 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=u+9RKvrL; 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 S1727023AbfBSDlR (ORCPT + 99 others); Mon, 18 Feb 2019 22:41:17 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:45076 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726220AbfBSDkZ (ORCPT ); Mon, 18 Feb 2019 22:40:25 -0500 Received: by mail-qt1-f194.google.com with SMTP id d18so11579883qtg.12; Mon, 18 Feb 2019 19:40:24 -0800 (PST) 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=mixtgFOHJ8rVnEdEHA1KmScKmbK09f7UjWOhOlQYjQ4=; b=u+9RKvrLS1qfQSFA04RRDPpK2KO03Ck+9Iwzl4Q+TQozBtQHsujCUjlC3hli+BwGQX mXr2BnVD+6ERoWMluVODzPf+e+E0XDWMymqIDmLIRpRO6wWF8Imi3OBBfE2a8ne1JnLn 9r3FN1n8R57/lO0FGuxT3BnWu/q2v06I/1cVzyeM3WY6h/t6oVtcjNVJz+0UT2nBaDno SMq6RkwbzuJAeh+np5LR0MuKP7tyk3nSDnab19v5Z6wczZXWX+n2nuVSGdKOYXoG81xw YbjXZZoeJ1koDj4nwLSbKUYSj4iFmThpkugSmNLbICrZL6cx1l7fnazHw/7DuFQNyC8t 78Mw== 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=mixtgFOHJ8rVnEdEHA1KmScKmbK09f7UjWOhOlQYjQ4=; b=C/2c9UFvj12V/Cr8kNibrhXECIq0HiSdPptWHJx6bhGJ23sjpvMorln4GNFJEKQSPE cYSA+6chPeK+oWDupgQ9tKVAVQ258TU/0c01MaqeQ13SgkJbvyDBCp/XpC1dokC8s73Y st5f+vzq9c+x3MkoGtQzaY/AFFjmn4ELvjC3hg51+4xluX/RpcecfQC+gwjvH9Y2spoB Igh3zZUGsxnoPauspeRoymDBalDi/2Dl/MDIESv7ZNd2kkhbT9l59XprKm+r+HxqG5+T iDK2T+d8yFvun2DTV2H2Urv6eqsCMQAcCdNh/ZGAa8wFK8N+Z1ZvTG55lJOdDUQ+Sjyh GNCQ== X-Gm-Message-State: AHQUAuZaNfvbiS0NvSY9X2IHrzkPQQQ7btG1X6R4XxhyetjxUkKR9AGp nRNBu9k0N61QxAj9IiBsfvbpErid X-Received: by 2002:ac8:b0e:: with SMTP id e14mr21430413qti.336.1550547623751; Mon, 18 Feb 2019 19:40:23 -0800 (PST) Received: from kbl.fios-router.home (pool-96-233-42-17.bstnma.fios.verizon.net. [96.233.42.17]) by smtp.gmail.com with ESMTPSA id u5sm7327680qtg.37.2019.02.18.19.40.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 19:40:23 -0800 (PST) From: Len Brown To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , linux-doc@vger.kernel.org Subject: [PATCH 02/11] topolgy: simplify cputopology.txt formatting and wording Date: Mon, 18 Feb 2019 22:40:04 -0500 Message-Id: X-Mailer: git-send-email 2.18.0-rc0 In-Reply-To: <635b2bf8b1151a191cd9299276b75791a818c0c2.1550545163.git.len.brown@intel.com> References: <635b2bf8b1151a191cd9299276b75791a818c0c2.1550545163.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 No semantic changes. Signed-off-by: Len Brown Cc: linux-doc@vger.kernel.org Signed-off-by: Len Brown --- Documentation/cputopology.txt | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Documentation/cputopology.txt b/Documentation/cputopology.txt index c6e7e9196a8b..2698da7e4f49 100644 --- a/Documentation/cputopology.txt +++ b/Documentation/cputopology.txt @@ -3,76 +3,76 @@ 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. -- 2.18.0-rc0