From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752333AbcGASnq (ORCPT ); Fri, 1 Jul 2016 14:43:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:43745 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbcGASnp (ORCPT ); Fri, 1 Jul 2016 14:43:45 -0400 Date: Fri, 1 Jul 2016 20:29:21 +0200 From: Borislav Petkov To: "Luck, Tony" Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra , Stephane Eranian , Ravi V Shankar , Vikas Shivappa , linux-kernel , x86 Subject: Re: [PATCH] cacheinfo: Introduce cache id Message-ID: <20160701182921.GD4749@pd.tnic> References: <1467251771-55501-1-git-send-email-fenghua.yu@intel.com> <20160701102143.GB4749@pd.tnic> <20160701165041.GA18186@intel.com> <20160701172743.GC4749@pd.tnic> <20160701180034.GA19287@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160701180034.GA19287@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 01, 2016 at 11:00:35AM -0700, Luck, Tony wrote: > For CAT we only need the IDs to be unique at each level. Our tentative > syntax for the schema file for CAT looks like this (for a theoretical > system supporting CAT in both L2 and L3 with two L3 caches and eight L2 caches) > > L3:id0=fff;id1=ff0 > L2:id0=3;id1=c;id2=30;id3=c0;id4=3;id5=c;id6=30;id7=c0 So wouldn't it be straightforward and natural to do the following nomenclature (which basically suggests itself): ID. ? So that the ID hierarchy above is: ID3.0 ID3.1 ID2.0 ID2.1 ID2.2 ID2.3 ... ID2.7 I don't know if that's useful though. I mean, we have that info in the path anyway: /sys/devices/system/cpu/cpu0/cache/index3/id = 0xfff ... and so on. Whatever you do, as long as the nomenclature is documented somewhere, say Documentation/x86/topology.txt, for example, we should be fine. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --