Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1156573pxf; Thu, 18 Mar 2021 23:37:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHri4RxJm0R1ngF5U9pGxbLZpsKUf9WvODNcU8pe5YYiPJXjevtXMoApI0iMxXdeuRfkR1 X-Received: by 2002:a17:906:24c7:: with SMTP id f7mr2521822ejb.473.1616135846183; Thu, 18 Mar 2021 23:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616135846; cv=none; d=google.com; s=arc-20160816; b=GNQUd7/EufmbK1gF2k07viNU4Ml3hWQNd/yo9dV6LTP2JEA4z8fabeCM5qEMbCf6Lz p54nx9RtyejyOUvQ0qqyZEXYmu+SkXbarIYXoRAvqEUhO7QEO/6S2vYeuMKs9jgBw9y0 ZgtXpisNbGVYobgQakGlmHN/Fo9vzALz6t6P3hmGpetp+0kSAmbW/UBs+A3exONfkdN5 w954viTsldD4xYz+5bPyRFKEUb6b60qHphzWd4F28T9rQeDzPfzBnp5rz5K+RvePbJfo Je3z7qmDf6NmQDijJKmsldb2wwQ1kQW7iFMNffSzi9/QS05UTbd9W8RIKIx5KX+v5K+O 2oGQ== 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=5uVBDEP3QOANwGEv/V6ER1tfq+8glKF0EfZbR4QyPWA=; b=B6NkvUJR6Bd8Xg5C+xR9oIHAWAqd6eBEH1X5ySmeNNdKAyCsXT067Pl5q435+LvYy7 7E9DIMufwKqghQlHqNrw9V2PHnxIy6LjKPIkWYdwfIZ7si8Nhh+Np7a74TQev9XfoY9U 8OK5S53eZwDHiZRcqLzXAmp0EPLw4RgtF7Ov9I85A5fQrs7JbZj+SHMf60+EXTbtTcrB BuzyGU3p6Xdt15xgb00rgKlPOCTKkESIzshehKfoM/JQZBUWtqzZTvra1BjLKMd5maso Ew/Sowi8d6g6MnJM8zg2dys+uK6PznKKY4n6QtcBmNypJhwVzB82jEvZcXIMJV+Lkhq9 cHmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hm7WwAy+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si3449582eje.58.2021.03.18.23.37.03; Thu, 18 Mar 2021 23:37:26 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=Hm7WwAy+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233818AbhCSGff (ORCPT + 99 others); Fri, 19 Mar 2021 02:35:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:56542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233993AbhCSGfQ (ORCPT ); Fri, 19 Mar 2021 02:35:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F140864F6B; Fri, 19 Mar 2021 06:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616135715; bh=pzlu7maINKdZ8i13FcK7WXSNkVOhKs0PqBh8sl3cZ1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hm7WwAy+z+u2ReeF5xY+gtvINbGXHyjvnwgD5k59Ih+qwMa0EzldZ4gk7Kt+G/M95 +H7BUs0P3kkxOaAMl2efx1EXMn/IcYBFHN7mChE8zYn4t8FQQszDwFpO91qGSGx5Hw /YVvExIcHgzrIFDzs8PsO7xIbtwl5QRtDUqOol/U= Date: Fri, 19 Mar 2021 07:35:13 +0100 From: Greg KH To: Barry Song Cc: tim.c.chen@linux.intel.com, catalin.marinas@arm.com, will@kernel.org, rjw@rjwysocki.net, vincent.guittot@linaro.org, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, lenb@kernel.org, peterz@infradead.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, msys.mizuma@gmail.com, valentin.schneider@arm.com, jonathan.cameron@huawei.com, juri.lelli@redhat.com, mark.rutland@arm.com, sudeep.holla@arm.com, aubrey.li@linux.intel.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, x86@kernel.org, xuwei5@huawei.com, prime.zeng@hisilicon.com, guodong.xu@linaro.org, yangyicong@huawei.com, liguozhu@hisilicon.com, linuxarm@openeuler.org, hpa@zytor.com Subject: Re: [RFC PATCH v5 1/4] topology: Represent clusters of CPUs within a die Message-ID: References: <20210319041618.14316-1-song.bao.hua@hisilicon.com> <20210319041618.14316-2-song.bao.hua@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210319041618.14316-2-song.bao.hua@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 19, 2021 at 05:16:15PM +1300, Barry Song wrote: > diff --git a/Documentation/admin-guide/cputopology.rst b/Documentation/admin-guide/cputopology.rst > index b90dafc..f9d3745 100644 > --- a/Documentation/admin-guide/cputopology.rst > +++ b/Documentation/admin-guide/cputopology.rst > @@ -24,6 +24,12 @@ core_id: > identifier (rather than the kernel's). The actual value is > architecture and platform dependent. > > +cluster_id: > + > + the Cluster ID of cpuX. Typically it is the hardware platform's > + identifier (rather than the kernel's). The actual value is > + architecture and platform dependent. > + > book_id: > > the book ID of cpuX. Typically it is the hardware platform's > @@ -56,6 +62,14 @@ package_cpus_list: > human-readable list of CPUs sharing the same physical_package_id. > (deprecated name: "core_siblings_list") > > +cluster_cpus: > + > + internal kernel map of CPUs within the same cluster. > + > +cluster_cpus_list: > + > + human-readable list of CPUs within the same cluster. > + > die_cpus: > > internal kernel map of CPUs within the same die. Why are these sysfs files in this file, and not in a Documentation/ABI/ file which can be correctly parsed and shown to userspace? Any chance you can fix that up here as well? Also note that "list" is not something that goes in sysfs, sysfs is "one value per file", and a list is not "one value". How do you prevent overflowing the buffer of the sysfs file if you have a "list"? thanks, greg k-h