From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756579AbbJ2CEB (ORCPT ); Wed, 28 Oct 2015 22:04:01 -0400 Received: from mail.eperm.de ([89.247.134.16]:34446 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750927AbbJ2CEA (ORCPT ); Wed, 28 Oct 2015 22:04:00 -0400 From: Stephan Mueller To: Tim Chen Cc: Herbert Xu , "H. Peter Anvin" , "David S.Miller" , Chandramouli Narayanan , Vinodh Gopal , James Guilford , Wajdi Feghali , Jussi Kivilinna , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] crypto: AES CBC multi-buffer glue code Date: Thu, 29 Oct 2015 03:03:54 +0100 Message-ID: <2511888.9MT8h10EQL@tauon.atsec.com> User-Agent: KMail/4.14.9 (Linux/4.1.8-200.fc22.x86_64; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1446067169.14635.7.camel@schen9-desk2.jf.intel.com> References: <1446067169.14635.7.camel@schen9-desk2.jf.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 28. Oktober 2015, 14:19:29 schrieb Tim Chen: Hi Tim, >+ >+ /* check for dependent cpu features */ >+ if (!cpu_has_aes) { >+ pr_err("aes_cbc_mb_mod_init: no aes support\n"); >+ err = -ENODEV; >+ goto err1; >+ } In your post 0/5, you say that this mechanism needs AVX2. In the existing AESNI glue code I find #ifdef CONFIG_X86_64 #ifdef CONFIG_AS_AVX2 if (boot_cpu_has(X86_FEATURE_AVX2)) { ... Why would that CPU check not be needed here? Ciao Stephan