From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751627AbdAPN7S (ORCPT ); Mon, 16 Jan 2017 08:59:18 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:40779 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583AbdAPN7O (ORCPT ); Mon, 16 Jan 2017 08:59:14 -0500 Date: Mon, 16 Jan 2017 14:59:11 +0100 (CET) From: Thomas Gleixner To: Vikas Shivappa cc: vikas.shivappa@intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@kernel.org, peterz@infradead.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: <1484076788-25385-5-git-send-email-vikas.shivappa@linux.intel.com> 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> 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 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? > + unsigned int full; > +}; > + if (boot_cpu_has(X86_FEATURE_MBA)) { > + ret = true; > + } Pointless brackets. Thanks, tglx