From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751402AbdAPOlP (ORCPT ); Mon, 16 Jan 2017 09:41:15 -0500 Received: from merlin.infradead.org ([205.233.59.134]:39594 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907AbdAPOlM (ORCPT ); Mon, 16 Jan 2017 09:41:12 -0500 Date: Mon, 16 Jan 2017 15:41:05 +0100 From: Peter Zijlstra To: Thomas Gleixner 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 Message-ID: <20170116144105.GJ3174@twins.programming.kicks-ass.net> References: <1484076788-25385-1-git-send-email-vikas.shivappa@linux.intel.com> <1484076788-25385-5-git-send-email-vikas.shivappa@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > + unsigned int full; > > +};