From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752365AbcGASAj (ORCPT ); Fri, 1 Jul 2016 14:00:39 -0400 Received: from mga09.intel.com ([134.134.136.24]:6344 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbcGASAh (ORCPT ); Fri, 1 Jul 2016 14:00:37 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,558,1459839600"; d="scan'208";a="1013647687" Date: Fri, 1 Jul 2016 11:00:35 -0700 From: "Luck, Tony" To: Borislav Petkov 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: <20160701180034.GA19287@intel.com> References: <1467251771-55501-1-git-send-email-fenghua.yu@intel.com> <20160701102143.GB4749@pd.tnic> <20160701165041.GA18186@intel.com> <20160701172743.GC4749@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160701172743.GC4749@pd.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Basically all cache indices carry the APIC ID of the core, so L1D on > CPU0 has ID 0 and then L1I has ID 0 too and then L2 has also the same > ID. > > How does that look on a CAT system? Do all the different cache levels > get different IDs? 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 We wondered about using cpu numbers (i.e. when we say id0 on the "L3" line we mean the L3 cache that is used by cpu0 (and a bunch of other cpus) and on the L2 line it means the L2 cache shared by cpu0 (and its hyperthread core buddy). But that gets weird with hot plug. cpu0 may be offline, but the caches it shares still exist. -Tony