From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbdAPQQk (ORCPT ); Mon, 16 Jan 2017 11:16:40 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:41351 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbdAPQQj (ORCPT ); Mon, 16 Jan 2017 11:16:39 -0500 Date: Mon, 16 Jan 2017 17:16:21 +0100 (CET) From: Thomas Gleixner To: Peter Zijlstra cc: Vikas Shivappa , vikas.shivappa@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@kernel.org, ravi.v.shankar@intel.com, tony.luck@intel.com, fenghua.yu@intel.com, h.peter.anvin@intel.com Subject: Re: [PATCH 4/8] x86/intel_rdt/mba: Memory b/w allocation feature detect In-Reply-To: <20170116144105.GJ3174@twins.programming.kicks-ass.net> Message-ID: References: <1484076788-25385-1-git-send-email-vikas.shivappa@linux.intel.com> <1484076788-25385-5-git-send-email-vikas.shivappa@linux.intel.com> <20170116144105.GJ3174@twins.programming.kicks-ass.net> 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 Mon, 16 Jan 2017, Peter Zijlstra wrote: > On Mon, Jan 16, 2017 at 02:59:11PM +0100, Thomas Gleixner wrote: > > On Tue, 10 Jan 2017, Vikas Shivappa wrote: > > > > > Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. > > > Add supporting data structures to detect feature details which is done > > > in later patch using CPUID with EAX=10H, ECX= 3. > > > > So why is the $subject of this patch claiming that it provides the feature > > detection? > > > > > -/* CPUID.(EAX=10H, ECX=ResID=1).EDX */ > > > +/* CPUID.(EAX=10H, ECX=ResID=3).EAX */ > > > +union cpuid_0x10_3_eax { > > > + struct { > > > + unsigned int max_delay:12; > > > + } split; > > > > And the point of this struct is? > > I suppose its there so we cannot forget adding it when we add more > bitfields in that word and to keep naming (full vs split) consistent wrt > other cpuid unions that do have multiple fields. Fair enough.