From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751226AbbHQVTl (ORCPT ); Mon, 17 Aug 2015 17:19:41 -0400 Received: from mga03.intel.com ([134.134.136.65]:57937 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbbHQVTk (ORCPT ); Mon, 17 Aug 2015 17:19:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,697,1432623600"; d="scan'208";a="627259416" Message-ID: <55D24FEA.1000803@intel.com> Date: Mon, 17 Aug 2015 14:19:38 -0700 From: Dave Hansen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Tim Chen , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" CC: Herbert Xu , Chandramouli Narayanan , x86@kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov Subject: Re: [PATCH] sha: Enable cpuid check for Intel SHA extensions implementations References: <1439844283.21627.5.camel@schen9-desk2.jf.intel.com> In-Reply-To: <1439844283.21627.5.camel@schen9-desk2.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/17/2015 01:44 PM, Tim Chen wrote: > @@ -401,6 +402,7 @@ extern const char * const x86_bug_flags[NBUGINTS*32]; > #define cpu_has_eager_fpu boot_cpu_has(X86_FEATURE_EAGER_FPU) > #define cpu_has_topoext boot_cpu_has(X86_FEATURE_TOPOEXT) > #define cpu_has_bpext boot_cpu_has(X86_FEATURE_BPEXT) > +#define cpu_has_sha_ni boot_cpu_has(X86_FEATURE_SHA_NI) I think we're trying not to add these cpu_has_* macros any more. For MPX at least we were encouraged to call cpu_has(X86_FEATURE_*) directly. In the patch description, it might also be nice to remind folks that this will feature will also show up as "sha_ni" in /proc/cpuinfo.