Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2431621rwb; Fri, 20 Jan 2023 02:57:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXvACRlsKI07P8yNj94oAROtye335Y5tb/FNQIzV+NlfWaJ4Cd8fB1DJcc1Au20fjRMtp0Vm X-Received: by 2002:a17:90b:3586:b0:229:772c:a00b with SMTP id mm6-20020a17090b358600b00229772ca00bmr14336092pjb.14.1674212273218; Fri, 20 Jan 2023 02:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674212273; cv=none; d=google.com; s=arc-20160816; b=tRmU9+vLq18DvpcaEpqPPJZfrSZYfvx+C/rYextOAC4QPu2pA4lEWzI3ukVmRuphTe Dvt82sLKM9/ij5ygRd68lfM4qp7rGOf5QiZdzokh/OPu7wWvT772UuUcU/IsQYaLHbw/ c6mjcs4CgZUekZGJlyuqW4EjBh7V+AP1tcmjrjac698Cjz5l6rJAicZIq6ZUyYa3SzTR GU2L9+wVDvMuNSW6kwWuib6Zd2XHuoZz2pESxj+acmZ2GlvoyXT5um8J1lM5YeE4nLQt V9+c895/Kx5AqQ7xneAQWVRYkgIhN7meFJ5d3Ve0U31xYQCXMrjKsDG4kxsKmO8tF1aU kYrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=w0c9/d8TvNe1sXcGsb7/C7leenwwYiG1OomIEjA5J3A=; b=S3AAXVrClzpZZV089Z/xGa84+6+BwLsfWmOn9PoN0LL1AM4uEmrwUv2CLmr8lH3jeQ QTjnDsz9UceVPvpJIugnGj53MkQ1QFe+fDY1uzM/OyOwDCEbvTq6fAmCo4mrk13r78Lb ZTSLK95N1m1hNU6ACgMzPw/gBgMalyXr68Y1PjDNvXLCac6pWvqizDWFV8Ueu3fN0xZ2 MGKD3EiXvPk/Opmr4+Vyjvf8RQz1JJGgqGQKMXToKxjTmXKOjQ/Htub5ee5gaFuE/EDL kff/O8j9Ph/dYjNg9PJHMyBSHeJ+UytvLqE+wsqI0Q8VhodoDFVwrQJFsRs4bAMO0oRP 58TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gx4-20020a17090b124400b00225d9c7afe2si2007706pjb.74.2023.01.20.02.57.40; Fri, 20 Jan 2023 02:57:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229533AbjATKfj (ORCPT + 99 others); Fri, 20 Jan 2023 05:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbjATKfg (ORCPT ); Fri, 20 Jan 2023 05:35:36 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF478A7F for ; Fri, 20 Jan 2023 02:35:35 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pIok8-002Be8-Ie; Fri, 20 Jan 2023 18:35:33 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 20 Jan 2023 18:35:32 +0800 Date: Fri, 20 Jan 2023 18:35:32 +0800 From: Herbert Xu To: Taehee Yoo Cc: linux-crypto@vger.kernel.org, davem@davemloft.net, x86@kernel.org, jbeulich@suse.com Subject: Re: [PATCH 0/3] crypto: x86/aria - fix build failure with old binutils Message-ID: References: <20230115121536.465367-1-ap420073@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230115121536.465367-1-ap420073@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, Jan 15, 2023 at 12:15:33PM +0000, Taehee Yoo wrote: > There is build failure issue when old binutils is used. > > The minimum version of binutils to build kernel is 2.23 but it doesn't > support GFNI. > But aria-avx, aria-avx2, and aria-avx512 use GFNI. > So, the build will be failed when old binutils is used. > > In order to fix this issue, it checks build environment is using > binutils, which don't support GFNI or not. > In addition, it also checks AVX512 for aria-avx512. > > aria-avx and aria-avx2 use GFNI optionally. > So, if binutils doesn't support GFNI, it hides GFNI code. > But aria-avx512 mandatorily requires GFNI and AVX512. > So, if binutils doesn't support GFNI or AVX512, it disallows select to > build. > > In order to check whether the using binutils is supporting GFNI, it adds > AS_GFNI. > > Taehee Yoo (3): > crypto: x86/aria-avx - fix build failure with old binutils > crypto: x86/aria-avx2 - fix build failure with old binutils > crypto: x86/aria-avx15 - fix build failure with old binutils > > arch/x86/Kconfig.assembler | 5 +++++ > arch/x86/crypto/Kconfig | 2 +- > arch/x86/crypto/aria-aesni-avx-asm_64.S | 10 ++++++++++ > arch/x86/crypto/aria-aesni-avx2-asm_64.S | 10 +++++++++- > arch/x86/crypto/aria_aesni_avx2_glue.c | 4 +++- > arch/x86/crypto/aria_aesni_avx_glue.c | 4 +++- > 6 files changed, 31 insertions(+), 4 deletions(-) > > -- > 2.34.1 All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt