Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754844Ab3CXVxF (ORCPT ); Sun, 24 Mar 2013 17:53:05 -0400 Received: from sd-mail-sa-02.sanoma.fi ([158.127.18.162]:41621 "EHLO sd-mail-sa-02.sanoma.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754728Ab3CXVxC (ORCPT ); Sun, 24 Mar 2013 17:53:02 -0400 Message-ID: <514F75BB.3080501@iki.fi> Date: Sun, 24 Mar 2013 23:52:59 +0200 From: Jussi Kivilinna User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Tim Chen CC: Herbert Xu , "H. Peter Anvin" , "David S.Miller" , Kirk Yap , David Cote , James Guilford , Wajdi Feghali , linux-kernel , linux-crypto@vger.kernel.org Subject: Re: [PATCH 06/11] Create module providing optimized SHA256 routines using SSSE3, AVX or AVX2 instructions. References: <1363987761.8972.60.camel@schen9-DESK> In-Reply-To: <1363987761.8972.60.camel@schen9-DESK> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 930 Lines: 31 On 22.03.2013 23:29, Tim Chen wrote: > We added glue code and config options to create crypto > module that uses SSE/AVX/AVX2 optimized SHA256 x86_64 assembly routines. > > Signed-off-by: Tim Chen ..snip.. > diff --git a/arch/x86/crypto/sha256_ssse3_glue.c b/arch/x86/crypto/sha256_ssse3_glue.c > new file mode 100644 > index 0000000..5876a19 > --- /dev/null > +++ b/arch/x86/crypto/sha256_ssse3_glue.c ..snip.. > +static int __init sha256_ssse3_mod_init(void) > +{ > + /* test for SSE3 first */ > + if (cpu_has_xmm3) > + sha256_transform_asm = sha256_transform_ssse3; > + This causes OOPS on my computer. Maybe use 'cpu_has_ssse3' instead? -Jussi -- 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/