From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030232AbcJQQfd (ORCPT ); Mon, 17 Oct 2016 12:35:33 -0400 Received: from mga11.intel.com ([192.55.52.93]:64227 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932313AbcJQQf0 (ORCPT ); Mon, 17 Oct 2016 12:35:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,357,1473145200"; d="scan'208";a="20534025" Date: Mon, 17 Oct 2016 09:35:25 -0700 From: "Luck, Tony" To: Fenghua Yu Cc: Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , 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 08/18] x86/intel_rdt: Pick up L3/L2 RDT parameters from CPUID Message-ID: <20161017163524.GA1808@intel.com> References: <1476497548-11169-1-git-send-email-fenghua.yu@intel.com> <1476497548-11169-9-git-send-email-fenghua.yu@intel.com> <20161017180655.GB8999@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161017180655.GB8999@linux.intel.com> 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 > > I wonder whether this is the proper abstraction level. We might as well do > > the following: > > > > rdtresources[] = { > > { > > .name = "L3", > > }, > > { > > .name = "L3Data", > > }, > > { > > .name = "L3Code", > > }, > > > > and enable either L3 or L3Data+L3Code. Not sure if that makes things > > simpler, but it's definitely worth a thought or two. > > This way will be better than having cdp_enabled/capable for L3 and not > for L2. And this doesn't change current userinterface design either, > I think. User interface would change if you did this. The schemata file would look like this with CDP enabled: # cat schemata L3Data:0=fffff;1=fffff;2=fffff;3=fffff L3Code:0=fffff;1=fffff;2=fffff;3=fffff but that is easier to read than the current: # cat schemata L3:0=fffff,fffff;1=fffff,fffff;2=fffff,fffff;3=fffff,fffff which gives you no clue on which mask is code and which is data. We'd also end up with "info/L3Data/" and "info/L3code/" which would be a little redundant (since the files in each would contain the same numbers), but perhaps that is worth it to get the better schemata file. -Tony