Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161123AbbBCUbd (ORCPT ); Tue, 3 Feb 2015 15:31:33 -0500 Received: from cpsmtpb-ews09.kpnxchange.com ([213.75.39.14]:49784 "EHLO cpsmtpb-ews09.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbbBCUbc (ORCPT ); Tue, 3 Feb 2015 15:31:32 -0500 Message-ID: <1422995490.23894.32.camel@x220> Subject: Re: [PATCH] x86/raid6: correctly check for assembler capabilities From: Paul Bolle To: Jan Beulich Cc: Valentin Rothberg , mingo@elte.hu, tglx@linutronix.de, hpa@zytor.com, james.t.kukunas@linux.intel.com, neilb@suse.de, linux-kernel@vger.kernel.org Date: Tue, 03 Feb 2015 21:31:30 +0100 In-Reply-To: <54C2148E02000078000588FB@mail.emea.novell.com> References: <54C2148E02000078000588FB@mail.emea.novell.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Feb 2015 20:31:30.0751 (UTC) FILETIME=[64AD14F0:01D03FF0] X-RcptDomain: vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1965 Lines: 46 On Fri, 2015-01-23 at 08:29 +0000, Jan Beulich wrote: > Just like for AVX2 (which simply needs an #if -> #ifdef conversion), > SSSE3 assembler support should be checked for before using it. > > Signed-off-by: Jan Beulich > Cc: Jim Kukunas > Cc: Neil Brown This patch became commit be46ac86a81b ("x86/raid6: correctly check for assembler capabilities") in today's linux-next (ie, next-20150203). I noticed because a script I use to check linux-next spotted a potential problem with it. > --- > arch/x86/Makefile | 1 + > lib/raid6/algos.c | 2 +- > lib/raid6/recov_avx2.c | 2 +- > lib/raid6/recov_ssse3.c | 6 ++++++ > 4 files changed, 9 insertions(+), 2 deletions(-) > > --- 3.19-rc5/arch/x86/Makefile > +++ 3.19-rc5-raid6-SSSE3/arch/x86/Makefile > @@ -148,6 +148,7 @@ cfi-sections := $(call as-instr,.cfi_sec > > # does binutils support specific instructions? > asinstr := $(call as-instr,fxsaveq (%rax),-DCONFIG_AS_FXSAVEQ=1) > +asinstr += $(call as-instr,pshufb %xmm0$(comma)%xmm0,-DCONFIG_AS_SSSE3=1) This Makefile defines a preprocessor macro with a CONFIG_ prefix. Almost all macros with that prefix are defined through the kconfig system. A handful, like CONFIG_AS_SSSE3 and a few other macros defined in this Makefile, are not. Apparently this is a pet peeve I share with few people, but would any other prefix than CONFIG_ work for you too? > asinstr += $(call as-instr,crc32l %eax$(comma)%eax,-DCONFIG_AS_CRC32=1) > avx_instr := $(call as-instr,vxorps %ymm0$(comma)%ymm1$(comma)%ymm2,-DCONFIG_AS_AVX=1) > avx2_instr :=$(call as-instr,vpbroadcastb %xmm0$(comma)%ymm1,-DCONFIG_AS_AVX2=1) Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/