From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934440AbcJQKe2 (ORCPT ); Mon, 17 Oct 2016 06:34:28 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:36569 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932335AbcJQKe1 (ORCPT ); Mon, 17 Oct 2016 06:34:27 -0400 Date: Mon, 17 Oct 2016 12:31:43 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: "H. Peter Anvin" , Ingo Molnar , Tony Luck , Peter Zijlstra , Stephane Eranian , Borislav Petkov , Dave Hansen , Nilay Vaish , Shaohua Li , David Carrillo-Cisneros , Ravi V Shankar , Sai Prakhya , Vikas Shivappa , linux-kernel , x86 Subject: Re: [PATCH v4 01/18] Documentation, ABI: Add a document entry for cache id In-Reply-To: <1476497548-11169-2-git-send-email-fenghua.yu@intel.com> Message-ID: References: <1476497548-11169-1-git-send-email-fenghua.yu@intel.com> <1476497548-11169-2-git-send-email-fenghua.yu@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Oct 2016, Fenghua Yu wrote: > From: Fenghua Yu > > Add an ABI document entry for /sys/devices/system/cpu/cpu*/cache/index*/id. > > Signed-off-by: Fenghua Yu > Signed-off-by: Tony Luck The SOB chain here is bogus .... > --- > Documentation/ABI/testing/sysfs-devices-system-cpu | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu > index 4987417..b1c3d69 100644 > --- a/Documentation/ABI/testing/sysfs-devices-system-cpu > +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu > @@ -272,6 +272,22 @@ Description: Parameters for the CPU cache attributes > the modified cache line is written to main > memory only when it is replaced > > + > +What: /sys/devices/system/cpu/cpu*/cache/index*/id > +Date: September 2016 > +Contact: Linux kernel mailing list > +Description: Cache id > + > + The id provides a unique name for a specific instance of s/name/number/ > + a cache of a particular type. E.g. there may be a level > + 3 unified cache on each socket in a server and we may > + assign them ids 0, 1, 2, ... > + > + Note that id value may not be contiguous. E.g. level 1 Note, that the id values can be non-contiguous. > + caches typically exist per core, but there may not be a > + power of two cores on a socket, so these caches may be > + numbered 0, 1, 2, 3, 4, 5, 8, 9, 10, ... > + Thanks, tglx